Repository navigation
Update sccache to 0.20.0 in CI - #133753
alexey-milovidov merged 2 commits into
Conversation
0.18.0 and 0.19.0 made `-ftime-trace` uncacheable (mozilla/sccache#2834), which 27 CI build types pass through -DENABLE_BUILD_PROFILING=1, so CI stayed on 0.17.0. 0.20.0 hashes the flag again and writes no trace on a cache hit (mozilla/sccache#2956). It also leaves CARGO_TARGET_DIR and CARGO_BUILD_* out of Rust keys (ClickHouse#3050) and hashes the C/C++ input file name (ClickHouse#2974). Measured locally with CI's cmake flags and a local disk cache, second build from a fresh build directory at the same path: - amd_binary clickhouse-bundle: 1562 s cold, 147 s warm; C/C++ 17715 of 17717 hits (the 2 misses are openldap's generated version files with __DATE__/__TIME__), Rust 603 of 603; no hit wrote a time trace. - amd_asan_ubsan dbms: 1934 s cold, 95 s warm; C/C++ 16237 of 16239, Rust 529 of 529. - PR-build environment (READ_ONLY, anonymous S3): the server starts, a miss compiles, the write is refused, warn_on_low_sccache_hit_rate parses the stats. 0.20.0 additionally counts an anonymous 403 on a missing key as a read error (ClickHouse#2967); it is still a miss. 0.20.0 treats `--embed-dir` as uncacheable, so the 4 _jieba sources (6.9 s of compile) are always compiled. 0.20.0 does not read 0.17.0 entries: every build type is cold once after this lands. Related: ClickHouse#127827 Co-Authored-By: Claude Opus 5.5 <[email protected]>
Internal second-model review: adjudication log (click to expand)Pre-publication review by an independent model (engine: codex; 0 findings), plus my own cold review of the same tree (1 finding).
Checked with no finding: both release tarballs (x86_64, aarch64) exist with the layout the Severity: ❌ blocker / Session id: cron:clickhouse-review-slot-9:20261123-124600 |
|
cc @pamarcos, could you review this? It bumps the CI sccache pin from 0.17.0 to 0.20.0, the first release since 0.17.0 that caches -ftime-trace compiles again (mozilla/sccache#2956); measured locally with CI flags: amd_binary 17,715 of 17,717 C/C++ and 603 of 603 Rust hits on a warm rebuild. |
Pre-PR validation gate (click to expand)
Session id: cron:clickhouse-impl-slot-7:20261123-112600 |
|
Workflow [PR], commit [29e31b3] Summary: ✅
AI ReviewSummaryUpdates CI's shared Final VerdictStatus: ✅ Approve |
Related: #127827
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
...
Description
CI pins sccache 0.17.0 in
ci/docker/fasttest/Dockerfile. This is the only pin; the build images are built from fasttest. 0.18.0 and 0.19.0 could not be adopted: they made-ftime-traceuncacheable (mozilla/sccache#2834), and 26 of the 30 CI build types pass-DENABLE_BUILD_PROFILING=1. 0.20.0 caches it again and writes no trace on a hit (mozilla/sccache#2956). It also leavesCARGO_TARGET_DIR/CARGO_BUILD_*out of Rust keys (mozilla/sccache#3050) and hashes the C/C++ input file name (mozilla/sccache#2974). This PR changes the pin only.Validation, run locally with sccache 0.20.0, a local disk cache and CI's cmake flags. The second build is in a fresh build directory at the same path:
amd_binary,clickhouse-bundle: 1562 s cold, 147 s warm. C/C++ 17,715 of 17,717 hits, Rust 603 of 603. The 2 misses are openldap's generated version files, which use__DATE__/__TIME__. No hit wrote a-ftime-tracefile.amd_asan_ubsan,dbms: 1934 s cold, 95 s warm. C/C++ 16,237 of 16,239 hits, Rust 529 of 529.READ_ONLY, anonymous S3): the server starts, a miss compiles, nothing is written, andwarn_on_low_sccache_hit_rateparses the stats.One regression: 0.20.0 does not cache compiles with
--embed-dir. The 4_jiebasources (6.9 s of compile in total) are now always compiled.0.20.0 does not read 0.17.0 entries, so every build type is cold once after the merge, and the builds of this PR are cold.
The
SCCACHE_BASEDIRSpart of #127827 waits for the decision in #127827 (comment).🤖 Generated with Claude Code
Workflow [PR]
Sync PR [sync-upstream/pr/133753]
Version info
26.12.1.1029-master(included in26.12and later)