Repository navigation
ci(links): the online link check takes github.com's 429 and 503 as reachable - #259
Conversation
…achable The step that checks links to first-party repositories fetches github.com blob and tree pages from the runner, and github.com throttles that with 429 and 503: every push to master since 17:15 UTC on 10 October failed the job with 503 on existing files. Neither status says anything about the link, so both count as reachable; a file or repository that is gone still answers 404 and fails. Fewer requests at once and a wait between retries keep the throttling rare.
Reviewer's guide (collapsed on small PRs)Reviewer's GuideUpdates the first-party repository link-check workflow to tolerate GitHub’s 429 and 503 responses as non-link failures, while retaining 404 detection and reducing request concurrency with paced retries to prevent recurring throttling. Sequence diagram for throttled first-party link checkingsequenceDiagram
participant Workflow as Links workflow
participant Lychee as lychee-action
participant GitHub as github.com
Workflow->>Lychee: run link check
Lychee->>GitHub: fetch repository link
GitHub-->>Lychee: HTTP response
alt 100..=103 or 200..=299
Lychee-->>Workflow: reachable
else 429 or 503
Lychee->>Lychee: retry up to 4 times, wait 5 seconds
Lychee-->>Workflow: reachable
else 404
Lychee-->>Workflow: link check fails
end
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
|
Warning Review limit reached
This review includes 1 billable file and costs up to $0.25.
Reviews can continue after your included limit without a manual trigger. An admin must approve usage-based billing. Or wait 4 minutes for your next included review. View limit details
Comment |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
PR Summary by QodoKeep first-party link checks green during GitHub throttling
AI Description
Diagram
High-Level Assessment
Files changed (1)
|
Code Review by Qodo🐞 Bugs (0) 📘 Rule violations (0) 📎 Requirement gaps (0)
Great, no issues found!Qodo reviewed your code and found no material issues that require reviewTip of the day💡 Did you know, you can copy the agent prompt from any finding and feed it to your IDE agent |
What this fixes
The Links job has failed on every push to master since 17:15 UTC on 10 October (reported by another lane; six runs in a row, for example run 38076735502). The step "Links to other first-party repositories" fetches github.com blob and tree pages from the runner, and github.com answered 503 Service Unavailable for files that exist, 33 errors in the last run, such as
.github/workflows/ci.ymllinked from AGENTS.md. The step does not run on pull requests, so pull requests stayed green while master went red.A 429 or a 503 says nothing about the link. The step now counts both as reachable (
--accept '100..=103,200..=299,429,503'). A file or repository that is gone still answers 404 and fails the step. It also runs four requests at a time, not lychee's default 128, and waits five seconds between up to four retries, which keeps the throttling rare.Verification
The step does not run on this pull request's own checks, so the workflow was dispatched on this branch: see the
workflow_dispatchrun of Links onci/links-accept-throttling.Summary by Sourcery
Make first-party repository link checks resilient to GitHub throttling and temporary service outages without masking missing links.
Bug Fixes:
Enhancements:
CI: