Skip to content

ci(scratch-gc): retire timer (republished as #14295) - #14124

Closed
EffortlessSteven wants to merge 2 commits into
mainfrom
claude/project-thread-8p59h8
Closed

EffortlessSteven wants to merge 2 commits into
mainfrom
claude/project-thread-8p59h8

Conversation

@EffortlessSteven

@EffortlessSteven EffortlessSteven commented Nov 11, 2026 •

Copy link
Copy Markdown
Member

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 onto 2ab9f908bccd3b509b177cc0520aeb19034b0a4b. 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

  • Remove the 17,47 * * * * schedule from scratch-gc.yml; keep workflow_dispatch.
  • Every job in this workflow needs a self-hosted runner from the cx43, cpx42 or cx53 pool. 95 of the last 100 scheduled runs (2026-11-09 03:50Z to 2026-11-11 05:20Z) concluded 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.
  • Owner direction, 2026-11-11: GitHub-hosted is the accepted execution surface and the runner token is not being rotated now, so the timer only produces about 48 cancelled runs a day.

Swarm / Source Boundary

  • swarm-only CI, runner, routing, source-of-truth, or agent-operating surface

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

  • Other: one CI trigger

Production delta:

  • none (no product code).

Evidence/support delta:

  • none.

Single acceptance criterion:

  • scratch-gc.yml has no schedule trigger, still has workflow_dispatch, and cargo xtask check-workflows passes.

Non-goals:

  • No change to runner routing in routed-rust.yml, to the inline rust-gates.yml reclaim, to the ci-scratch-lease action, to required checks or to settings.
  • No claim about why the pools accept no jobs.

Support-tier Impact

  • none

Policy Impact

  • CI lane

Ledger or exception notes:

  • policy/workflow_allowlist.txt reason text updated; budget 3 unchanged.

Proof

cargo xtask check-workflows          # pass
cargo xtask check-static-language    # pass
cargo xtask check-network-policy     # pass
cargo xtask check-doc-artifacts      # pass
cargo test -p repo-policy --lib -- scratch workflow   # 43 passed, 0 failed
cargo fmt --check                    # pass

Result, failures, or skipped proof:

  • Linux x86_64, Rust 1.95.0, head e9a4c1de2b07b1ac6f2a3397b4561915361cc85d.
  • cargo xtask precommit did not complete: its file-policy stage builds the ripr lib test, and rustc was 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.
  • The full cargo test -p repo-policy run has 4 failures in coverage_diagnostics (No such file or directory: LLVM tools absent in this container); they do not read this workflow.
  • Hosted qualification not yet requested.

Claim Boundary

  • May be claimed: the Scratch GC timer is off and the workflow is manual.
  • Must not be claimed: that self-hosted scratch disks are being reclaimed on a schedule, or that the pools are retired. If the pools return, the timer has to be restored (the cron is kept in the comment), otherwise only the inline per-job reclaim runs.

Rollback

Revert this PR; no state migration.

Spec-Test-Code Traceability

  • Spec: none
  • Tests: existing repo-policy scratch and workflow policy tests
  • Code: .github/workflows/scratch-gc.yml
  • Golden outputs: none
  • Metrics: none
  • ADR/learning: none

Static Language Check

  • Static output avoids killed, survived, untested, proven, and adequate.

Generated by Claude Code

…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
@coderabbitai

coderabbitai Bot commented Nov 11, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

  • Ask an admin to enable usage-based reviews

Open in CodeRabbit

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.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available. Your 145 included PR review attempts over the past 7 days set your current allowance at 1 review per hour.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: ASSERTIVE
  • Plan: Essentials
  • Run ID: a83a31a7-bd02-4139-914f-f86b9efb428f
Commits

Reviewing files that changed from the base of the PR and between abf2c72 and df65a30.

Files selected for processing: 4

  • .github/workflows/scratch-gc.yml
  • changelog.d/4984-scratch-gc-manual-only.md
  • policy/workflow_allowlist.txt
  • tools/repo-policy/src/ci_scratch.rs
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

@EffortlessSteven EffortlessSteven self-assigned this Nov 11, 2026
@EffortlessSteven
EffortlessSteven marked this pull request as ready for review November 11, 2026 06:15

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@gemini-code-assist

Copy link
Copy Markdown

Warning

You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again!

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Devin Review found 1 potential issue.

Devin Review

Comment on lines +23 to +30
# 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.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔍 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.

Devin Review


Was this helpful? React with 👍 or 👎 to provide feedback.

@github-actions

github-actions Bot commented Nov 11, 2026 •

Copy link
Copy Markdown
Contributor

ripr static exposure check

Commit df65a306fe34 · run · advisory, static evidence only (not a mutation run).

#ripr agent static-advisory base=abf2c72db29b8717348596d9034d18af66479b10 findings=0 gaps=0
done=no changed behavior found in scope; static advisory, not runtime proof
verify=refused|outcome=no_behavioral_candidates|findings=0|exposed=0|reason=no_behavior_in_scope

Took 7s.

@EffortlessSteven EffortlessSteven left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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-gc checkout and mode: reclaim lease 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 at tools/repo-policy/src/lib.rs:506, enforced at tools/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 existing changelog.d convention; 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:

  1. 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 at tools/repo-policy/src/ci_scratch.rs:191 still 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.
  2. note (proof identity, non-blocking) — the body's recorded local proof (cargo test -p repo-policy --lib, 43 passed) is pinned to e9a4c1de, while head df65a306 is a later comment-only commit touching scratch-gc.yml and ci_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 read tools/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.

@EffortlessSteven EffortlessSteven changed the title ci(scratch-gc): stop the half-hourly timer while no self-hosted pool accepts jobs ci(scratch-gc): stop the half-hourly timer while no self-hosted pool accepts jobs (parked, to be republished) Nov 11, 2026
EffortlessSteven pushed a commit that referenced this pull request Nov 11, 2026
…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
@EffortlessSteven EffortlessSteven changed the title ci(scratch-gc): stop the half-hourly timer while no self-hosted pool accepts jobs (parked, to be republished) ci(scratch-gc): retire timer (republished as #14295) Nov 12, 2026
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.

2 participants