From 57e7caff44005806a985072ac29dc91af0f4f815 Mon Sep 17 00:00:00 2001 From: Matthew Feickert Date: Mon, 14 Aug 2023 23:38:54 -0500 Subject: [PATCH] test: Ignore CERN Twiki URLs during Sphinx linkcheck (#2272) * Ignore URLs for CERN's Twiki instance https://twiki.cern.ch/ from Sphinx linkcheck tests as CERN seems to have problems regularly maintaining their SSL certs which can lead to SSL errors. ``` Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1002)')) ``` --- docs/conf.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/conf.py b/docs/conf.py index 8fa32ce773..062f1f5eb7 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -519,6 +519,8 @@ def setup(app): r'https://indico.desy.de/event/22731/.*', # https://indico.belle2.org/event/8470/contributions/55871/ is frequently generating 403 Client Error r'https://indico.belle2.org/event/8470/.*', + # CERN doesn't maintain its SSL certs well enough to not have SSLErrors + r'https://twiki.cern.ch/.*', # tags for a release won't exist until it is made, but the release notes # and ReadTheDocs need to reference them r'https://github.com/scikit-hep/pyhf/releases/tag/.*',