Repository navigation
ci(scratch-gc): retire timer (republished as #14295) - #14124
EffortlessSteven wants to merge 2 commits into
Conversation
…accepts jobs (#4984) Every Scratch GC job needs a self-hosted runner. 95 of the last 100 scheduled fires ended cancelled after all three pool jobs waited 30 minutes in the queue. Keep manual dispatch and document the cron for restoring with the pools. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016EQRVhsGmyCCQRP94GUq78
|
Warning Review limit reachedEnable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
Reviews can continue after your included limit without a manual trigger. An admin must approve usage-based billing. Next included review available in 3 minutes. View limit details
|
There was a problem hiding this comment.
Code Review
This pull request disables the half-hourly timer for the Scratch GC workflow, transitioning it to a manual-only dispatch because no self-hosted runner pools are currently accepting its jobs. The changes include updating the workflow allowlist policy description and adding a changelog entry to document this adjustment. I have no feedback to provide as the changes are straightforward and correct.
|
Warning You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again! |
| # Manual only since 2026-11-11 (#4984). Every job here needs a self-hosted | ||
| # runner from one of the three pools, and none has accepted a job since at | ||
| # least 2026-11-09: 95 of the last 100 scheduled fires ended `cancelled` after | ||
| # all three pool jobs waited 30 minutes in the queue and the next fire replaced | ||
| # them. Required work runs on the GitHub-hosted leg, which has no persistent | ||
| # scratch disk to reclaim, and the inline rust-gates.yml reclaim still runs on | ||
| # any self-hosted job that does start. A timer that only queues is noise that | ||
| # reads as 48 cancelled runs a day, so the half-hourly schedule is off. |
There was a problem hiding this comment.
🔍 Scheduled recovery claims remain in documentation
After the timer is removed, the workflow overview and lease contract still describe automatic sweeps. These descriptions can mislead operators investigating idle-runner disk recovery.
Was this helpful? React with 👍 or 👎 to provide feedback.
ripr static exposure checkCommit Took 7s. |
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016EQRVhsGmyCCQRP94GUq78
EffortlessSteven
left a comment
There was a problem hiding this comment.
Exact-head review (head df65a30)
Reviewed; no blocking findings. Two minor notes below, neither of which warrants holding the PR.
What I read and ran at this exact head (fetched via git fetch origin pull/14124/head, all reads by explicit SHA — my first FETCH_HEAD:path read resolved to an unrelated commit because something else fetched into the local checkout mid-review; every claim below was re-verified against the explicit SHA):
.github/workflows/scratch-gc.yml—schedule:trigger removed;workflow_dispatch:kept (head lines 36-37); the cron is preserved verbatim in the restore comment (head lines 25-35). Jobs, matrix, per-pool concurrency, timeout and all steps are untouched; the dedicated.ci-scratch-gccheckout andmode: reclaimlease call remain (head lines 77-89).policy/workflow_allowlist.txt:53— reason text only. The unchanged|3|budget is correct: it bounds non-empty lines per run block (format documented attools/repo-policy/src/lib.rs:506, enforced attools/repo-policy/src/lib.rs:453-459), and this PR touches no run block.changelog.d/4984-scratch-gc-manual-only.md— section marker matches the existingchangelog.dconvention; the numbers match the body's run evidence (95 cancelled + 1 failed + 4 pending = 100).tools/repo-policy/src/ci_scratch.rs:5-7— module doc comment only.
Policy consumers still hold without the schedule: scratch_gc_concurrency_violations (tools/repo-policy/src/lib.rs:563) checks only the job-level per-pool concurrency group, and scratch_gc_violations (tools/repo-policy/src/ci_scratch.rs:164) checks only the dedicated checkout plus mode: reclaim ordering. Nothing in the policy layer required the schedule key.
Hosted evidence is at this head, not the earlier e9a4c1de the body's local proof names: run 42973017855, job "workflow policy and wheel applicability" succeeded; its "Validate workflow policy independently" step ran repo-policy check-workflows (same check_workflows_impl as cargo xtask check-workflows, tools/repo-policy/src/main.rs:7-9) with CANDIDATE_SHA: df65a306fe3404114e2fe7835fb7b6f20a2b1ed0 and emitted check-workflows: pass. jactionlint also passed at this head (run 42973017882). ub-review and the Python wheel jobs were still pending when I checked — in flight, not failing; no failing check on this head. Main (abf2c72db29) touched none of the four files since the branch point cb95c5b0e15 (empty diff over the touched paths), so no conflict or stale-base repair is needed.
Honesty check: the new comments and changelog state that the sweep is manual and that idle runners get no automatic sweep right now, and the body's claim boundary explicitly refuses "self-hosted scratch disks are being reclaimed on a schedule" — the rendered claims match what the diff actually enforces, and the rollback path (cron in the comment) is real.
Findings:
-
minor (wording drift, non-blocking) — two sibling comments describing the same authority still call the sweep scheduled, although the PR's own docs commit updated exactly this class of wording in
ci_scratch.rs:.github/actions/ci-scratch-lease/action.yml:7:# scheduled scratch-gc.yml sweep (#3841)..github/workflows/rust-gates.yml:202:# directory age. The same action is the scheduled scratch-gc.yml authority.
Related micro-nit in the touched file itself: the violation message attools/repo-policy/src/ci_scratch.rs:191still reads "scheduled reclamation must use ..." — it renders only when the reclaim step is missing, so it is a stale string on a violation path, not a wrong verdict. A one-line wording follow-up across the three spots would finish the job.
-
note (proof identity, non-blocking) — the body's recorded local proof (
cargo test -p repo-policy --lib, 43 passed) is pinned toe9a4c1de, while headdf65a306is a later comment-only commit touchingscratch-gc.ymlandci_scratch.rs. The workflow-gate gap is closed by the hosted pass above; the lib-test claim is not re-established at the head SHA. I readtools/repo-policy/src/ci_scratch/tests.rs: its fixtures are inline strings and nothing parses the module header, so I expect no drift — but I did not rerun the suite locally; this rests on the hosted gate plus source reading.
Residuals outside this PR's declared non-goals, for the record: the changelog's "no self-hosted pool has accepted its jobs since 2026-11-09" is an observation with a stated window, not a monitored gate; if the pools return, restoring the timer is a required follow-up the workflow comment already documents.
…14124) The branch is being reused for the admission carrier fix; the Scratch GC change will be republished separately. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016EQRVhsGmyCCQRP94GUq78
Current disposition — republished as #14295
This parked candidate has already been republished on its own branch as #14295, current H
314f6893124dc719aabe2a4da3df6d5bf5f33ef5. Continue that existing candidate; this PR remains closed, unmerged source/review history. Its former branch is not being reused.Required qualification 43005595238, attempt 1 succeeded on actual P
242940225e973bc6b4676797477ff0278aab52c9, merging that H onto2ab9f908bccd3b509b177cc0520aeb19034b0a4b. Gates and all four shards passed. Verifier 130509399543 reconciled 29,181 listed/JUnit tests, zero missing or duplicated; required Result 130509553901 passed live eligibility and hosted execution.The successor is now landed. Native merge-group 43173263924, attempt 1 succeeded on G
50e449b9990a94ef930f4b15d42a35e9e5a260e6, which is the resulting M commit at 2026-11-12 07:55:45 UTC. Gates, all four shards and required Result passed; the verifier reconciled 29,394 listed/JUnit tests, with zero missing, duplicated or outside-inventory identities. The timer is removed on main; manual dispatch and inline reclamation remain. No republish, re-enqueue or extra qualification remains for this closed historical PR.The earlier H/P qualification and queue event 35795460526 at 2026-11-11 12:13:28 UTC are retained as history at their original subjects. The actual G result above supersedes the earlier waiting-for-landing state.
The successor retains this PR's changes and carries the wording repairs plus explicit manual-only policy/negative controls. #14200 owns normal runner-inventory retirement; #13966 owns Cargo scratch lifecycle. Neither replaces this timer removal.
Historical parked-candidate description and proof
Requested by Steven Zimmerman · project thread
Summary
17,47 * * * *schedule fromscratch-gc.yml; keepworkflow_dispatch.cancelled, 1 failed, 4 were pending. In run 42961777865 all three pool jobs were queued from 04:50:02Z to 05:20:29Z without being assigned a runner and were cancelled by the next fire.Swarm / Source Boundary
Source-of-truth Links
Proposal: #4984 (measured observation, item 5: #4984 (comment))
Spec: none; workflow trigger only.
ADR: none.
Plan item: #4984 CI cost reduction toward merge-queue-only qualification.
Governing issue or accepted claim: #4984 (partial; does not close it).
Acceptance delta (one sentence): Scratch GC no longer starts on a timer and remains runnable by manual dispatch with its jobs, per-pool concurrency and lease authority unchanged.
Candidate Relationships
Candidate branch (GitHub PR head is authoritative after publication): claude/project-thread-8p59h8
Stack parent or prerequisite PR (if any): none.
Proposed replacement of PR (if any; not yet accepted): none. #12973 does not change
scratch-gc.yml.Acceptance retained from a replaced candidate (if any): not applicable.
Accepted winner and losing candidate disposition (when decided): no competing candidate found in open or recently merged PRs.
Scope
.github/workflows/scratch-gc.yml: trigger block and an explanatory comment that keeps the cron line for restoring.policy/workflow_allowlist.txt: reason text for the same row; the line budget is unchanged.changelog.d/4984-scratch-gc-manual-only.md.Scope Classification
Production delta:
Evidence/support delta:
Single acceptance criterion:
scratch-gc.ymlhas noscheduletrigger, still hasworkflow_dispatch, andcargo xtask check-workflowspasses.Non-goals:
routed-rust.yml, to the inlinerust-gates.ymlreclaim, to theci-scratch-leaseaction, to required checks or to settings.Support-tier Impact
Policy Impact
Ledger or exception notes:
policy/workflow_allowlist.txtreason text updated; budget3unchanged.Proof
Result, failures, or skipped proof:
e9a4c1de2b07b1ac6f2a3397b4561915361cc85d.cargo xtask precommitdid not complete: its file-policy stage builds theriprlib test, andrustcwas killed by the container memory limit (Memory cgroup out of memory, anon-rss 13.8 GB in a 15 GB container). This is a local infrastructure limit, not a source failure; the stages it reached before that passed. Not established locally: the full precommit verdict.cargo test -p repo-policyrun has 4 failures incoverage_diagnostics(No such file or directory: LLVM tools absent in this container); they do not read this workflow.Claim Boundary
Rollback
Revert this PR; no state migration.
Spec-Test-Code Traceability
repo-policyscratch and workflow policy tests.github/workflows/scratch-gc.ymlStatic Language Check
killed,survived,untested,proven, andadequate.Generated by Claude Code