Repository navigation
ci(appimage): stable rcc output — tracked files get the commit time (#2182) - #2255
Merged
Merged
Conversation
6 of 7 tasks
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.
Refs #2182
rcc writes each resource file's mtime into the generated
qrc_*.cpp. A fresh checkout gives every file a new mtime, so obs-websocket'sqrc_resources.cppand the frontend'sqrc_obs.cppmissed the compiler cache on every AppImage build, even of the same commit. Printing the resource tree in two runs of one commit (40134709710, 40136130433) showed they differ only in those 8-byte timestamps.The Build step now sets every tracked file's mtime, submodules included, to the commit time before
cmake --build. Untracked and generated files are left alone.What didn't work, recorded in the test so nobody retries it:
QT_RCC_SOURCE_DATE_EPOCH(0 or 1): rcc 6.11 still wrote the real mtimes.SOURCE_DATE_EPOCHset to the commit time: zccache keys compiles on it, so the next commit missed all 322 (run 40119674697).RED (
test(appimage): tracked files must get the commit time…):ci/test_appimage_stable_mtimes.pyfails, because nothing sets mtimes. It also runs the snippet on a scratch repo with a submodule and checks tracked, submodule and untracked files.GREEN: the snippet in
build-aux/appimage/build.py, withci/test_appimage_build_script.pyupdated to list the change../lintis ok.Evidence on the experiment branch, two builds of one commit with this change (40136870547 → 40138280475): obs-websocket's
qrc_resources.cpphit. The frontend misses in that pair were on a base without frontend: title version defines only on the widgets build group (#2182) #2193, so they say nothing about this change.Still open on #2182: forge-ci/zccache#1984, where a fully cold build saves a cache missing 120–150 entries.