Fix CI docs-linkcheck dead URLs false positives 85/100285/2
authorguillaume.lambert <guillaume.lambert@orange.com>
Tue, 29 Mar 2022 16:10:40 +0000 (18:10 +0200)
committerRobert Varga <robert.varga@pantheon.tech>
Wed, 30 Mar 2022 18:52:28 +0000 (20:52 +0200)
Signed-off-by: guillaume.lambert <guillaume.lambert@orange.com>
Change-Id: Iafed90c9df8f69214a836ad9b76ae174e29f530e

docs/conf.py

index 925316abfa248333bf07605e24fc4a9ad928c78e..6b4a87209fd4560c72cf2cac25a7ed665aa716b6 100644 (file)
 
 from docs_conf.conf import *
 
+linkcheck_ignore = [
+    'http://localhost',
+    # Ignore jenkins because it's often slow to respond.
+    'https://jenkins.opendaylight.org/releng',
+    'https://jenkins.opendaylight.org/sandbox',
+    # The '#' in the path makes sphinx think it's an anchor
+    'https://git.opendaylight.org/gerrit/#/admin/projects/releng/builder',
+    'https://git.opendaylight.org/gerrit/#/c/',
+    'https://git.opendaylight.org/gerrit/gitweb',
+    # URL returns a 403 Forbidden
+    'https://www.osgi.org',
+    # Ignore anchors on github.com because linkcheck fails on them
+    '^https?://github.com/.*#',
+    # Ignore IETF URLs often not reachable from Jenkins minions
+    # because of hosting connectivity issues
+    '^https?://tools.ietf.org/html/.*',
+]
+linkcheck_timeout = 300