Repository navigation
Conversation
The amd_cfi build is the only test build with ThinLTO enabled - the same compile profile as official release builds - so besides CFI violations the workflow also catches ThinLTO-only behavior differences, like the __functional frame-name suppression found by test_crash_log and fixed in PR ClickHouse#112152. Broaden its coverage: - Stateless tests (parallel + sequential lanes, mirroring amd_debug). clickhouse-test now detects the CFI build from -fsanitize=cfi in the CXX_FLAGS row of system.build_options, so tests that cannot pass in this build profile can carry a no-cfi tag. CFI is deliberately not treated as a sanitizer: no-sanitizers tests still run under CFI. - AST fuzzer and BuzzHouse: they assert only on crashes, never on exact query output, so the build profile cannot produce false positives, and fuzzing reaches virtual-call combinations curated suites never exercise. Workflow: https://github.com/ClickHouse/ClickHouse/actions/workflows/weekly_cfi.yml Co-Authored-By: Claude Fable 5 <[email protected]>
Schedule-only workflows give no PR-time evidence that the new stateless, AST fuzzer and BuzzHouse jobs work against the `amd_cfi` build. Switch the event to `Workflow.Event.PULL_REQUEST` so CI on this PR exercises the full build + test path. Must be reverted to `SCHEDULE` (with `cron_schedules` and `branches=[BASE_BRANCH]`) before merge. Same validation approach as in PR ClickHouse#100419 (commits 440167a / 37fe9295685). Co-Authored-By: Claude Fable 5 <[email protected]>
|
Workflow [PR], commit [1b9be4e] Summary: ✅
AI ReviewSummaryThis PR expands Tests
Final Verdict
|
Build profile diff (arm_release)Comparing ✅ No significant changes. Binary sizes
Only the stripped binary is compared: the official master build keeps debug symbols while PR builds strip them, so the other binaries differ by construction. Compile time of recompiled translation units416 translation units recompiled, 3772 s compile time in total, 416 of them have a recent master baseline. Median compile-time ratio to the baselines is ×1.08 (machine-speed difference or a change affecting every TU); per-TU deltas below are relative to that ratio. |
Three failures in the first PR validation run (https://s3.amazonaws.com/clickhouse-test-reports/json.html?PR=115036&sha=30c47a7d9420ba1e86365979016e7765cbc080da&name_0=WeeklyCFI): - BuzzHouse (amd_cfi) failed with "Clickhouse was compiled without BuzzHouse enabled": add -DENABLE_BUZZHOUSE=1 to the amd_cfi build, matching the other fuzzer-carrying builds. - 03150_trace_log_add_build_id / 03150_trace_log_source_lines fail deterministically: symbols and lines in system.trace_log are all-empty in the ThinLTO+CFI build, while build_id resolves. This is a regression since the 2026-07-14 validation runs of ClickHouse#100419 (toolchain update ClickHouse#109864 is the prime suspect), tracked in ClickHouse#115122. Tag both tests no-cfi until it is fixed. The third failure, a probabilistic server SIGSEGV in gRPC response compression under test_grpc_protocol, is a real bug filed as ClickHouse#115121 - no test change, it passed on retry. Co-Authored-By: Claude Fable 5 <[email protected]>
The 03150 tests never passed under the amd_cfi profile (they failed in the 2026-07-13 validation run of ClickHouse#100419 even after SPLIT_DEBUG_SYMBOLS was added, before the toolchain update), so issue ClickHouse#115122 is a longstanding property of the profile, not a regression. See ClickHouse#115122 for the corrected analysis. Co-Authored-By: Claude Fable 5 <[email protected]>
The pull_request trigger was temporary, to validate the new stateless, AST fuzzer and BuzzHouse jobs on this PR (same approach as in ClickHouse#100419). Validation completed green on baf56e5: all ten amd_cfi jobs passed, including Stateless tests (parallel + sequential) with the no-cfi tags, AST fuzzer, and BuzzHouse after -DENABLE_BUZZHOUSE=1. Report: https://s3.amazonaws.com/clickhouse-test-reports/json.html?PR=115036&sha=baf56e50335c45adf2afb691d0a1ef72f49c8bc6&name_0=WeeklyCFI Co-Authored-By: Claude Fable 5 <[email protected]>
Let the weekly amd_cfi stateless run show these tests red until ClickHouse#115122 (empty symbols and lines in system.trace_log under the ThinLTO+CFI build) is fixed - a visibly failing weekly job keeps the issue from being forgotten, and this workflow does not gate PRs. Keep a comment pointing at the issue. The no-cfi tag mechanism in clickhouse-test stays for tests that genuinely should not run in that build. Co-Authored-By: Claude Fable 5 <[email protected]>
Review comment on ci/jobs/build_clickhouse.py:34: enabling -DENABLE_BUZZHOUSE=1 in the shared amd_cfi build changes the whole-program ThinLTO graph of the binary every WeeklyCFI job consumes (BuzzHouse compiles extra sources into clickhouse-client/dbms and alters QueryFuzzer behind #if USE_BUZZHOUSE), so the CFI canary would no longer approximate the release build profile. Split it: the amd_cfi build drops ENABLE_BUZZHOUSE and stays a pure release-profile CFI binary for stateless, integration, stress and the AST fuzzer (which needs no build flag); a new amd_cfi_buzzhouse build - identical cmake plus -DENABLE_BUZZHOUSE=1 - feeds only the BuzzHouse (amd_cfi_buzzhouse) lane. Co-Authored-By: Claude Fable 5 <[email protected]>
ClickHouse#115591 fixed ClickHouse#115122: the empty symbols/lines were not a ThinLTO/CFI symbolization problem but the test harness misclassifying the CFI build as a sanitizer build (CXX_FLAGS LIKE '%-fsanitize=%' matches -fsanitize=cfi-vcall,...) and installing trace_log_no_symbolize.xml. Both tests are expected to pass in the WeeklyCFI stateless lanes now, so the comments are obsolete. Co-Authored-By: Claude Fable 5 <[email protected]>
Review comment on tests/clickhouse-test: the cfi build flag is what makes the WeeklyCFI stateless lanes meaningful, but WeeklyCFI is schedule-only, so a regression in the classification would not fail an ordinary PR run before Monday. Pin it in ci/tests/ (run by the CI tests job on every PR, whose digest already includes tests/clickhouse-test): the measured amd_cfi CXX_FLAGS row produces BuildFlags.CFI with SANITIZED false, a sanitizer row does not produce it, no-cfi skips under CFI and in no other build, and no-sanitizers keeps running under CFI. The flag strings mirror test_cfi_not_a_sanitizer_build.py, which guards the installer and integration-helper predicates the same way. Co-Authored-By: Claude Fable 5 <[email protected]>
Fixes the Style check failure: https://s3.amazonaws.com/clickhouse-test-reports/json.html?PR=115036&sha=3725a0f804f92b738c81615812fb15a43b6f1e63&name_0=PR&name_1=Style%20check Co-Authored-By: Claude Fable 5 <[email protected]>
| *JobConfigs.cfi_integration_jobs, | ||
| *JobConfigs.cfi_stress_job, | ||
| *JobConfigs.cfi_ast_fuzzer_job, | ||
| *JobConfigs.cfi_buzz_fuzzer_job, |
There was a problem hiding this comment.
The branch no longer has PR-time evidence for the exact WeeklyCFI topology it introduces. The only green WeeklyCFI report linked in the PR body is for baf56e50335, but the final tree changed materially after that: 8a0ebe1 split BuzzHouse onto a separate amd_cfi_buzzhouse artifact, and b81389a / 3725a0f changed the stateless-CFI path after the temporary pull_request trigger had already been removed.
Because WeeklyCFI is schedule-only again, neither the new Build (amd_cfi_buzzhouse) / BuzzHouse (amd_cfi_buzzhouse) path nor the re-enabled 03150 stateless coverage has a pre-merge run on this exact branch state. I think this still needs one final workflow_dispatch (or another temporary PR-triggered run) and an updated report link before we can treat the expanded weekly coverage as validated.
Review comment: the module's private _is_sanitizer_build probed for the bare -fsanitize= substring, which also matches the CFI build's -fsanitize=cfi-vcall,cfi-derived-cast, so started_cluster never created node_smol and test_size_adjustment silently skipped in every Integration tests (amd_cfi, *) run. Use the -DSANITIZER predicate, the same one ClickHouseInstance.is_built_with_sanitizer and tests/config/install.sh use since ClickHouse#115591. The check runs before the cluster starts, so it cannot reuse the ClickHouseInstance method directly. Co-Authored-By: Claude Fable 5 <[email protected]>
Pull request was converted to draft
Related: #100419
Related: #112152
Related: #115591
The
amd_cfibuild is the only test build with ThinLTO enabled — the same compile profile as official release builds — so besides CFI violations theWeeklyCFIworkflow also catches ThinLTO-only behavior differences that no other CI job can see (e.g. the__functionalframe-name suppression surfaced bytest_crash_logand fixed in #112152). This PR broadens the workflow's coverage from build + integration + stress to:amd_cfi, parallel+amd_cfi, sequentiallanes, mirroringamd_debug).clickhouse-testnow detects the CFI build from-fsanitize=cfiin theCXX_FLAGSrow ofsystem.build_optionsand exposes acfibuild flag, so a test that genuinely cannot hold in this profile can carry ano-cfitag (the same genericno-<flag>skip mechanism the sanitizer builds use). No test needs the tag today. CFI is deliberately not treated as a sanitizer: it has near-zero runtime overhead, so tests taggedno-sanitizersstill run under CFI — consistent with Do not treat the CFI build as a sanitizer build in the test harnesses #115591, which stopped the test harnesses from misclassifying the CFI build as a sanitizer build.amd_cfi): fuzzers assert only on crashes, never on exact query output, so the build profile cannot produce false positives there, and fuzzing reaches virtual-call combinations the curated suites never exercise. Runs against the unmodified CFI binary (no build flag needed).amd_cfi_buzzhouse): BuzzHouse needs-DENABLE_BUZZHOUSE=1, which compiles extra sources intoclickhouse-client/dbmsand would change the whole-program ThinLTO graph of the shared CFI binary. To keep the canary binary identical to the release profile, a separateamd_cfi_buzzhousebuild (identical cmake plus the flag) feeds only this lane.The fuzzer job configs are shared out into
_common_ast_fuzzer_job_config/_common_buzz_fuzzer_job_config; the master and PR workflows are unchanged (their generated YAML did not change).Not added, and why: unit tests (
ENABLE_CFIis incompatible withENABLE_TESTS— ThinLTO is disabled when building tests), performance comparison (it compares against the non-CFI master-head binary, so results are uninterpretable), upgrade/compatibility checks (version and data compatibility are orthogonal to CFI instrumentation), Keeper Jepsen (requires the standaloneclickhouse-keeperbuild, which the CFI build omits).Validation: the workflow was temporarily switched to a
pull_requesttrigger (same approach as #100419) and allamd_cfijobs passed (report) — stateless parallel + sequential, integration 4/4, stress, AST fuzzer, and BuzzHouse. The schedule-only trigger (Mondays 03:00 UTC) is restored for merge.Findings from the validation runs, all filed:
zlib_compress/deflateEnd) #115121 — probabilistic server crash (SIGSEGV) in gRPC response compression (zlib_compress/deflateEnd), still open.symbolsandlinesinsystem.trace_login theamd_cfibuild profile #115122 — emptysymbols/linesinsystem.trace_logunderamd_cfi; root cause was the test harness misclassifying the CFI build as a sanitizer build and installingtrace_log_no_symbolize.xml; fixed by Do not treat the CFI build as a sanitizer build in the test harnesses #115591 (merged, and master is merged into this branch), so the two03150_trace_log_*tests are expected to pass in the weekly stateless lanes.04323_text_index_marks_empty_part: startup rejects a corrupted marks file thatATTACH TABLEtolerates #115198 — stress runs cannot restart the server if killed inside04323_text_index_marks_empty_part's deliberate-corruption window (not CFI-specific; also hit three other PRs).Changelog category (leave one):
🤖 Generated with Claude Code
Workflow [PR]
Sync PR [sync-upstream/pr/115036]