Repository navigation
ci: reuse Qt compiler snapshots across unchanged build inputs - #1374
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 existingqt-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
369c62584: four new tests fail before identity/exact-hit save suppression exists.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.uv run --no-project -m unittest discover -s ci -p 'test_*.py': 658 tests passed in 62.235 s.git diff --checkpasses. 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.