Skip to content

ci: journal the AppImage build's compiler cache outcomes (#2182) - #2190

Merged
zackees merged 2 commits into
masterfrom
perf/2182-appimage-zccache-journal
Oct 24, 2026
Merged

zackees merged 2 commits into
masterfrom
perf/2182-appimage-zccache-journal

Conversation

@zackees

@zackees zackees commented Oct 24, 2026

Copy link
Copy Markdown
Member

Refs #2182

With the AppImage compiler cache saved (#2179), a second build of the same commit still had 129 of 322 compilations cold, and zccache's totals don't say which or why. This adds the diagnostics; it changes nothing about the build.

  • build-aux/appimage/build.py's build step runs cmake --build in a zccache session with --stats --journal $RUNNER_TEMP/appimage-zccache.jsonl. A failed session start only loses the journal; the build goes on.
  • A new step after Build summarizes the journal with ci/native_cache_journal.py, the native Ubuntu lane's helper (outcome, miss reason and the names of the differing inputs per source; no arguments or values). It prints the non-hit records to the log. always(), continue-on-error.

RED: ci/test_appimage_zccache_journal.py fails both cases (no session, no summary step). GREEN: it passes, with ci/test_appimage_build_script.py (its allowed-changes list records the build step's new lines) and ./lint.

Proof: AppImage run 40113297329 on this branch restores master's cache and should print the miss reasons. Marked ready once it does. The fix for the misses follows in its own PR.

@zackees

zackees commented Oct 24, 2026

Copy link
Copy Markdown
Member Author

Proof, AppImage run 40113297329 on this branch (restored master's cache from a different commit): Native compiler journal: status=partial observed_counts={'hit': 232, 'miss': 90}, and the summary listed each miss: 88 context_not_found (almost all frontend group files) and 2 input_fingerprint_mismatch (a generated qrc file and libobs-version's unity file). That pointed straight at a per-commit -DOBS_RUST_GIT_DESCRIBE on the frontend target, fixed in #2193. The temporary debug commit is dropped; this PR is the journal and its summary only.

@zackees
zackees marked this pull request as ready for review October 24, 2026 17:44
@zackees
zackees enabled auto-merge October 24, 2026 17:44
@zackees
zackees added this pull request to the merge queue Oct 24, 2026
Merged via the queue into master with commit 1eaa4e1 Oct 24, 2026
64 checks passed
@zackees
zackees deleted the perf/2182-appimage-zccache-journal 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