Skip to content

ci: reuse Qt compiler snapshots across unchanged build inputs - #1374

Merged
zackees merged 3 commits into
masterfrom
infra/1286-qt-cache-identity
Oct 18, 2026
Merged

zackees merged 3 commits into
masterfrom
infra/1286-qt-cache-identity

Conversation

@zackees

@zackees zackees commented Oct 18, 2026

Copy link
Copy Markdown
Member

Summary

Refs #1286. Avoid publishing a ~1.16 GB Qt compiler archive for every documentation-only commit.

Three recent master/full-run snapshots held 3.48 GB and had only 4, 2 and 2 compiler misses out of 300 calls. The new publication identity hashes tracked index entries excluding docs/Markdown, runner image, Qt/FFmpeg pins, and installed C/C++/CMake/ccache/Ninja versions. Actual build configuration and source files remain in the identity. It is computed after dependencies are installed.

Restore and save share qt-ccache-linux-inputs-v1-<digest>. Exact hits skip upload; changed inputs can restore the existing qt-ccache-linux- prefix and publish on master. The literal prefix remains visible to ci.toml/ci-lint. Existing archive paths, master-only writers, 1200M working-set bound and 1.3 GB family allowance are preserved. No archive is manually deleted.

This identity controls publication only. Compilation and tests always run; ccache validates current source, flags and headers. Generated commit-version objects can still miss after documentation changes, and skipping another archive for those objects is intentional. This is not test-result attestation or a deeper Rust freshness guard. Non-documentation changes are conservatively included, even when unrelated to Qt.

Validation

  • RED 369c62584: four new tests fail before identity/exact-hit save suppression exists.
  • GREEN 6903c7ecf: actual workflow shell exercised in isolated Git fixtures. Staged docs JSON and root Markdown changes preserve identity; C++ source, CMake configuration, C and C++ compiler versions, CMake/ccache/Ninja versions, runner image and library pins change it. Restore/save agreement and master-only exact-hit suppression are checked.
  • Focused cache-contract, Qt, Rust-cache and toolchain checks: 16 passed.
  • Full uv run --no-project -m unittest discover -s ci -p 'test_*.py': 658 tests passed in 62.235 s.
  • The first full local run caught a fully dynamic-key prefix violation. Corrected by leaving the family prefix literal in YAML; no contract test was weakened. A local shell-fixture pathspec bug for root Markdown was also corrected before publication.
  • git diff --check passes. No new workflow or existing C-test/public-header change. Preexisting obs-websocket dirt is excluded.

Remaining verification

A real master producer and subsequent exact-hit consumer must confirm stable identity and skipped upload. End-to-end savings and global retention effects are unmeasured; these local checks do not establish them. The change reduces repeat publications for unchanged inputs, not every possible concurrent first-seed race.

@zackees
zackees enabled auto-merge October 18, 2026 00:54
@zackees
zackees added this pull request to the merge queue Oct 18, 2026
Merged via the queue into master with commit 3be5435 Oct 18, 2026
22 checks passed
@zackees
zackees deleted the infra/1286-qt-cache-identity 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