Repository navigation
Description
Maintainer-requested handoff — 2026-10-22
Paused; implementation ownership released for handoff. Issue remains OPEN.
- Current draft: ci: prepare native cache measurement scope — handoff #1838 — unqueued; do not launch experiments automatically.
- Detailed handoff, exact commands and next steps. The PR also uploads a hashed47-record bundle of all remaining task captures.
- Current routing REDfe42cd3af → GREEN72131b3a5:24focused tests, full lint51.5s, clean primary review. PR CI is newly started/unverified at handoff. Checkout fetched/rebased onto origin/master before upload.
Remaining problematic areas and why
- Global allocation: declarations13,332,643,839B exceed the10,737,418,240B budget by2,595,225,599B. Architecture variants, growth, overlap and every family's net value are not fully reconciled. #1723is draft/revise and must not land unchanged; smaller declarations alone do not preserve useful seeds.
- Version eviction: upstream ci.yml#75 conflates distinct Actions cache versions. Actual registry/mini deletions and later replacement HITs are retained; earlier Qt/Flatpak disappearance actors remain unknown.
- AppImage: #1833merged the producer-path repair, but child #1832still needs nonempty publication, actual later reuse, source freshness, costs and durability. Existing zccache#1935 records native immediate-edit stale output on the pin; a hit is not correctness qualification.
- Native transport: Windows strict profile misses and earlier macOS freshness-harness failures leave it default-off/unqualified. #1792fixed a harness later, without retroactively passing old trials. Draft1838only scopes future existing native experiments to reduce unrelated cost; it is not backend adoption or full-platform validation.
- Observed failure: master39858120197FAILED,10success/16skip/1failure.437sUbuntu bootstrap timeout occurred before checkout/cache/build/tests; no later consumer evidence from that job. No blind retry or replacement dispatch was used.
Merged units: #1826Flatpak retirement, #1830allocation report, #1833AppImage environment fix. They do not complete this issue, #1832or umbrella #1667. Preserve original acceptance criteria below. Resume by reading the draft's handoff, checking live claims/runs and PR CI, then deciding the next evidence-supported unit. No new workflow files, paid capacity or expensive native jobs merely for routing arithmetic.
Original context and acceptance criteria
Context
Focused implementation follow-up to #1269; overlapping consumer work remains with #1286, #782 and #1760. No second implementation claim is made by filing this issue.
Read-only pinned audit on master 2bc7b591ee3c5375547f9410b586e20237465ac6, 2026-10-22 16:16:44–45 UTC:
- Family declarations:13,542,359,039B; configured budget10,737,418,240B; declared excess2,804,940,799B.
- Paginated inventory:10,364,929,123B. Separate usage endpoint:11,125,448,570B. These are non-atomic observations, not steady headroom or proof of an eviction actor.
- Windows app family:838,860,800B declared versus two current archives totaling1,876,947,359B.
- macOS app family:524,288,000B declared versus two current archives totaling1,336,225,176B.
- Projected Flatpak state:2,266,246,245B in its existing2,684,354,560B allowance. First publication alone does not establish warm consumer value/durability.
- Qt:507,941,842B current seed under786,432,000B allowance. Prior seed9344459457 was retained at14:36 by a master janitor, then disappeared before the next actual lookup; actor remains unknown.
Prepared draft #1723 splits native architectures but raises declarations to16,433,912,216B,5,696,493,976B above budget. It cannot land as a complete capacity solution. Earlier native seed deletions are explicitly attributable to pooled-family janitors; do not attribute the separate Qt/Flatpak disappearances without evidence.
Sources: retention audit and offline executor, rejected350M Windows trial, failed native release-cache build qualification, 24-hour cohort, and #1269's linked hosted logs.
Proposal
- Reproduce the current pinned read-only allocation/consumer inventory. Inventory every live writer, key/profile, native architecture, generation, publication size and required cache fallback.
- Publish one explicit within-budget allocation, or a measured rejection with concrete owning follow-ups for each unresolved family. Account for writer overlap, grace, architecture variants and growth; an under-quota instant or smaller declaration alone does not preserve useful data.
- Coordinate ci: prepare independent native architecture cache retention #1723 and the native backend qualification with perf: accelerate Windows/macOS validation CI and publishing with compiler caches, PCH and zccache/reld #782; do not relax compiler/profile/freshness checks. Coordinate actual projected Flatpak consumer/archive evidence with perf(ci): halve full Flatpak build time and eliminate repeated CEF processing #1760, retaining its owner and scope.
- Apply only justified bounded policy changes. Attribute deletion through actual logs; retain unknown actors as unknown. Preserve newest useful compatible seeds and the10-minute grace window.
Reproduce without deleting caches:
uv run docs/ci-evidence/2026-10-21-cache-retention-audit.py --output /path/to/owned-capture
uv run docs/ci-evidence/2026-10-21-cache-retention-audit.py --output /path/to/owned-capture --replayAcceptance criteria
- Commit reproducible current input/config/report evidence and a table of all family/writer/architecture reservations, observed sizes, growth/overlap and consumer value. Distinguish declarations, uncompressed working stores, Actions archives and external storage.
- Adopt a justified allocation within the existing10GiB budget, or document measured rejection and link every remaining requirement to an actionable owning issue; give ci: prepare independent native architecture cache retention #1723 an explicit adopt/revise/reject disposition.
- Any policy implementation has local RED then GREEN commits using saved real inventories and cheap existing Fast Gate fixtures. Verify newest useful native architecture and queue compiler/apt seeds survive while genuinely superseded generations remain reclaimable. No extra native job or compiler invocation merely to test policy arithmetic.
- Observe actual trusted publication and later consumer reuse across cleanup/writer activity. Report restore/save/build costs, actual compiler hits, source-edit freshness, all selected failure/cancellation outcomes and known timing limitations. A restored archive alone is insufficient.
- Preserve trusted master publication, identity/integrity checks, native cold fallback correctness, Tier2 OFF/ON/differential/protocol checks, unchanged C tests/public headers, and existing unity/PCH policy. Never cache passing test results.
- No new workflow file, paid storage adoption, budget increase, broad unmeasured deletion or weakened checks. Native validation uses existing selected jobs; preserve all outcomes of live runs and avoid cancelling other measurements with a competing master dispatch.
Decisions
- Keep ci: run cache janitor on trusted queue without delaying CI #1269 as the original incident/report and this focused child as the capacity/disposition owner, so unresolved implementation is not hidden in comments or declared complete by a report merge.
- Reject350M as the default remedy: the controlled Windows trial roughly doubled native rebuild time. Do not erase measured consumer value to satisfy arithmetic.
- Keep prototype release transport default-off until platform-specific compiler reuse/freshness and cost evidence justify adoption. Strict Windows profile misses and failed macOS freshness remain incomplete qualification.
- Prefer normal traffic and read-only replay. Any necessary hosted experiment must state scope/cost in advance and preserve existing active runs.
- Accept the phased plan as this issue's disposition: Phase A (fix(ci): reconcile global cache capacity and retain measured warm seeds #1801) — stop saving the six app-build cache families to the Actions cache so the deps shapes and the zccache-tier2 layer stop being evicted; Phase B (perf: accelerate Windows/macOS validation CI and publishing with compiler caches, PCH and zccache/reld #782) — bring those app-build caches back outside the 10 GiB through the release-asset transport.
Open questions
- Which actor removed the older Qt and Flatpak seeds? Presence/absence and quota pressure alone do not answer this.
- Which allocation/transport boundary sustains all required consumers under growth and overlapping writers without increasing paid capacity?
Sub-issues
Collapse Sub-issuesSub-issues
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsDone
Activity
zackees commentedon Oct 22, 2026
New actual consumer evidence from existing master39812201578, job119942032116 (source2bc7b591e): SUCCESS,480s wholejob. It restored projected-state9351848007 /2,266,246,245B under the exact source key, reused all six dependency modules, and rebuilt with329/331cacheablehits,2misses,16uncacheablecalls. This establishes first subsequent Actions consumer reuse, not three-sample routine performance, source-edit qualification across differing commits or representative durability. The whole workflow is still being observed. No family/budget/writer changes or new dispatch by this worker. Raw log SHA256351e272ccf16afefb3d02e99f91c04fe2128229b0c90f5e418257225d92ee19d; raw metadata/log/excerpts retained for the allocation report. #1760 retains its own declared performance target and cohort.
zackees commentedon Oct 22, 2026
Claiming: global cache capacity and retention, after completing1269. 1) Capture current pinned input/config/report and inventory every writer/fallback, native architecture and observed consumer. 2) Choose a bounded evidence-supported allocation or obsolete-reservation fix; use local saved-inventory RED→GREEN policy fixtures, preserve existing10GiB/trust/grace/correctness, and explicitly disposition1723. 3) Observe existing trusted publication/consumers and publish remaining allocation decisions with all failures/cancellations. First focused PR after this audit in this work session. No extra native/compiler jobs for policy arithmetic, no new workflow or paid capacity, no competing master dispatch. Existing1723 is my held prototype, not an independently claimed change;1805 native test-graph work is unrelated and remains with its owner.
zackees commentedon Oct 22, 2026
First bounded unit selected from current audit1751566fe: retire Flatpak migration-only old whole-builder/standalone-compiler restore steps and the200MiB standalone family. All current workflows have no standalone writer; current inventory has0flatpak-ccache entries and one projected-state archive. Merged1760retrospective supplies real subsequent projected consumers, source generations, final3warm samples and846s explicit cold qualification. Preserve projected cache+ccache restore/publication, architecture/key/fallback identity, cold guard, counter reset, SDK/build/export/validators and trust. Local RED→GREEN existing CI-policy tests plus pinned saved-inventory replay; no extra app/native run for arithmetic. Decisions: remove obsolete migration paths only after their replacement/cold route are observed; no claim this resolves the remaining multi-GB overcommit or1723hold.
zackees commentedon Oct 22, 2026
First bounded implementation is #1826: retire obsolete Flatpak migration restores and the unused standalone 209,715,200-byte reservation. Local RED (6 checks/4 failures), GREEN (53 passes), full lint (101s) and independent review are recorded. PR CI is running; expensive native/app jobs are correctly skipped. Portable eight-record replay evidence is in the PR. No live cache deletion, new dispatch, or global completion claim.
Explicit #1723 disposition is now revise; do not adopt unchanged, recorded in its description. It stays draft/unqueued. Conditional on #1826 landing, its allocation would still exceed 10 GiB by 5,486,778,776 bytes. Keep demonstrated consumer value, strict profile/freshness checks and the default-off transport qualification boundary; neither smaller declarations nor the rejected 350M Windows limit resolves this.
The remaining all-family audit is ongoing: local source capture identifies 101 direct cache/setup steps across 12 workflow/action files. This is a source inventory, not execution or consumer proof; pinned dependency-internal writers still need inspection. #1801 remains open for the full allocation/consumer/growth/overlap table and actual durability evidence.
zackees commentedon Oct 22, 2026
The all-writer audit confirmed an additional current retention defect already owned upstream by ci.yml#75; no duplicate issue was created. #1354's earlier cook namespace mitigation explicitly left registry/mini unchanged.
Current master39856485267 container Tier2 job120096064408 restored the registry archive at21:22:31Z. It uses /github/home/.cargo. Host Fast Gate120096064486 uses /home/runner/.cargo and published a different Actions version under the same literal key. The saved pinned production replay marks the consumed container version superseded by the host version.
Actual queue janitor120099575434 in39857545469 then logged deletion of container registryID9365023520 at21:28:41Z, retaining hostID9366974950. This establishes the deletion actor for this specific current registry case. A later consumer miss has not yet been observed. Mini has the analogous distinct-version host/container paths, an actual container miss/publication and hypothetical later janitor selection, but no mini deletion is claimed.
A second read-only snapshot21:27:51Z lists10,259,430,637B (477,987,603B headroom), up from9,171,584,364B at21:16:19Z. New overlapping Qt/Tier2 generations and setup archives explain the observed additions; this is not a peak or representative durability result. The queue subsequently deleted the old Qt/Tier2 generations as well as the registry entry above. Baseline and candidate replay inputs/reports, raw completed-job logs and exact source excerpts are retained for the all-family report. No manual deletion, new hosted dispatch or broader test scope.
#1826 is first in the queue with its PR gate green. #1801 remains active; #1723 remains draft with explicit revise disposition.
zackees commentedon Oct 22, 2026
#1826 merged through the normal queue at233db443aa3f528b30da7fe2dea19fddabf52f6c (2026-10-22T21:32:40Z). PR and merge-group39857545469 CI Gates passed. The three obsolete Flatpak migration restores and unused200MiB reservation are removed. Declared capacity is now13,332,643,839B, still2,595,225,599B above the unchanged10GiB budget. No live reclamation or whole-job speedup is claimed by this retirement.
Clean local checkout fetched/rebased onto origin/master. The all-family report continues under this claim; registry/mini version identity has the existing actionable upstream owner ci.yml#75, with current actual consumer/deletion evidence linked above. Native allocation candidate1723 remains draft/unqueued with revise disposition. Do not treat this bounded merge as completing1801 or1667.
zackees commentedon Oct 22, 2026
Reproducible allocation/version follow-up is now #1830, based on merged1826/currentmaster233db443a. It maps all25remaining families, preserves26exact records (including raw logs), replays both production/candidate configurations, records publication overlap and distinguishes actual registry deletion from hypothetical mini selection. Documented extraction/replays passed; all hashes/table arithmetic checked; sole primary review clean. No new native/compiler run, workflow, live delete or budget increase.
The report keeps remaining requirements explicit rather than claiming a finished allocation: declarations are still2,595,225,599B over budget;1723 stays draft/revise; current variant/growth/net benefit and actual later consumer evidence remain incomplete. Upstream ci.yml#75 has the new actual deletion evidence. The normal subsequent master run39858120197 is still pending before event/CI-mode routing, so it does not yet establish a later container miss. It has not been retried, replaced or cancelled.
zackees commentedon Oct 22, 2026
Additional concrete producer defect now has native child #1832 (relationship verified): existing successful release39845783549/AppImage job120058695191 reports314cold/0cached compiler calls, then
.zccachesave fails because the path does not exist. Current launcher forwards CCACHE_* but drops workflow-configured ZCCACHE_CACHE_DIR. Cargo's independent31MB restore/save is not native compiler reuse. The existing three container runtime variants plus NixOS succeeded; no new build was launched by this audit.1832requires focused real-launcher/fake-Docker RED→GREEN evidence without new compiler/test binaries or expensive lanes for argument arithmetic, plus actual trusted publication/later reuse/source-edit correctness before completion. It is the actionable AppImage writer-path follow-up to the allocation report; no new implementation claim yet.
Allocation report1830passed all PR checks and entered the normal merge queue. The existing post-retirement master39858120197is still pending in routing jobs; it has not yet established a subsequent container miss and has not been retried/cancelled/replaced.
zackees commentedon Oct 22, 2026
Allocation report #1830 merged normally at209d977f3aefa34641a4b347dfb0db2904c4e72a,2026-10-22T21:44:20Z, after green PR/queue gates. All25remaining family rows, overlapping publications, raw current registry-consumer/deletion evidence and26record portable replay are on master. Verified each local record byte-for-byte against the merged companion before removing26redundant capture copies with safe-rm.
This report does not establish a complete allocation or complete1801: declarations remain2,595,225,599B over budget;1723 remains draft/revise, and the upstream version identity defect remains with ci.yml#75. Concrete AppImage producer child1832has reviewed RED/GREEN implementation PR1833in normal CI, without added expensive lanes. Its later actual publication/reuse/freshness and cost/retention qualification remain open. No second unrelated issue selected.
zackees commentedon Oct 22, 2026
Next bounded unit under the existing1801claim: make necessary native-cache qualification cheaper through an explicit default-off native-cache-measurement-only selector in existing ci.yml/build-project.yaml. Current native probes otherwise select the entire manual matrix. No hosted experiment is launched by this change.
Decisions: accept only trusted same-repository master workflow_dispatch with exactly one existing native transport/reuse protocol; reject explicit release full, budget/Flatpak/setup/reuse conflicts before heavy work. Keep both native app architectures, existing profile/integrity/build/freshness steps, native release transport/consumer when requested, and lightweight lint/required aggregation. Omit unrelated Ubuntu/Flatpak/native Rust/Tier2/cross/Qt matrices only in this declared measurement mode; every routine PR, queue, master, schedule, release and ordinary dispatch retains its original selection. This mode is measurement, never full-platform validation or backend adoption.
Local RED→GREEN uses the actual workflow scope shell/real selectors and existing stdlib CI test discovery; include invalid contexts, mixed inputs and default/release regressions. No new workflow/job/test executable or native compiler invocation for routing arithmetic. First PR this session after focused tests, lint and sole review. Actual producer/consumer experiments remain separately costed, preserve current active manual runs and require a concrete missing-evidence target before dispatch.
zackees commentedon Oct 22, 2026
Releasing global cache allocation/retention work for maintainer-requested handoff; goal is paused. Current draft PR: #1838 . It contains RED/GREEN routing work, the detailed handoff and all47remaining task-capture files in a hashed portable bundle. Parent1801body is updated with current problematic areas and why. Do not queue the draft or launch experiments automatically; qualification/global allocation remain incomplete. No unrelated issue selected.
11 remaining items
vpacher commentedon Oct 30, 2026
@zackees, measurements for the
Decided:above. The two rules (keep thedepsshapes, no family below its measured archive size) do not fit in 10 GiB together. I need a decision on which families leave the Actions cache before I write GREEN. The RED test is ready (ci/test_cache_family_budget.py, CACHE-004 arithmetic, 17618803096 B > 10737418240 B on master).Sizes
One entry per family, sizes from the cache API on 2026-10-30 (05:35 and 06:10 UTC),
depsat its declared shapes:appimage-cargo,targets-ccache,targets-apt) at their declared max: 14.79 GiB.zccache-tier22.07 GiB (max 1.5 GiB) andzccache0.70 GiB (appimage shape 0.39 GiB).So a change of the maxima alone cannot fit: some families must stop saving to the Actions cache.
Hits
Restore hits and misses from the job logs of 57 runs in the last 48 h (20 PR, 20 merge queue, 1 schedule, 6 dispatch, 10 master push; the method goes in the PR body):
depslinux / windows / macoszccache-tier2tier2-aptflatpak-builderwindows-ccache-x64windows-ccache-arm64zccache-ubuntuxcode-arm64xcode-x86_64The six app-build families hold 5.71 GiB and hit 9 times in 42 restores (21 %). The Scheduled failures of these days (the CEF version check, #2417/#2418) do not change this: the app-build jobs still restore and save in those runs.
Options
build-project.yamlandrelease-rust.yaml, remove their families). Sum: 8.10 GiB, 9.08 GiB with the three empty families at max. Nightly, dispatch and release app builds start cold; today they are cold 79 % of the time. Later, these caches can move to the release-asset store (ci/native_cache_release_store.py, from ci: prepare native cache measurement scope — handoff #1838), which does not count against the 10 GiB.flatpak-builder,zccache-ubuntu,xcode-x86_64,windows-ccache-arm64) and keepxcode-arm64andwindows-ccache-x64for the release lanes. Sum: 9.67 GiB, 10.65 GiB with the empty families at max. No headroom: the next growth evictsdepsagain.Recommendation: 1. It is the only option that fits with headroom and costs nothing. It is reversible (one commit adds the saves back), and the app builds lose little because they are mostly cold today.
To answer, start a comment with
Decided:.vpacher commentedon Oct 30, 2026
Decision needed: which of the three options in the comment above (recommended: 1, remove the six app-build families from the Actions cache). GREEN waits for it; RED is ready.
vpacher commentedon Oct 30, 2026
Addition to the options above: option 1 does not need to be the end state for the app-build caches. The release-asset transport (
ci/native_cache_transport.py,ci/native_cache_release_store.py, #782) can bring them back later, outside the 10 GiB. A plan in phases:ci.tomlfits the budget (RED is ready).depsandzccache-tier2stop being evicted. The app builds are cold, as they are 79 % of the time today.zccache-ubuntuinto the transport, or keep them cold.Why A first: the transport covers only the four Windows and macOS families (about 3.0 GiB). Without them, one entry per family is still 10.8 GiB. Also, the transport has no passing qualification yet (your handoff in #1838, section 4: no adoption from an archive restore alone). If #1801 waits for B and C, the cook layers are evicted until then.
B to D follow the rules of the #1838 handoff: no relaxed profile matching; before each dispatch, the missing evidence, the producer source and profile, the cost and the storage are written down; no cancelled manual master runs. I can take phase B after #1801.
zackees commentedon Oct 30, 2026
Decided: option 1, as phase A of the plan above. Stop saving the six app-build families (
flatpak-builder,windows-ccache-x64,windows-ccache-arm64,zccache-ubuntu,xcode-arm64,xcode-x86_64) to the Actions cache and remove their families fromci.toml, so the declared total fits 10 GiB with headroom.Reasons:
deps,zccache-tier2andtier2-aptserve every PR and queue run, anddepsis the family being evicted.depsagain. Option 3 spends money while a free option fits.GREEN can go ahead:
ci/test_cache_family_budget.pypasses when the declared sum is at or under the budget. Include the before/after hit table in the PR body, and post the one-weekdepshit rate here after it lands.ci: retire the app-build caches and fit the ASan archive (obs-rust#1801…
fix(ci): declare the deps family by cook-base-v3 prefix (obs-rust#3166)…
ci: add the missing writer for the release-asset cache transport (obs…