Repository navigation
Description
Current status
The urgent fix landed in #1270. ci-pre.yml remains the general pre-work entry point on every PR and merge-group run and on master pushes; only its cache-janitor job is restricted to merge_group or push to refs/heads/master. Cleanup has no build/cancellation dependents and is excluded from CI Gate. The first master-push janitor succeeded. #1272 records the policy in the contributor docs and worker checklist. The investigation below describes the incident before the fix; the cache tuning follow-ups remain open.
Executive summary
The cache janitor failed on a fork PR because GitHub gave that run Actions: read: all 32 cache DELETE requests returned HTTP 403, and the janitor exited 1. The same maintenance job is currently a prerequisite of every Pull workflow job, including queue cancellation. It is excluded from the required gate, so this failure does not itself block merging, but its scheduling delays useful work. Running the janitor on each PR push cannot reliably delete caches from forks and makes PR chains slower. The trusted merge queue already runs constantly and is the right frequent cleanup trigger.
Our priority is merge queue throughput. In a 65-run sample (35 merge groups, 26 PRs, 4 manual), 25 merge-group runs were canceled; canceled attempts consumed about 103 runner-minutes. Successful merge-group gate median was 11m02s. A representative 17m30s run spent 7s in janitor, 193s in Fast Gate, 187s in Tier 2 build, and 598s in Tier 2 tests. Thus janitor's direct runtime is small, but its prerequisite edge serializes all jobs, and test execution remains the dominant critical path.
Evidence: failed fork run, representative queue run, successful master run. Related throughput tracker: #930.
Findings and strategy
- Janitor permissions and scheduling. Run it only for trusted
merge_groupevents; do not gate builds or queue cancellation on housekeeping. Keep its repo-wide, non-canceling concurrency group and exclude it fromCI Gate ✅. Provide a lightweight fallback trigger on master or schedule only if queue activity proves insufficient; do not add a new workflow file. - Overlapping cleanup policies.
scheduled.yamlindependently deletes broad classes of compiler caches, including master entries. Reconcile it with theci.tomlpolicy before trusting retention and cache warming. Scheduled workflowstartup_failureon Oct 16/17 requires separate log/API diagnosis; do not attribute it to the cache script without evidence. - Tier 2 remains critical. Cache hits are already ~99% for Linux Tier 2 zccache and Windows Tier 2 ccache, so more compiler caching will not materially shorten the 598s test phase. Preserve OFF/ON coverage and focus on measured test execution costs and shard balance under meta: Faster CI: code-PR queue runs under 8 minutes #930.
- Unproductive cache operations. Fast Gate restores
targets-ccache-linux-*but this repository does not seed that family on master; observed restores miss. Either seed it on a trusted master run or remove the restore after measuring. Tier 2 test-timing artifacts were absent in the observed run; the resulting cache entries were ~188 bytes and cannot inform sharding. Diagnose generation and hidden-file upload before relying on them. - Useful caches. Keep warm Linux Tier 2 zccache, Windows Tier 2 ccache, apt package, and prebuilt dependency caches. The live
qt-ccacheentry was ~1.11 GB whileci.tomldeclares 300 MB; align the family budget with actual value and repository budget after measuring.setup-soldr's dependency archive (~760 MB) took ~18.5s to restore in observed dev/clippy jobs; benchmark whether it helps those jobs. Merge-group saves can create off-master cache refs that the janitor later evicts; avoid churn if the action supports a trustworthy save policy. - Cost controls. Observe cache hit rate, restore/save duration, janitor deletion results, queue gate wall time, and canceled runner-minutes for at least a day of queue traffic. Retain the newest useful master cache and the janitor's 10-minute grace window; do not evict caches still being populated.
Proposal
- First PR: isolate janitor to the trusted merge queue, remove the maintenance dependency edges from Pull jobs, update tests and policy contract, and prevent fork 403 failures. Verify a fork PR and a merge-group run.
- Follow-ups: unify scheduled cleanup with
ci.toml; repair timing artifacts; resolve the targets ccache miss; measure restore costs and tune budget. Keep these independent so the urgent queue fix can land quickly.
Acceptance criteria
- RED → GREEN evidence: focused regression test fails on current Pull workflow and passes after the change; it asserts PR/fork runs cannot execute cache deletion, merge-group runs can, and core jobs/queue cancellation have no janitor prerequisite.
- A fork PR has no failed janitor job; a merge-group run performs or safely skips the sweep without holding the required CI gate.
- No loss of OFF/ON Tier 2 tests, no new workflow file, and no broad cache deletion without measured benefit.
- Follow-up measurements and unresolved items are linked here before closing this report issue.
Decisions
- Prioritize the queue isolation fix first because it directly removes an unnecessary dependency and the known 403 failure.
- Keep janitor best-effort housekeeping, outside the required gate; a cache API outage should not block a code merge.
- Keep
ci-pre.ymlas the general pre-work entry point; apply event guards to individual jobs. Run janitor on the existing merge queue and master pushes, skip it on PR pushes, and keep housekeeping outside required CI dependencies. - Cancel superseded runs promptly; a maintenance failure must not delay cancellation or the current required gate.
- For focused CI/configuration fixes, preserve local RED evidence and separate RED/GREEN commits but allow a single push of both. Remote RED runs are not required; docs-only changes need no RED/GREEN test.
- Explicit maintainer admin-merge authorization persists for the authorized landing. Recheck that the queue is empty immediately before bypassing; otherwise queue and jump to the front. Run focused validation first and wait for the PR CI Gate when changing the workflow graph. Record the decision in the PR.
- Keep cache tuning and Tier 2 test runtime work as measured follow-ups, since changing all policies at once risks losing useful warm caches.
Related issues
#930 tracks the queue runtime goal; #782 tracks Windows/macOS compiler caches; #525 tracks prebuilt dependency caching.
Sub-issues
Collapse Sub-issuesSub-issues
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsDone
Activity
zackees commentedon Oct 17, 2026
Claiming: trusted merge-queue janitor isolation. Plan: (1) add a focused failing workflow regression, (2) move cleanup off the Pull critical path and restrict it to merge_group, (3) verify CI and land the PR. I expect the first PR today.
zackees commentedon Oct 17, 2026
The urgent queue isolation fix landed in #1270 (master commit 8e729be). RED→GREEN workflow tests passed (16 focused tests), PR CI Gate passed, and the first master push run 39052551603 executed
CI Pre / Cache Janitorsuccessfully.ci-pre.ymlremains called on PRs; only its janitor job skips untrusted PR events. It runs on merge_group and master push, with no build/cancellation prerequisite. The report remains open for the scheduled cleanup overlap, timing artifact, targets ccache miss, and measured cache tuning follow-ups.zackees commentedon Oct 17, 2026
Claiming: document the policy decisions from #1270 and this incident. I am updating CI tooling, coordination, AGENTS.md and the worker checklist together: retain ci-pre as the general entry point; guard only janitor by trusted event; keep housekeeping off the gate/cancellation path; cancel obsolete runs eagerly; permit local RED evidence with RED/GREEN pushed together for focused CI fixes; clarify the explicitly authorized maintainer bypass and empty-queue check.
zackees commentedon Oct 17, 2026
The expanded cache and unity/PCH audit is now tracked as an actionable checklist in #1286. It includes setup-soldr profile matching, the Rust cache correctness blocker, unused cache overhead, touched-target warming, timing artifacts, merge-group saves, Qt retention, isolated libobs benchmarks, and queue/runtime measurements. The scheduled-cleanup item links back here so existing work is preserved.
zackees commentedon Oct 17, 2026
Retention clarification from the #1286 audit: pinned ci-lint
1a970f01574447d681571ff3d0b8de56cb983dcc,ci_lint/cache/ops.py::janitor, builds family-LRU/stale/finding deletion plans and then applies newest-entry/grace protection. It does not trim globally against[cache].budget. Budget auditing/forecasting is separate.Read-only synthetic executor probe: two current 6 GiB family entries, each within its own 6 GiB limit, with a 10 GiB repository budget, produced zero planned deletions. This intentionally has over-budget family declarations; it does not claim to pass static CACHE-004 validation or describe a live 12 GiB inventory. It demonstrates why lowering the global budget field alone will not create headroom.
OBS's previously published declared-capacity total (~16.95 GB versus 10 GiB) and measured nightly write burst therefore still need a whole-budget allocation / explicit writer-headroom policy. The Tier 2 family split cannot enforce priority over GitHub's own eviction. Keep the newest-entry/grace safeguards; do not blindly add a global delete pass that discards queue-critical seeds. Related upstream broader budget discussion: forge-ci/ci.yml#85. Probe JSON retained in-repo under
build_ci_audit/janitor-global-budget-repro.jsonand included in the pending consolidated report batch.zackees commentedon Oct 18, 2026
New observed loss of queue-useful seeds (#1286)
Read-only inventory comparison at 2026-10-18 01:56 UTC confirms zero
targets-ccache-linux-*and zerotargets-apt-*entries now. Both families were present in the saved mid-full-run inventory:9104990140, keytargets-ccache-linux-3c20ca7eee754d76bd8214bc4a8f6c4b88f196c5, 28,117,319 bytes;9104991065, same revision, 147,539,809 bytes.Both were master entries created around 00:14 UTC. Earlier #1286 warm-consumer evidence proved these families useful (41/41 compiler hits, all 323 packages available with zero apt download bytes). Their current absence means the warming implementation is working but retention is not yet durable. Presence/absence does not identify a deletion actor or exact deletion time; GitHub eviction and janitor behavior must not be conflated without logs.
At the same current capture, three disabled
setup-soldr-buildcache-v2-*entries still occupy 183,330,575 bytes: IDs9103393076,9103400655,9089195664. Merged #1372 disables this transport in all seven setup-soldr callsites after the full-run consumer audit. Its family remains declared, so these obsolete seeds can still receive retention protection. Retiring that unused family is a concrete candidate for your allocation work, alongside preserving measured queue-useful compiler/apt seeds; deleting it alone would not prove global headroom or stable retention.Raw before/current API responses plus focused comparison are retained inside this checkout under
build_ci_audit/cache-inventory-warm-full-midrun.json,cache-retention-current-pages.json, andcache-retention-target-loss.json. No deletion, broad cleanup, workflow dispatch, or competing retention PR was performed under your existing claim. #1286's durability acceptance remains open.zackees commentedon Oct 18, 2026
Follow-up: inspected 17 completed master/merge-group janitor logs from 00:42–01:55 UTC, covering the subsequent listed runs. All contain completed deletion summaries; none records deleting target cache IDs 9104990140 or 9104991065. The saved presence inventory is from approximately 00:32 UTC. This narrows the investigation but does not prove GitHub eviction or exclude other deletion actors. Raw logs are saved as build_ci_audit/retention-janitor-.log and indexed in cache-retention-target-loss.json. Master run 39087632930 has now completed successfully; the missing target-family entries are a separate durability issue.
zackees commentedon Oct 18, 2026
New measured capacity evidence from #1286: both post-#1371 Ubuntu producers passed in run 39089156757 and saved mode-specific archives on
df86995022:Pinned janitor
1a970f01574447d681571ff3d0b8de56cb983dcc, invoked offline with the saved actual inventory and a hypothetical clock beyond all ten-minute grace periods, plans to delete ON as family-LRU overflow and retain OFF. Both are present in the real captured inventory. This is a prediction, not an observed future deletion; later accesses/writes can change it. No network calls or live deletes in the probe.Thus compatible restoration/sizing is now verified at publication, but the current allowance cannot retain both measured modes. Retiring the disabled compiler family reclaimed 183,330,575 actual bytes and removed its declared allowance; it does not automatically allocate that capacity to useful families or solve the global budget. Preserve queue-critical seeds when deciding the broader allocation rather than simply inflating this family.
In-repo evidence:
build_ci_audit/compatible-ubuntu-retention-plan.json; corresponding tracked report draft:docs/ci-evidence/2026-10-18-ubuntu-retention-plan.json. No competing global allocation PR was opened.zackees commentedon Oct 18, 2026
The Ubuntu capacity limit is now observed in an actual deletion, beyond the earlier prediction:
9107248593, 795,699,586 bytes, because familyzccacheexceeded 1,153,433,600 bytes.9107347839and has no ON seed. This deletion is attributable to the janitor; it is distinct from the still-unattributed earlier plugin/Flatpak seed losses.Additional completed-run Flatpak inspection: producer job 117562006078 restored a 2,359,668,350-byte builder archive and explicitly skipped five dependency modules. Consumer job 117564891083 reported
No cache was found, rebuilt that dependency state and recreated a 2,348,886,553-byte archive. It is demonstrably useful state, not an unused cache to disable blindly. The deletion actor remains unproven. Their whole-job durations were 836/741 s, but different dependency availability and runners preclude a causal comparison.Flatpak ccache output also retains cumulative statistics; the workflow does not zero them. Printed consumer
602/889hits includes restored history and must not be described as per-job hits. The pinned action can overlay a second snapshot, so a correct future per-job measurement needs a baseline after the final restore or per-build statistics logging.In-repo raw evidence:
build_ci_audit/ubuntu-compatible-queue-janitor-117566681544.log,cache-inventory-after-compatible-consumer.json,flatpak-cache-observations.json, and bothflatpak-cache-audit-<job>.logfiles. Report #1382 is already queued, so I am recording this as follow-up evidence without dequeuing/pushing it for a documentation-only update.zackees commentedon Oct 21, 2026
Claiming: #1269 remaining cache allocation and retention follow-ups, under #1667, in the existing checkout.
First focused PR expected this session. No new workflow files, no subtree/worktree, no blind cache deletion, and no relaxation of test coverage or compiler freshness safeguards.
zackees commentedon Oct 21, 2026
Progress under #1667: #1670 merged through the normal queue as b7c8fcb.
restore-cache: true,save-cache: false, and skipped remote saves on both PR and merge-group refs: PR job, queue job.#1269 remains open and is still the one issue I am working on. Declared capacity is 16,363,867,340 bytes versus a 10 GiB budget, and newest-entry protection means lowered ceilings alone do not enforce the global bound. Next: establish a consumer-backed capacity/writer-burst allocation and retention evidence. The pinned Flatpak action couples ccache, restore and save; disabling its cache input would lose useful caching, so that is not a qualified fix. The natural master push run 39688934081 is pending at this observation; no producer runtime result is claimed.
The checkout was rebased onto current origin/master after merge and is clean. No subtree/worktree or new workflow file was created.
85 remaining items
zackees commentedon Oct 22, 2026
After normal #1803 merge-queue run39824060792, current complete cache snapshot has36entries totaling9,186,986,336B, below existing binary10GB limit10,737,418,240B. One projected Flatpak generation9354045170 remains at2,266,212,985B, below existing binary2.5GB builder limit2,684,354,560B. Actual production consumer39821239168 restored that generation and genuinely rebuilt with328compiler hits/2misses (16unsupported calls separate).
Normal queue janitor119982543166 succeeded, deleting three superseded Qt/Tier2/uv entries, and reports one Flatpak entry/2,266,212,985B. Its log does not show a Flatpak deletion; do not infer the actor for disappearance of the older seed from inventory alone. Existing budgets/backend/publisher/janitor policy remain unchanged. #1760 still open: original warm median475s misses450s target; browser C++20 follow-up #1806 requires full qualification/new-generation retention and timings. No request to close #1269 based on this snapshot.
zackees commentedon Oct 22, 2026
#1806 merged normally and final production seed 39831165145/job120007510258 passed455s at e1b6499 with315compilerhits/30misses/0unsupported and all6dependencyhits/validators. Actual new projected Actions archive9358763488 is2,274,967,809B, within existing binary2.5GB builder allocation2,684,354,560B. Seed is not counted as warm.
Current complete snapshot has35entries/12,820,941,951B and retains old9354045170 plus new9358763488, together4,541,180,794B. Thus global and builder-family occupancy currently exceed existing limits after the new generation publication; individual archive fit is not global retention proof. Existing trusted-event janitor policy/budgets/backend remain unchanged, and no manual cache deletion was performed. Manual measurement dispatches do not sweep.
Follow actual retained consumers and observe the normal janitor at the final retrospective PR queue (#1810) before closing1760. No claim that this transient inventory is acceptable settled capacity; #1269 ownership remains. Final three warm/coherent cold observations are still pending, and all costs/failures will remain visible.
zackees commentedon Oct 22, 2026
#1760 final Flatpak retention verification
Normal #1810 merge-group 39844208210 / janitor120053047134 passed. The log reports one Flatpak entry before/after: 2,275,027,686B, latestarchive9361847609. It deleted eight superseded non-Flatpak entries.
Fresh complete inventory: 33entries /7,978,322,993B, below global10,737,418,240B; one projected archive2,275,027,686B below family2,684,354,560B. Earlier transitional two-generation/global overflow is retained in the retrospective. We do not infer who removed the earlier Flatpak generation from inventory alone; this janitor did not report deleting it.
Production warm2/3 actually restored9360891151 before latestgeneration publication. We do not claim a later consumer of9361847609. All six dependencies and artifactvalidators passed; experimental freshconsumer/runtime qualification is separately recorded in #1767/#1806. No extra warmrun, backend/budgetchange or manualcachedeletion.
#1760 measured437/434/447s warmfulljobs, median437s,51.71% below905s baseline; source/SDK/cost/failure limits are in #1810. Its mergegate is still running. This reports the Flatpak contribution; broader cache tuning/throughput ownership stays with #1269, which this work does not close.
zackees commentedon Oct 22, 2026
Final report acceptance audit
Merged #1802 (
5ca60e695) preserves the original issue wording, requirement-by-requirement acceptance audit,39 exact records and18 log hashes/excerpts: report.The original report criteria are verified:
Continuing work remains OPEN: native child #1801 owns whole-fleet allocation, useful-seed durability and explicit1723disposition; #782 owns native/PCH/cache qualification; #1286 owns broader consumer/profile work; #930/#1793 own queue/admission. #1760's bounded Flatpak report has separately completed through1810; do not infer whole-fleet capacity from it. #1667 stays open for its complete native hierarchy.
#1801 is verified beneath1269, and1269 remains beneath1667. Completing this original incident/report does not complete its open child or the umbrella. No capacity increase, backend adoption or full native release-cache qualification is declared.
Newly observed39812201578 is now authoritatively SUCCESS; its first projected Flatpak consumer's480s/329of331hits remains one sample. Unarchived consumer data and final metadata were carried into the follow-up's owned scratch. All redundant1269scratch roots were removed withsafe-rm after verifying merged byte hashes; checkout rebased tocurrentorigin/master and clean. No worktree/subtree was created.
test(ci): resolve native seed suffix architectures in cache family ch…
test(ci): let runtime-bound cache keys bind to their family dynamical…
test(ci): resolve native seed suffix architectures in cache family ch…
test(ci): let runtime-bound cache keys bind to their family dynamical…
test(ci): resolve native seed suffix architectures in cache family ch…
test(ci): let runtime-bound cache keys bind to their family dynamical…
test(ci): split cache_keys under the C901 ceiling (#1269)
ci: prepare independent native architecture cache retention (obs-rust…