Skip to content

ci(appimage): stable rcc output — tracked files get the commit time (#2182) - #2255

Merged
zackees merged 2 commits into
masterfrom
infra/2182-appimage-rcc-mtime
Oct 24, 2026
Merged

zackees merged 2 commits into
masterfrom
infra/2182-appimage-rcc-mtime

Conversation

@zackees

@zackees zackees commented Oct 24, 2026

Copy link
Copy Markdown
Member

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's qrc_resources.cpp and the frontend's qrc_obs.cpp missed 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_EPOCH set 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.py fails, 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, with ci/test_appimage_build_script.py updated to list the change. ./lint is ok.

  • Evidence on the experiment branch, two builds of one commit with this change (40136870547 → 40138280475): obs-websocket's qrc_resources.cpp hit. 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.

@zackees
zackees added this pull request to the merge queue Oct 24, 2026
Merged via the queue into master with commit 8d0c874 Oct 24, 2026
30 checks passed
@zackees
zackees deleted the infra/2182-appimage-rcc-mtime 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