Skip to content

ci: prune Qt cache objects unused by the completed build - #1690

Merged
zackees merged 4 commits into
masterfrom
infra/1269-qt-used-cache
Oct 22, 2026
Merged

zackees merged 4 commits into
masterfrom
infra/1269-qt-used-cache

Conversation

@zackees

@zackees zackees commented Oct 22, 2026 •

Copy link
Copy Markdown
Member

Summary

Refs #1269 and #1667. Prune the Qt runner's local compiler objects unused by the completed build, retaining current hits/misses with a one-minute margin, then apply the unchanged 1200M size limit. Master-only remote publication and unconditional build/tests remain unchanged. Missing preparation epoch skips age eviction. Before/after filesystem bytes are logged on PRs too, to qualify actual payload reduction before claiming it.

The pinned hosted ccache 4.12.3 refreshes a retrieved entry's modification timestamp. This is the same age-pruning strategy already used for the Windows app cache, rather than imposing the smaller working set rejected in the native experiment. No remote cache API deletion, new workflow file, C test/header modification, coverage reduction or storage-setting change.

RED → GREEN

  • RED 8486e74: uv run --no-project -m unittest ci.test_qt_cache_budget fails two cases (missing epoch wiring and missing age eviction in the PR's local copy).
  • GREEN: 28 focused Qt identity/budget/fast-path/cache-policy checks pass. Tests execute the real workflow shell blocks with a controlled clock and ccache adapter, checking cutoff, ordering, missing epoch and publication guard.
  • Full ./lint passed in 46.4 s (149 CI test files, rustfmt, Clippy and Dylint).
  • A real local ccache 4.13.6/GCC 15.2.0 probe executes those same scripts: used entry remains a direct hit with zero misses, stale entry becomes a miss. Two old cache files are removed. This is a small mechanism check, not hosted Qt/performance evidence; CI uses 4.12.3. Script, counters and limitations are in docs/ci-evidence/2026-10-22-qt-cache-used*.
  • Read-only clud-review: one reviewer, no findings.

Hosted validation

Pending the selected Qt job and PR CI Gate. No byte saving, smaller published archive, warm next-consumer retention or speedup is claimed yet. #1269 remains active for whole-budget allocation, native architecture retention and representative traffic evidence.

Hosted selection correction

Run 39704674207 skipped Qt because the scope table omitted both cache contract tests. That run is not hosted pruning evidence. RED 2889dce reproduces both missing selections; the GREEN scope change selects Qt for its budget and identity contract tests. All 40 scope tests and 28 Qt/configuration tests pass, full lint passes in 73.6s, and the scope delta received a clean clud-review. Hosted pruning qualification remains required on the new head.

@zackees
zackees force-pushed the infra/1269-qt-used-cache branch from 1077ebf to c6a6377 Compare October 22, 2026 01:15
@zackees

zackees commented Oct 22, 2026

Copy link
Copy Markdown
Member Author

Required PR run 39705091053 passed on source 3f40a93. Submitted to the normal merge queue, position 2 at observation.

The selected Qt job 119583323367 passed on hosted ccache 4.12.3:

  • restored archive: 1,186,413,233 bytes;
  • runner-local store before pruning: 1,196,582,208 bytes;
  • after pruning/cleanup: 507,503,415 bytes (689,078,793 fewer, 57.59%);
  • 310 cacheable calls, 303 hits, 7 misses; 615 files after cleanup;
  • five Python facade tests and all 19 CTest cases passed.

This is one real hosted local-store observation, not the compressed post-prune archive size, a matched speedup, or a subsequent consumer. PR publication is suppressed. Master publication and later warm reuse remain the next qualification steps under #1269.

Merged via the queue into master with commit 224602f Oct 22, 2026
22 checks passed
@zackees
zackees deleted the infra/1269-qt-used-cache branch October 26, 2026 15:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant