Skip to content

fix: upgrade Linux zccache for strict PCH timestamp replay - #1265

Merged
zackees merged 4 commits into
masterfrom
infra/zccache-pch-1155
Oct 17, 2026
Merged

zackees merged 4 commits into
masterfrom
infra/zccache-pch-1155

Conversation

@zackees

@zackees zackees commented Oct 17, 2026 •

Copy link
Copy Markdown
Member

Linux CMake builds now install zccache 1.15.5, including its strict PCH header timestamp replay fix. A touched, byte-identical header has its recorded timestamp restored before clang loads the PCH, preventing #pragma once redefinitions while retaining validation of real changes. The installer checks published SHA-256 values for x86_64 and aarch64.

The existing standalone launcher covers Tier 2, Ubuntu, AppImage and sanitizer builds. Soldr’s embedded cache is separate: released soldr 0.9.37 still embeds/venders zccache 1.15.4. The dependency/vendor refresh is zackees/soldr#3849. The optional soldr CMake wrapper (ENABLE_ZCCACHE) receives the new embedded cache only after that change is released and the new soldr release is adopted. This standalone Linux launcher upgrade does not depend on that release.

Coordinated with FastLED/FastLED#4865.

Validation:

  • RED commit 9718394: installer pin regression fails against 1.15.4.
  • GREEN commit b554f21: 12 focused cache/installer/build integration tests pass; Ruff, shell syntax and git diff --check pass.
  • Downloaded x86_64 release, verified SHA-256 and zccache 1.15.5 version.
  • Real clang 21.1.8 smoke: built PCH with strict invalid-PCH/content validation flags, advanced a nested #pragma once header timestamp without editing its bytes, then compiled its consumer through zccache. Compilation succeeded and the header timestamp returned exactly to the recorded 1600000000 seconds. Fixture and command ran within the same workspace, matching replay’s intentional workspace boundary.

Refs #782.

CI follow-up: the previous Tier 2 job hit 213 zccache launcher refusals (exit 125), then failed its single daemon restart retry. The error summary discarded zccache stderr and showed only FAILED edges. Commit 5696baf reproduces that diagnostic loss with 213 failed edges (RED); a2ff343 prints deduplicated launcher reasons before the edge cap (GREEN). The 12 focused cache/diagnostic tests pass, along with Ruff, shell syntax and diff whitespace checks. Independent local review is clean. Full local Tier 2 build now passes (OBS_TIER2_STAGE=build bash rust/tools/linux-validate/run.sh, exit 0): all 1090 build edges, 772 cold compiler invocations through zccache 1.15.5, and identical C/Rust libobs exports (1766 symbols). The original CI daemon refusal did not reproduce; the new diagnostics will preserve its reason if it recurs. This was the build stage; cmocka runtime tests were not rerun locally.

@zackees
zackees force-pushed the infra/zccache-pch-1155 branch from af0717e to a2ff343 Compare October 17, 2026 17:47
@zackees
zackees added this pull request to the merge queue Oct 17, 2026
Merged via the queue into master with commit 5c77c49 Oct 17, 2026
29 checks passed
@zackees
zackees deleted the infra/zccache-pch-1155 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