Skip to content

fix(ci): cap the Actions cache segment download at one minute - #11330

Merged
kyle-sexton merged 3 commits into
mainfrom
fix/ci-cache-restore-cap
Oct 30, 2026
Merged

kyle-sexton merged 3 commits into
mainfrom
fix/ci-cache-restore-cap

Conversation

@kyle-sexton

Copy link
Copy Markdown
Member

No related issue: merge-group drops on pr-require-checks job time limits (hub events.log QUEUE-DROP, 2026-10-30), routed to this lane by GitHub Support.

Summary

actions/cache waits up to SEGMENT_DOWNLOAD_TIMEOUT_MINS (default 10) on a stalled segment download, longer than every pr-require-checks job limit (3 to 20 minutes). A refused or stalled cache restore ran out the job and dropped merge-group entries.

Fix

  • Workflow-level SEGMENT_DOWNLOAD_TIMEOUT_MINS: "1" in pr-require-checks.yml, so every cache restore in the file gives up after one minute and the job installs cold inside its limit. No step or job time limit is raised. The toolkit reads the value as a number of minutes: options.ts.
  • Corrects the draft-green comment above Note a draft. A draft's green ci-status stays on the head after the ready flip until the ready run replaces it. The merge-group run does not close that gap, because lanes that diff against the base decline on merge_group.

Verification

  • actionlint .github/workflows/pr-require-checks.yml passes.
  • callers.test.mjs reads only npm_config_globalconfig from this env block, so it is unaffected.
  • After merge, a merge-group run with a cache miss should show the restore ending within a minute and no QUEUE-DROP on a job time limit.

Related

  • The cold npm ci time in check-catalog is not measured yet; cutting it waits on that measurement.

🤖 Generated with Claude Code

kyle-sexton and others added 2 commits October 30, 2026 14:24
actions/cache waits up to SEGMENT_DOWNLOAD_TIMEOUT_MINS (default 10) on a
stalled segment download, longer than every pr-require-checks job limit,
so a refused restore ran out the job and dropped merge-group entries.
At 1 the restore misses and the job installs cold inside its limit.

Also corrects the draft-green comment: a draft's green ci-status stays
on the head after the ready flip until the ready run replaces it.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@kyle-sexton
kyle-sexton marked this pull request as ready for review October 30, 2026 21:52
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 30, 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-30T21:53:25.340582Z 25c33ec Draft marked ready
ℹ️ 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

github-actions Bot commented Oct 30, 2026 •

Copy link
Copy Markdown
Contributor

claude-security-review reviewed 89402c81f35ffdba3b2242b4b59fb3e97381af2d: 0 finding(s), 0 as inline comments.

Security review: no findings (.github/workflows/pr-require-checks.yml, incremental since 25c33ec7)

The change since the last review is comment-only, in two places:

  • Comment above the workflow env: block (about lines 181–185): it rewords the note on SEGMENT_DOWNLOAD_TIMEOUT_MINS. It now says the timer covers each 128 MB cache segment, and that the URL lookup and extract are not under it. The value stays "1".
  • Comment in the "Note a draft" step (about lines 4126–4134): it rewords the note on the draft gap. It now says the merge-group run does not fully close the gap, because the changed-file gates that read only github.base_ref decline there. It adds that no merge hold checks this, so a pull request should be armed only once the newest ci-status on its head is not a draft run's.

The file is on the trusted-paths list because it holds the ci-status hold steps, so I read the whole incremental diff. No run: body, if: condition, permissions: block, env value, action pin or step logic changed. No merge hold, token scope, trusted-actor check or kill switch is widened, weakened or removed, and no untrusted text reaches a credentialed lane. The skip-gate "no security-relevant surface" shortcut does not apply to a trust-control file. I did not use it, and the finding is the same on the code alone.

The new comment says no merge hold checks the draft-then-ready gap. That is a documentation correction of an existing limitation. It does not change the base behaviour. Because it is pre-existing and not part of this diff's code, I report it as a note and not as a finding.

Nothing in this change spends money, so there is no cost hold.

critical-findings: 0

@github-actions

github-actions Bot commented Oct 30, 2026 •

Copy link
Copy Markdown
Contributor

claude-review reviewed 89402c81f35ffdba3b2242b4b59fb3e97381af2d: 0 finding(s), 0 as inline comments.

No findings in the incremental change.

Scope: Since 25c33ec, .github/workflows/pr-require-checks.yml has two comment-only edits. No keys, values, if: conditions or steps changed, and the workflow-level SEGMENT_DOWNLOAD_TIMEOUT_MINS: "1" is the same as before.

  • Cache-timer comment (lines ~181–186): It now says the timeout applies per 128 MB segment, and that the URL lookup and the extract are not under the timer. It also says the 10-minute default is longer than "most" jobs, where it used to say "any". That matches the PR's 3 to 20 minute job limits.
  • Draft-gap comment above Note a draft (lines ~4127–4134): It now says the merge-group run "does not fully close" the gap, because the changed-file gates that read only github.base_ref decline there. It also says no merge hold checks this, so arming should wait for a non-draft ci-status on the head. This is consistent with the PR description. The comment asserts no new behavior.

Trusted path: The file is on the trusted list, so I read the whole change and what it gates. A comment-only edit alters no gate, permission or trigger, so there is no security concern.

Closing issue: The PR closes no issue, so there are no acceptance criteria to check.

Unverified: I did not check the 128 MB segment size or the 10-minute default against the toolkit's options.ts, and I did not run actionlint or the tests. Those claims are the PR author's, unverified by this review.

Cost: The change adds no paid resources, billing settings or spend. There is no hold.

@kyle-sexton
kyle-sexton added this pull request to the merge queue Oct 30, 2026
Merged via the queue into main with commit cc65bfb Oct 30, 2026
54 checks passed
@kyle-sexton
kyle-sexton deleted the fix/ci-cache-restore-cap branch October 30, 2026 23:02
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