Skip to content

ci: retry transient errors when fetching Cursor's schemas - #207

Merged
kyle-sexton merged 1 commit into
mainfrom
ci/schema-fetch-retry
Nov 24, 2026
Merged

kyle-sexton merged 1 commit into
mainfrom
ci/schema-fetch-retry

Conversation

@kyle-sexton

Copy link
Copy Markdown
Member

No related issue: a CI flake fix found while landing #206.

Summary

Validate Manifests fetches Cursor's published schemas live with no retry, so one HTTP 429 from cursor.com fails CI Status. It failed #206 twice in a row this way (jobs in run 45321148144).

Fix

  • .github/workflows/pr-require-checks.yml: the three schema curl calls add --retry 4 --retry-max-time 120. curl retries a transient error (HTTP 408, 429, 500, 502, 503, 504, 522, 524, per man 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."
  • This PR's own Validate Manifests run.

Related

🤖 Generated with Claude Code

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]>
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 24, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

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

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-24T04:13:01.680595Z 6bdbe36 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.

@github-actions

Copy link
Copy Markdown

claude-security-review reviewed 6bdbe36ab8c1e69efb58776116d18e4287cd7163: read 1 of 1 changed file(s); 0 finding(s), 0 as inline comments.

Security review: PR #207

No security issues found.

The PR touches one file, .github/workflows/pr-require-checks.yml. In the Validate manifests against the official schemas step, it adds --retry 4 --retry-max-time 120 to the three curl schema fetches (lines 20, 21 and 27 of the diff). I read the whole change.

  • Still fails closed. -f stays on each fetch and set -euo pipefail stays at the top of the step. A fetch that still fails after its retries still fails the job, so the schema check cannot be skipped silently.
  • Sources and transport unchanged. The URLs are the same: raw.githubusercontent.com/cursor/plugins/main/schemas and cursor.com/schemas. They still use HTTPS, and curl's default certificate checking is untouched. The new flags add no redirect-following (-L) and no --insecure. The schemas were already fetched live from an unpinned main before this PR, so that is not new here.
  • No new input in the command. Nothing from the github context or the pull request is added to the run: block, so no new expression-injection surface.
  • Trust controls. This step validates manifests. It is not one of the ci-status hold steps in this file, and the diff changes no permissions:, if: condition, trigger or token request. Nothing is widened.
  • Spend. In the worst case, the retries add up to about 120 seconds per fetch to a run. That is runner time only and starts no new charge.

critical-findings: 0

@github-actions

Copy link
Copy Markdown

claude-review reviewed 6bdbe36ab8c1e69efb58776116d18e4287cd7163: read 1 of 1 changed file(s); 0 finding(s), 0 as inline comments.

Code review: no findings

The PR adds --retry 4 --retry-max-time 120 to the three schema-fetch curl calls in the Validate manifests against the official schemas step of .github/workflows/pr-require-checks.yml. The comment above the step is updated to match.

Correctness

  • -f is still on every call, and so is set -euo pipefail. A fetch that still fails after the retries ends with a non-zero exit, so the step still fails when it can't get the schemas, which the step's comment requires.
  • With --retry, curl retries timeouts and HTTP 408, 429, 500, 502, 503, 504, 522 and 524. That includes the 429 the PR body describes. --retry-max-time 120 caps how long the retries can add to the job.
  • The validators (validate-manifests.mjs, validate-environment.mjs) still run once against the downloaded schema. No retry can turn a failed validation into a pass.
  • I didn't run the PR's Validate Manifests check. Its result in the PR body is the author's claim and is unverified.

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 ## Loosened checks section and there is no closing issue, so if a reader disagrees, no text gives a reason for the change.

  • Loosened checks would be marked: fail (default: the prompt had no loosened_check_verdict: or loosened_check_patterns: lines); patterns: 0
  • The prompt had no loosened_check_decision_record: line, so the citation requirement was not checked.

Closing issue: none. The PR states "No related issue", so no acceptance criteria apply.

Other criteria: No path-scoped rules exist under .claude/rules/. The PR changes no plugin manifests. The REVIEW.md always-check items don't apply to this change. I found no embedded instructions in the PR context.

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.

@kyle-sexton
kyle-sexton merged commit 19d8cd0 into main Nov 24, 2026
25 checks passed
@kyle-sexton
kyle-sexton deleted the ci/schema-fetch-retry branch November 24, 2026 05:10
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