Repository navigation
fix(upstream-drift): retry anonymously when an IP allow list refuses the token - #14704
Conversation
…the token The cursor org's IP allow list refuses the Actions token (HTTP 403), which failed the whole drift run. Calls for that owner now retry through anonymous curl; a page still refused is reported status=unreachable, the filer leaves its issue alone, and the workflow fails after filing the other upstreams. Co-Authored-By: Claude Opus 5.5 <[email protected]>
A tree or HEAD read refused after the pin lookup (for example once the anonymous rate limit runs out) now marks the page unreachable instead of ending the whole run. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Codex Review Summary: ❌ FailedThis 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. |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
claude-security-review reviewed Security review: PR #14704 (0ba820d), incremental since fdeb9f1I found no security issues. I read every hunk of the 3 files changed since the last review: What I checked
Settled threads: both threads are resolved by the fix in this head, with no lines changed since. I raised nothing again. Spend: none beyond the existing anonymous api.github.com reads. critical-findings: 0 |
|
claude-review reviewed Code review: PR #14704 (incremental, blocking only)I read every hunk of all 3 files changed since No new findings. This push fixes both of the lane's earlier findings, and the owner has resolved both threads:
PR context: the PR says Spend: none. The anonymous reads use GitHub's unauthenticated REST quota. |
A transport failure in the anonymous retry returned 5 without marking the page, so head_sha handed back an empty HEAD and the page read as drift. The contract now says any refused read marks the page unreachable. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Refs: #14209
Summary
The monthly upstream drift filer failed every run: the
cursororg's IP allow list refuses the Actions token with HTTP 403 (run 42631314988), andcheck-upstream-drift.shexits 2 on the first refused call, so no upstream gets an issue.Fix
scripts/check-upstream-drift.sh: every REST read goes through oneapihelper. When a response's message names an IP allow list, that owner's calls retry anonymously withcurl(public repositories). A page with any read still refused (pin, HEAD or tree, for example after the anonymous rate limit) is reportedstatus=unreachable head=unknown, named on stderr, and skipped;--reportgoes on and exits by drift, the other modes exit 2.scripts/upstream-drift-issues.sh: acceptsunreachableand treats it likeuntracked: the upstream's issue is never closed as clean.unreachablepage, with an error annotation, so a gap is never silent. The contract doc states all three.Verification
bash scripts/check-upstream-drift.test.sh: PASS=116 FAIL=0, with new stub-gh/curlcases for a working anonymous retry (gh called once), a refused retry, a refused later HEAD read (unreachableline, rc 0 under--report, rc 2 otherwise) and a non-allow-list failure (no retry, rc 2).bash scripts/upstream-drift-issues.test.sh: PASS=167 FAIL=0, with a clean-beside-unreachable case that closes nothing.shellcheckandactionlintclean; a live--report --page docs/upstream/cursor-pstack.mdread cleanly, and an anonymouscurlof the pinned cursor/plugins commit returned HTTP 200.Related
needs-humanissue) is checked after merge by dispatchingmaintenance-file-upstream-drift-issues.yml.🤖 Generated with Claude Code