Skip to content

ci(links): the online link check takes github.com's 429 and 503 as reachable - #259

Merged
jddunn merged 1 commit into
masterfrom
ci/links-accept-throttling
Oct 10, 2026
Merged

jddunn merged 1 commit into
masterfrom
ci/links-accept-throttling

Conversation

@jddunn

@jddunn jddunn commented Oct 10, 2026 •

Copy link
Copy Markdown
Member

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.yml linked 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_dispatch run of Links on ci/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:

  • Prevent the repository-link check from failing when GitHub responds with transient 429 or 503 status codes for otherwise valid links.

Enhancements:

  • Reduce link-check request concurrency and add retry delays to limit GitHub throttling while continuing to fail on missing resources.

CI:

  • Update the Links workflow’s lychee configuration to accept throttling and service-unavailable responses and use bounded concurrency with retries.

…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.
@jddunn
jddunn requested a review from Victor-Evogor as a code owner October 10, 2026 18:50
@sourcery-ai

sourcery-ai Bot commented Oct 10, 2026

Copy link
Copy Markdown

Sorry @jddunn, you've used your own review budget of 250,000 diff characters for the last 7 days.

You can request another review in 7 hours and 12 minutes by commenting @sourcery-ai review. Upgrade to get a review now.

@sourcery-ai

sourcery-ai Bot commented Oct 10, 2026

Copy link
Copy Markdown
Reviewer's guide (collapsed on small PRs)

Reviewer's Guide

Updates 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 checking

sequenceDiagram
    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
Loading

File-Level Changes

Change Details Files
Treat GitHub throttling and transient service failures as reachable while preserving detection of missing links.
  • Accept HTTP 429 and 503 responses in addition to successful response ranges.
  • Continue failing on responses such as 404 for missing files or repositories.
.github/workflows/links.yml
Reduce crawler pressure and make retries more deliberate to avoid triggering GitHub throttling.
  • Limit lychee to four concurrent requests.
  • Configure up to four retries with a five-second wait between attempts.
.github/workflows/links.yml

Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it. You can also reply to a
    review comment with @sourcery-ai issue to create an issue from it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time. You can also comment
    @sourcery-ai title on the pull request to (re-)generate the title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time exactly where you
    want it. You can also comment @sourcery-ai summary on the pull request to
    (re-)generate the summary at any time.
  • Generate reviewer's guide: Comment @sourcery-ai guide on the pull
    request to (re-)generate the reviewer's guide at any time.
  • Resolve all Sourcery comments: Comment @sourcery-ai resolve on the
    pull request to resolve all Sourcery comments. Useful if you've already
    addressed all the comments and don't want to see them anymore.
  • Dismiss all Sourcery reviews: Comment @sourcery-ai dismiss on the pull
    request to dismiss all existing Sourcery reviews. Especially useful if you
    want to start fresh with a new review - don't forget to comment
    @sourcery-ai review to trigger a new review!

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

@coderabbitai

coderabbitai Bot commented Oct 10, 2026

Copy link
Copy Markdown

Warning

Review limit reached

  • Run on-demand review

This review includes 1 billable file and costs up to $0.25.

  • Ask an admin to make reviews automatic

Open in CodeRabbit

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.

Check out review usage here.

View limit details

Limit details: You’ve used all 4 included reviews currently available.

Learn how review limits work.

Review configuration:

⚙️ Run configuration
  • Configuration used: Repository: framerslab/agentos/.coderabbit.yaml
  • Review profile: CHILL
  • Plan: Team
  • Run ID: 6d66421e-dae8-48ac-bdcf-7f2d94d42dff

📥 Commits

Reviewing files that changed from the base of the PR and between 915acf3 and 1604b0e.


📒 Files selected for processing (1)
  • .github/workflows/links.yml

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Comment @coderabbitai help to get the list of available commands.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 10, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-10T18:53:16.955277Z 1604b0e PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@qodo-free-for-open-source-projects

Copy link
Copy Markdown

PR Summary by Qodo

Keep first-party link checks green during GitHub throttling

🐞 Bug fix ⚙️ Configuration changes 🕐 Less than 10 minutes

Grey Divider

AI Description

• Treat GitHub 429 and 503 responses as inconclusive, so throttling does not fail link checks.
• Limit concurrent requests and retry with a delay; missing links still fail on 404.
Diagram

graph TD
  D["Markdown links"] --> L["Online link step"] --> Y["Limited crawler"] --> G["GitHub pages"] --> S{"HTTP status"}
  S -->|"Accepted status"| P["Step passes"]
  S -->|"404"| F["Step fails"]
Loading
High-Level Assessment

The following are alternative approaches to this PR:

1. Throttle and retry without accepting 429 or 503
  • ➕ Continues to flag persistent GitHub unavailability.
  • ➖ Transient throttling can still fail a check intended to detect missing links.

Recommendation: Keep the PR's approach for this existence-focused check: reduced request pressure limits throttling, and 404 remains a failure. Accepting 503 does mean the check cannot distinguish throttling from a genuine GitHub outage; retry-only handling would preserve that signal but risk the recurring false failures this PR addresses.

Files changed (1) +6 / -0

Bug fix (1) +6 / -0
links.ymlHandle GitHub throttling in the online link step +6/-0

Handle GitHub throttling in the online link step

• Accepts HTTP 429 and 503 in the first-party repository link check while leaving 404 unaccepted. Reduces concurrency to four requests and adds up to four retries with a five-second wait; the offline and pull-request behavior is unchanged.

.github/workflows/links.yml

@qodo-free-for-open-source-projects

Copy link
Copy Markdown

Code Review by Qodo

🐞 Bugs (0) 📘 Rule violations (0) 📎 Requirement gaps (0)

Grey Divider

Great, no issues found!

Qodo reviewed your code and found no material issues that require review

Grey Divider

Tip of the day
💡 Did you know, you can copy the agent prompt from any finding and feed it to your IDE agent

More tips ↗ | Customize Qodo ↗ | Qodo docs ↗

Grey Divider

Qodo Logo

@jddunn
jddunn merged commit 90ca3c7 into master Oct 10, 2026
9 checks passed
@jddunn
jddunn deleted the ci/links-accept-throttling branch October 10, 2026 19:08
github-actions Bot pushed a commit that referenced this pull request Oct 10, 2026
## [0.13.35](v0.13.34...v0.13.35) (2026-10-10)

### feat

* **memory:** a guarded fetch, and UrlLoader over any loader source (#249) ([a531e02](a531e02))

### ci

* **links:** the online link check takes github.com's 429 and 503 as reachable (#259) ([90ca3c7](90ca3c7))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant