From da0cb2a0189f2bfc8e1d98ceb29831fa9701575d Mon Sep 17 00:00:00 2001 From: Rodolfo Wottrich Date: Tue, 25 Aug 2026 14:38:03 +0100 Subject: [PATCH] Add link check exceptions for frequent 429s --- .github/scripts/check_links.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.github/scripts/check_links.py b/.github/scripts/check_links.py index ad35fdf2..38a11021 100644 --- a/.github/scripts/check_links.py +++ b/.github/scripts/check_links.py @@ -112,10 +112,22 @@ def main() -> int: and status_code == "403" ) + is_ignored_gcc_or_sourceware_429 = ( + parsed_url.hostname in {"gcc.gnu.org", "sourceware.org"} + and status == "dead" + and status_code == "429" + ) + if is_ignored_developer_arm_403: print(f"IGNORED (403 from developer.arm.com): {url}") continue + if is_ignored_gcc_or_sourceware_429: + print( + f"IGNORED (429 from {parsed_url.hostname}): {url}", + ) + continue + failure = testcase.find("failure") error = testcase.find("error")