Repository navigation
CI: move libFuzzer test to amd64 - #105118
Conversation
|
Workflow [PR], commit [b313b74] Summary: ✅
AI ReviewSummaryThis PR renames the libFuzzer build surface from Tests
Final Verdict
LLVM Coverage ReportMeasured on commit b313b74.
Changed lines: Uncovered code analysis did not run: No coverable C/C++ source files changed (contrib/ is excluded from coverage). Newly covered: +471 lines in 147 files (-245 lines lost coverage) · Details |
to make possible to use already built by CI binaries for investigation of found issues |
|
This was fixed by #105146. Let's update the branch. |
The earlier master-merge dropped `.github/workflows/nightly_upload.yml`, `.github/workflows/optimize_clickhouse.yml`, and the corresponding `ci/workflows/*.py` praktika sources as a workaround for the OAuth workflow-scope check. Restoring them to match `master` so the PR diff no longer contains those unrelated deletions. The intentional libFuzzer workflow changes (`nightly_fuzzers.yml`, `pull_request.yml`, `master.yml`) are unchanged.
# Conflicts: # .github/workflows/master.yml # .github/workflows/pull_request.yml
|
Updated the branch with The only red on the previous run was This is not caused by moving the build to amd64. It is a pre-existing, arch-independent flake of the fuzzer build (a For the merge: the source No reviewer threads are open; AI review verdict is ✅ Approve. Awaiting a green CI run on the fresh sha. |
Resolve conflicts in the generated `.github/workflows/master.yml` and `.github/workflows/pull_request.yml` by regenerating them from the merged `ci/*.py` with `python3 -m ci.praktika yaml`. The `ci/*.py` sources auto-merged cleanly; only the generated YAML conflicted. The net diff versus `master` remains exactly the `arm_fuzzers` -> `amd_fuzzers` rename across the 8 files, with no `arm_fuzzers` leftovers. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
|
The current red on
|
# Conflicts: # .github/workflows/master.yml # .github/workflows/pull_request.yml # ci/workflows/pull_request.py
# Conflicts: # .github/workflows/pull_request.yml # ci/defs/defs.py
# Conflicts: # .github/workflows/pull_request.yml
|
Updated the branch with Attribution of the four reds on
Still a draft; leaving un-drafting, the fuzzer-build toolchain decision, and the merge to @yakov-olkhovskiy. |
|
Updated the branch with The
|
| runner | instance | /dev/root size |
free at start | |
|---|---|---|---|---|
Build (arm_fuzzers) (green, master 47071389e91) |
arm-large |
m8g.8xlarge |
194 G | 184 G |
Build (amd_fuzzers) (red, this PR c629b419ef4) |
amd-large |
m7i.8xlarge |
146 G | 135 G |
The fuzzers build writes ~94 GiB (command time -v: File system outputs: 197513056 × 512 B) on top of ~16.5 k ASan + debug-info object files, and every one of the ~18 fuzzer executables statically links essentially all of ClickHouse with its own copy of the DWARF. That fits in 184 G and does not fit in 135 G — which is exactly why it always dies while linking one of the last fuzzers, and why arm_fuzzers stays green with an otherwise byte-identical configuration (SANITIZE=address, -g -O3 -gdwarf-aranges, PARALLEL_LINK_JOBS=1).
So this is an infra/space issue, not a compiler or code-size issue. The options, in my order of preference:
- Run the job on a larger-disk amd runner.
RunnerLabelshasARM_LARGE_STORAGEbut no amd counterpart; adding anamd-large-storagepool (≥ 250 GB root volume) and pointingBuildTypes.AMD_FUZZERSat it fixes this without touching any build flag or changing what the fuzzer artifacts contain. This needs the runner pool to be provisioned first, so it's your/infra's call. - Cut the duplicated debug info for the fuzzers build only — e.g.
-gline-tables-only(or-gsplit-dwarf) foramd_fuzzers. This would shrink the output by several-fold, but it degrades exactly what this PR is for (investigating found issues with CI-built binaries), so I did not push it: it is a fuzzing-workflow decision, not a mechanical fix.
I have deliberately not pushed a speculative flags change; the branch is only the rename plus the master merge.
Other red
Stateless tests (amd_msan, WasmEdge, parallel, 2/2) → 02226_parallel_reading_from_replicas_benchmark is harness-labelled flaky: the automatic re-run with the identical randomized settings passed 8/8, so it is unrelated to this PR.
|
Updated the branch with On the previous run (
Still a draft; un-drafting and the runner-storage decision remain with @yakov-olkhovskiy / @alexey-milovidov. |
# Conflicts: # .github/workflows/nightly_fuzzers.yml # ci/defs/job_configs.py
|
Updated the branch with This merge needed one real adaptation beyond the usual rename: #111025 made the The |
|
🕵 Updated the branch with The only red on the previous run ( |
|
🕵 Updated the branch with The delta versus The expected |
Regenerate the praktika workflow YAML (`python3 -m ci.praktika yaml`) instead of hand-merging the generated `needs:` list: this branch renames `build_arm_fuzzers` to `build_amd_fuzzers`, so a textual union would have left a dangling dependency on the removed job.
|
🕵 Updated the branch with This time the plain merge exploded into hundreds of spurious conflicts because the history has two merge bases (criss-cross via sync merges); redoing it as a single-base merge against the recent base ( The delta versus The expected red remains |
# Conflicts: # .github/workflows/master.yml # .github/workflows/pull_request.yml
|
🕵 Merged |
# Conflicts: # .github/workflows/master.yml # .github/workflows/nightly_fuzzers.yml # .github/workflows/pull_request.yml # ci/defs/job_configs.py
`Build (amd_fuzzers)` has been the only red on this pull request for months, and the cause is disk space, not the code: the ~18 fuzzer targets each statically link the whole of ClickHouse with its own copy of the ASan+debug DWARF, writing ~94 GiB, which does not fit in the ~135 GiB free on `amd-large` (`m7i.8xlarge`, 146 GB root volume) versus the ~184 GiB free on `arm-large` (`m8g.8xlarge`). The job therefore always dies while linking one of the last fuzzers, either with `No space left on device` or with the `mmap` manifestation of the same, `Bus error`. The target architecture of the fuzzer binaries comes from `cmake/linux/toolchain-x86_64.cmake`, not from the host, so the producer does not need a native amd64 host at all - every other Linux `amd_*` build, including the sanitizer ones, already cross-compiles on `RunnerLabels.ARM_LARGE`. Only the jobs that *run* the binaries, `libFuzzer tests` and `libFuzzer corpus minimization`, need amd64, and they keep it. This restores the producer to `RunnerLabels.ARM_LARGE` while the pull request keeps doing what its title says - moving the libFuzzer test to amd64 - and removes the need to wait for a storage-class amd64 runner pool.
|
🕵 Pass update.
The second required action — a green |
| libfuzzer_job = Job.Config( | ||
| name=JobNames.LIBFUZZER_TEST, | ||
| runs_on=RunnerLabels.ARM_MEDIUM, | ||
| runs_on=RunnerLabels.AMD_MEDIUM, |
There was a problem hiding this comment.
These AMD_MEDIUM moves are the main contract of the PR, but the branch still does not prove them end to end: the PR workflow exercises only the cross-compile producer, while both consumers that actually execute the binaries remain in NightlyFuzzers / WeeklyFuzzersCorpus.
So the real changed path is still unverified. We do not yet have a run from this branch showing that the x86_64 fuzzer artifact downloads and runs successfully on an amd-medium host. Since both workflows already have workflow_dispatch, please attach a successful run for the moved consumer jobs before merging.
There was a problem hiding this comment.
AMD_MEDIUM was not able to build it due to disk space - running it now to check again:
https://github.com/ClickHouse/ClickHouse/actions/runs/34257958976
# Conflicts: # .github/workflows/master.yml Co-authored-by: Yakov Olkhovskiy <[email protected]>
|
|
|
📊 Cloud Performance Report ✅ AI verdict: This is a CI-only change: it renames the fuzzer build job from clickbenchFlagged queries (2 of 43)
Change = percent below ×2; the ratio of medians (×N faster/slower) beyond, where percent understates the scale. q-value = BH-FDR adjusted p; smaller is stronger evidence. MIRAI flags a query when q < fdr_q (default 0.10) — the value the verdict is based on. tpch_adapted_1_official🟢 No significant changes Debug info
|
ClickHouse#105118 moved the libFuzzer job to amd64 and the master merge brought it here: the fuzzers build is `BuildTypes.AMD_FUZZERS`, NightlyFuzzers selects `Build (amd_release)`, and the consumer edge is `CH_AMD_RELEASE`. Two modules still named the arm jobs, so on this head one class raised `AttributeError` before asserting anything and the build-sharing module could not find the job whose digest it compares: 11 of the 96 arms were red and the invariants they stand for were not exercised at all. The examples wiring is appended to the arm release job only, so the two arms that described the shared build in those terms lost their subject. They are replaced by what the sharing rests on instead: that the wiring does not reach the amd job, so both release job lists agree on it, and that every artifact the shared build provides is declared by the workflow. `test_an_untagged_upload_would_not_match` was also passing for an incidental reason. It compared a hand-built workflow holding the shared `ArtifactConfigs` singletons against MasterCI's import-time copies, and mangle stamps `_provided_by` onto the singletons, so the two digests differed whether the long-retention tags were there or not. It now derives both sides from this workflow's own artifact configs and flips only the tagging, which reddens in an isolated and in a full-module run when the tags are equalized.
|
What was the purpose of moving to amd64? |
clickhouse_fuzzer outgrew the +-2 GiB reach of `R_X86_64_PC32` Reverts: ClickHouse#105118 Closes: ClickHouse#122521 Report: https://s3.amazonaws.com/clickhouse-test-reports/praktika.html?PR=119443&sha=a9efd16dc50bda1511b4018c74a13df32450e190&name_0=PR&name_1=Build%20%28amd_fuzzers%29
clickhouse_fuzzer outgrew the +-2 GiB reach of `R_X86_64_PC32` Reverts: ClickHouse#105118 Closes: ClickHouse#122521 Report: https://s3.amazonaws.com/clickhouse-test-reports/praktika.html?PR=119443&sha=a9efd16dc50bda1511b4018c74a13df32450e190&name_0=PR&name_1=Build%20%28amd_fuzzers%29
Changelog category (leave one):
Workflow [PR]
Sync PR [sync-upstream/pr/105118]
Version info
26.9.1.1099(included in26.9and later)