Repository navigation
ci: retry transient errors when fetching Cursor's schemas - #207
Conversation
cursor.com answered the environment schema fetch with HTTP 429 on two runs in a row of #206, failing Validate Manifests. curl --retry retries 408, 429 and 5xx; a fetch that still fails keeps failing the job. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Codex Review Summary: ✅ CompletedThis 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. |
|
claude-security-review reviewed Security review: PR #207No security issues found. The PR touches one file,
critical-findings: 0 |
|
claude-review reviewed Code review: no findingsThe PR adds Correctness
Loosened checks: I applied "Fail a change that loosens a check". Kind 7 ("a retry count raised") could be read to cover this change. I judged that it does not, and I raise no finding. The retry covers only the download of the reference schemas, not the check. The manifests are validated once against the same schema content, and a fetch that never succeeds still fails the job. The PR body has no
Closing issue: none. The PR states "No related issue", so no acceptance criteria apply. Other criteria: No path-scoped rules exist under Spend: A failed fetch can now add up to about 2 minutes of retry wait to a GitHub Actions job. This uses the existing runner's minutes, with no new billed resource. Verifier dropped 0 of 0 candidates. |
No related issue: a CI flake fix found while landing #206.
Summary
Validate Manifestsfetches Cursor's published schemas live with no retry, so one HTTP 429 from cursor.com failsCI Status. It failed #206 twice in a row this way (jobs in run 45321148144).Fix
.github/workflows/pr-require-checks.yml: the three schemacurlcalls add--retry 4 --retry-max-time 120. curl retries a transient error (HTTP 408, 429, 500, 502, 503, 504, 522, 524, perman curl--retry). A fetch that still fails after the retries fails the job, as before.Verification
man curl(curl 8.18.0)--retry: "Transient error means either: a timeout, an FTP 4xx response code or an HTTP 408, 429, 500, 502, 503, 504, 522 or 524 response code."Validate Manifestsrun.Related
🤖 Generated with Claude Code