Repository navigation
Build only the needed parts of the CI toolchain - #132530
Merged
Merged
Conversation
Stage 2 of `OptimizeToolchain` built LLVM's default target: every tool, test utility and fuzzer of `clang`, `clang-tools-extra`, `lld`, `bolt` and `polly` for all backends, each one a separate ThinLTO link, and installed all of it. In the 2026-08-14 run, `clang` and `lld` were linked 23 minutes into the 60-minute stage; the rest went to binaries CI never uses, and the archive grew to 1.7 GB. - Build and install an explicit `LLVM_DISTRIBUTION_COMPONENTS` list: the compiler, the linker, runtimes, BOLT, and the binutils and profile tools CI calls. `clang-tidy` comes from the distro package already. - Build only the backends of the architectures ClickHouse targets. The AMDGPU backend is what BOLT instrumentation failed on for aarch64. - Collect BOLT profiles at full parallelism for a shorter time instead of four jobs for 20 minutes, which left 28 of 32 cores idle. - Do not open the Dockerfile update PR from a run on a branch other than master: the PR would point at master's artifact path, where nothing exists. Run analyzed: https://github.com/ClickHouse/ClickHouse/actions/runs/31840246060 Co-Authored-By: Claude Opus 5.5 <[email protected]>
150 seconds at full parallelism collected 755 profiles on amd64, against 1604 in the previous 20-minute run with four jobs. Validation run: https://github.com/ClickHouse/ClickHouse/actions/runs/44093071861 Co-Authored-By: Claude Opus 5.5 <[email protected]>
Contributor
|
Workflow [PR], commit [ee9809b] Summary: ✅ AI ReviewSummaryThe PR limits the CI toolchain to required LLVM projects, backends, and distribution components, collects BOLT profiles with full parallelism for 300 seconds, and restricts Dockerfile update PRs to Final VerdictStatus: ✅ Approve |
Merged
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.
OptimizeToolchainspent most of its time on work whose output CI never uses. This builds only what the CI toolchain needs:LLVM_DISTRIBUTION_COMPONENTSlist (the compiler, the linker, runtimes, BOLT, and the binutils and profile tools CI calls) instead of LLVM's default target. That target built every tool, test utility and fuzzer ofclang-tools-extra,pollyand the rest, each one a separate ThinLTO link.clang-tidyalready comes from the distro package, becausecmake/clang_tidy.cmakeprefersclang-tidy-23.X86;AArch64;PowerPC;SystemZ;RISCV;LoongArch); Emscripten ships its own LLVM. Without AMDGPU, BOLT now works on aarch64, which previously shipped a PGO-only toolchain.Validation run (with a 150-second BOLT window, raised afterwards because it collected only 755 profiles on amd64): https://github.com/ClickHouse/ClickHouse/actions/runs/44093071861
aarch64: 1h12m with BOLT applied, 195 MB archive.
The toolchain from the next master run reaches CI through the auto-generated Dockerfile PR, which builds ClickHouse with it before merge.
Changelog category (leave one):
🤖 Generated with Claude Code
Workflow [PR]
Sync PR [sync-upstream/pr/132530]
Version info
26.11.1.2672-master(included in26.11and later)