Skip to content

CI: move libFuzzer test to amd64 - #105118

Merged
yakov-olkhovskiy merged 29 commits into
masterfrom
ci-libfuzzer-amd-build
Sep 10, 2026
Merged

yakov-olkhovskiy merged 29 commits into
masterfrom
ci-libfuzzer-amd-build

Conversation

@yakov-olkhovskiy

@yakov-olkhovskiy yakov-olkhovskiy commented May 16, 2026 •

Copy link
Copy Markdown
Member

Changelog category (leave one):

  • CI Fix or Improvement (changelog entry is not required)

Workflow [PR]
Sync PR [sync-upstream/pr/105118]

Version info

  • Merged into: 26.9.1.1099 (included in 26.9 and later)

@clickhouse-gh

clickhouse-gh Bot commented May 16, 2026 •

Copy link
Copy Markdown
Contributor

Workflow [PR], commit [b313b74]

Summary: ✅


AI Review

Summary

This PR renames the libFuzzer build surface from arm_fuzzers to amd_fuzzers, switches the fuzzer build to the x86_64 toolchain, keeps that producer cross-compiling on arm-large, and moves the two jobs that execute the binaries to amd-medium. The wiring in the current diff is consistent, but the PR still lacks a successful end-to-end run of the moved consumer jobs on this branch, so it is not ready to approve yet.

Tests
  • ⚠️ As of 2026-09-08, the only NightlyFuzzers workflow_dispatch run on this head that exercised the new setup (34257958976) built Build (amd_fuzzers) successfully but was canceled during libFuzzer tests, and there is still no WeeklyFuzzersCorpus run for this branch. Please attach successful workflow_dispatch runs of NightlyFuzzers (libFuzzer tests) and WeeklyFuzzersCorpus (libFuzzer corpus minimization) on amd-medium to prove that the moved consumers can download and execute the AMD_FUZZERS artifact end to end.
Final Verdict

⚠️ Request changes until the moved amd-medium consumer jobs have a successful run on this branch.

LLVM Coverage Report

Measured on commit b313b74.

Metric Baseline Current Δ
Lines 88.80% 88.80% +0.00%
Functions 91.80% 91.80% +0.00%
Branches 81.20% 81.20% +0.00%

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

Full report

@clickhouse-gh clickhouse-gh Bot added the pr-ci label May 16, 2026

@alexey-milovidov alexey-milovidov left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why?

@yakov-olkhovskiy

yakov-olkhovskiy commented May 16, 2026 •

Copy link
Copy Markdown
Member Author

@alexey-milovidov

Why?

to make possible to use already built by CI binaries for investigation of found issues

@alexey-milovidov

Copy link
Copy Markdown
Member

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
@alexey-milovidov

Copy link
Copy Markdown
Member

Updated the branch with master (was 798 commits behind) and pushed a fresh commit (76203050d05) to re-trigger CI.

The only red on the previous run was Build (amd_fuzzers) → Build ClickHouse, which failed while linking encrypted_decompress_fuzzer:

clang++-21: error: unable to execute command: Bus error (core dumped)
clang++-21: error: linker command failed due to signal
ninja: build stopped: subcommand failed.

This is not caused by moving the build to amd64. It is a pre-existing, arch-independent flake of the fuzzer build (a SIGBUS from ld.lld while writing its mmap'd output — i.e. transient disk/resource exhaustion on the runner while linking the dozens of large ASan + debug-info fuzzer binaries). The identical signature occurred on Build (arm_fuzzers) in #99653 on 2026-05-05; in the last 60 days Bus error shows up in exactly two fuzzer-build runs (one arm_fuzzers, one amd_fuzzers), so it's roughly a once-a-month occurrence regardless of architecture. The PR's build configuration is byte-identical to the previous arm build (SANITIZE=address, debug info, all fuzzers, -DPARALLEL_LINK_JOBS=1); only the toolchain/runner/labels changed.

For the merge: the source ci/**.py auto-merged cleanly and the generated .github/workflows/*.yml were regenerated with python3 -m praktika yaml (idempotent — no further diff). The net diff vs master remains exactly the arm_fuzzers → amd_fuzzers rename across the 8 files, with no arm_fuzzers leftovers anywhere.

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]>
@alexey-milovidov

Copy link
Copy Markdown
Member

The current red on 4fabe173 is a different, deterministic failure from the Bus error I described on 2026-06-20 — and this one is specific to moving the build to amd64.

Build (amd_fuzzers) → Build ClickHouse

The build now fails while linking src/Interpreters/fuzzers/execute_query_fuzzer (the first fuzzer that statically links essentially all of ClickHouse). It is not a flake — it reproduces every run:

ld.lld-21: error: crtbeginS.o:(.text+0x76): relocation R_X86_64_PC32 out of range:
  2157918597 is not in [-2147483648, 2147483647]; references section '.bss'
ld.lld-21: error: libclang_rt_builtins.a(x86.c.o):(function __cpu_indicator_init ...):
  relocation R_X86_64_PC32 out of range: 2157914405 ...; references '__cpu_model'

The overflow offset (~2.01 GiB) sits between the C-runtime startup at the front of .text and .bss — i.e. the binary's loadable (SHF_ALLOC) sections alone exceed 2 GiB (debug info is non-alloc and does not count here). x86-64's default small code model reaches symbols with 32-bit PC-relative relocations (R_X86_64_PC32, ±2 GiB), so the link fails. On aarch64 the same binary links because ADRP+ADD/LDR addressing covers ±4 GiB — which is exactly why this was invisible while the job ran on arm.

Why only this job and not Build (amd_asan_ubsan) (green, same code): the fuzzer build additionally instruments every TU with -fsanitize=fuzzer-no-link (SanitizerCoverage — inline counters, PC tables, trace-cmp callbacks). That instrumentation inflates the fully-linked execute_query_fuzzer past 2 GiB, while the plain ASan clickhouse binary stays just under. It also explains the timing: on 2026-06-20 the link got further (arm-only Bus error); by 2026-06-27, master had grown and the binary crossed the 2 GiB line.

-mcmodel=large will not fix this

It's the natural first idea (we already use it for toolchain-loongarch64/toolchain-e2k), but it doesn't apply here: the overflowing relocations are inside the prebuilt sysroot crtbeginS.o (.text → .bss), which we cannot recompile. A larger code model only enlarges our own code, pushing .bss further away and making the crtbeginS.o reference worse, not better.

Realistic options

The link needs the fuzzer binary's alloc sections back under 2 GiB (or the heavy fuzzers kept where ±4 GiB addressing is available):

  1. Shrink the fuzzer build — e.g. -O1/-Os instead of -O3, and/or a lighter -fsanitize-coverage= set. Cheapest change, but only buys headroom; the binary will drift back over 2 GiB as ClickHouse grows.
  2. Enable ThinLTO for fuzzers (currently -DENABLE_THINLTO=0) — cross-TU dedup can cut a lot, at the cost of much slower/heavier links.
  3. Split the fuzzers by arch — move the light fuzzers to amd64 and keep execute_query_fuzzer (and the other whole-ClickHouse fuzzers) on arm. This defeats the stated goal of running the CI-built binaries on amd64 for investigation, though.

This is a build/toolchain call rather than a config bug, so I've left the branch as-is (no speculative flag change: each attempt costs a full ~1 h amd-large link to verify, and it changes fuzzing semantics). Happy to prototype whichever direction you prefer.

For the record, the other red — Stress test (amd_asan_ubsan) → Hung check failed, possible deadlock found — is the known flaky #107941 and is unrelated to this change.

CI report: https://s3.amazonaws.com/clickhouse-test-reports/json.html?PR=105118&sha=4fabe173c9e7bdbd8fa772be9525510d071fc139&name_0=PR&name_1=Build%20%28amd_fuzzers%29

# 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
Comment thread ci/workflows/nightly_fuzzers.py Resolved
# Conflicts:
#	.github/workflows/pull_request.yml
@alexey-milovidov

Copy link
Copy Markdown
Member

Updated the branch with master (was 318 commits behind) and pushed c629b419ef4. This time the merge was conflict-free; python3 -m ci.praktika yaml regenerated the workflows idempotently (no further diff). The net delta vs master is still exactly the arm_fuzzers → amd_fuzzers rename — 7 files / 30 lines (3 generated ymls + ci/defs/{defs,job_configs}.py + ci/jobs/build_clickhouse.py + ci/workflows/nightly_fuzzers.py) — with no arm_fuzzers / ARM_FUZZERS leftovers anywhere. No unresolved review threads; AI review verdict is ✅ Approve.

Attribution of the four reds on 7a3c3f11:

  1. Build (amd_fuzzers) → Build ClickHouse — this run failed earlier than the previous one and with a different signature than my 2026-06-27 diagnosis:

    FAILED: src/Formats/fuzzers/format_fuzzer
    clang++-21: error: unable to execute command: Bus error (core dumped)
    clang++-21: error: linker command failed due to signal (use -v to see invocation)
    

    That is the arch-independent ld.lld SIGBUS flake described on 2026-06-20 (transient resource exhaustion while writing the mmap'd output of one of the dozens of large ASan + debug-info fuzzer binaries), not the deterministic relocation R_X86_64_PC32 out of range overflow. The link never reached src/Interpreters/fuzzers/execute_query_fuzzer, so whether the 2 GiB alloc-section overflow still reproduces is unconfirmed on this sha — the fresh run on c629b419ef4 will show which of the two it is. The design options for the overflow (shrink the fuzzer build, ThinLTO, or split fuzzers by arch) are unchanged from my 2026-07-03 comment.

  2. Stateless tests (amd_llvm_coverage, old analyzer, …, 2/3) → 04627_analyzer_compatibility_final_all_joined_tables — unrelated; already fixed on master by Fix test 04627_analyzer_compatibility_final_all_joined_tables with old analyzer #111991 (e264eec8ea9, 2026-07-26), which was not in the previous head and is pulled in by this merge, so it should clear.

  3. Stateless tests (arm_binary, parallel) → 04357_distributed_alias_same_expression — unrelated master flake; the harness itself labelled it flaky (12 of 80 reruns failed with the identical randomized settings). The diff is one 300 300 2 row split into two 300 300 1 rows — i.e. the duplicate-ALIAS two-level distributed-aggregation bug where equal groups from different shards land in different buckets and are never merged. Fix in progress: Fix wrong results for duplicate-ALIAS GROUP BY on a Distributed table under two-level aggregation #108855.

  4. Stress test (amd_debug) → Logical error: 'Inconsistent KeyCondition behavior' in markRangesFromPKRange (fuzzed viewExplain query) — unrelated, known open issue Logical error 'Inconsistent KeyCondition behavior' + release wrong count(): toUInt256 comparison on UInt64 PK #111421.

Still a draft; leaving un-drafting, the fuzzer-build toolchain decision, and the merge to @yakov-olkhovskiy.

@alexey-milovidov

Copy link
Copy Markdown
Member

Updated the branch with master (was 324 commits behind) and pushed 9db3bd7ba0f — again a conflict-free merge, and python3 -m ci.praktika yaml regenerated the workflows idempotently (no further diff). The net delta vs master is still exactly the arm_fuzzers → amd_fuzzers rename: 7 files / 30 lines, with no arm_fuzzers / ARM_FUZZERS leftovers. No unresolved review threads.

The Build (amd_fuzzers) red is now fully explained — and it is not the 2 GiB code-model problem

Two important corrections to my earlier comments:

  1. The deterministic relocation R_X86_64_PC32 out of range from my 2026-07-03 comment no longer reproduces. On c629b419ef4 the log shows [16571/16584] Linking CXX executable src/Interpreters/fuzzers/execute_query_fuzzer completing successfully — that link is now fine on amd64, so the "loadable sections exceed 2 GiB / small code model" blocker is gone (master shrank enough in the meantime). No toolchain change (-mcmodel, -O1, ThinLTO, arch split) is needed.

  2. The Bus error is not a once-a-month flake (as I wrote on 2026-06-20). It is the same deterministic resource exhaustion on every amd run, and the 2026-07-19 run stated the cause verbatim:

    FAILED: programs/local/fuzzers/clickhouse_fuzzer
    LLVM ERROR: IO failure on output stream: No space left on device
    

    The two later runs (7a3c3f11, c629b419) died at src/Formats/fuzzers/format_fuzzer with clang++-21: error: unable to execute command: Bus error (core dumped) — SIGBUS is just the mmap-backed manifestation of the very same "disk full" condition (ld.lld mmaps its output file and writes through it).

Root cause: the amd runner's root volume is ~50 GB smaller than the arm one. From the two job logs (df printed at job start) and the instance metadata:

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:

  1. Run the job on a larger-disk amd runner. RunnerLabels has ARM_LARGE_STORAGE but no amd counterpart; adding an amd-large-storage pool (≥ 250 GB root volume) and pointing BuildTypes.AMD_FUZZERS at 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.
  2. Cut the duplicated debug info for the fuzzers build only — e.g. -gline-tables-only (or -gsplit-dwarf) for amd_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.

@alexey-milovidov

Copy link
Copy Markdown
Member

Updated the branch with master (was 889 commits behind) and pushed 58b4b4a8664 — a conflict-free merge, and python3 -m ci.praktika yaml regenerated the workflows idempotently (no further diff). The delta versus master is still exactly the 7 files / 30 lines of the pure arm→amd rename, with no arm_fuzzers / ARM_FUZZERS leftovers.

On the previous run (9db3bd7b) there were two reds:

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
@alexey-milovidov

Copy link
Copy Markdown
Member

Updated the branch with master (was 993 commits behind) and pushed 29df36317ef.

This merge needed one real adaptation beyond the usual rename: #111025 made the libFuzzer tests job generate the fuzzer dictionary (all.dict) by executing the release binary, adding CH_ARM_RELEASE to its requires and an arm_release build job to the NightlyFuzzers workflow. Since this PR runs the job on amd64 runners, I switched those to CH_AMD_RELEASE / amd_release (still a cache hit against the same-digest MasterCI build), and pointed the new fuzzers-only digest extension at BuildTypes.AMD_FUZZERS. python3 -m ci.praktika yaml regenerates idempotently; the delta versus master remains a pure arm→amd rename (7 files / 37 lines), no arm_fuzzers leftovers.

The Build (amd_fuzzers) red on the previous run is still the already-diagnosed amd-large runner disk-space limit (analysis) — the infra decision on a larger amd runner pool remains open.

@alexey-milovidov

Copy link
Copy Markdown
Member

🕵 Updated the branch with master (was 633 commits behind) and pushed acfdaa599ca. The merge was conflict-free this time — the CH_AMD_RELEASE / amd_release adaptation from the previous pass carried through unchanged — and python3 -m ci.praktika yaml regenerates idempotently (no diff). The delta versus master is still exactly the pure arm→amd rename: 7 files / 37 lines, with no arm_fuzzers / ARM_FUZZERS leftovers anywhere in ci/ or .github/workflows/.

The only red on the previous run (29df3631) was Build (amd_fuzzers), which remains the already-diagnosed amd-large runner disk-space limit (analysis) — not a defect in this change. There are no unresolved review threads and the AI review verdict is ✅ Approve. The infra decision (a larger-storage amd runner pool versus reduced debug info for this build only) and un-drafting remain open for @yakov-olkhovskiy / @alexey-milovidov.

@alexey-milovidov

Copy link
Copy Markdown
Member

🕵 Updated the branch with master (was 616 commits behind) and pushed ae9d57f6a186. One conflict, the generated .github/workflows/pull_request.yml, resolved the standard way (take master's side, then python3 -m ci.praktika yaml, which regenerates and self-stages the ymls).

The delta versus master is still exactly 7 files / 30 lines of pure arm→amd rename, no arm_fuzzers/ARM_FUZZERS leftovers. 0 unresolved review threads.

The expected Build (amd_fuzzers) red is the already-diagnosed amd runner disk-space limit (see the earlier analysis in this thread) — it needs the infra/design decision, not a code change here. Still a draft.

robot-clickhouse and others added 2 commits August 20, 2026 21:38
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.
@alexey-milovidov

Copy link
Copy Markdown
Member

🕵 Updated the branch with master (was 5087 commits behind) and pushed 10b5baab3b40.

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 (fb44f2a90cb3, 2026-08-20) left only the usual three real conflicts: the generated .github/workflows/{master,pull_request}.yml (took master's side, then python3 -m ci.praktika yaml) and ci/defs/defs.py (master added WASM_PARSER next to the renamed line — kept both).

The delta versus master remains exactly 7 files / 30 lines — the pure arm→amd rename (arm_fuzzers→amd_fuzzers, RunnerLabels.ARM_*→AMD_*, toolchain aarch64→x86_64), with no leftovers. There are no unresolved review threads.

The expected red remains Build (amd_fuzzers): the amd runner's root volume is ~50 GB smaller than the arm one and the ~94 GiB fuzzers build runs out of disk while linking the last fuzzers (full diagnosis posted on 2026-07-28). The fix is an infra decision — an amd-large-storage runner pool or reduced debug info for this build type.

# Conflicts:
#	.github/workflows/master.yml
#	.github/workflows/pull_request.yml
@alexey-milovidov

Copy link
Copy Markdown
Member

🕵 Merged master into the branch (was 1502 commits behind; single merge base this time) and pushed bff0646df551. The only conflicts were the generated .github/workflows/{master,pull_request}.yml, resolved by taking master's side and regenerating with python3 -m ci.praktika yaml. The delta vs master remains exactly 7 files / 30 lines — the pure arm→amd rename — with no arm_fuzzers leftovers and submodule gitlinks identical to master. 0 unresolved review threads. The Build (amd_fuzzers) red remains the previously diagnosed amd-large runner disk-space limitation; the runner/infra decision and un-drafting stay with the maintainers.

Comment thread ci/defs/job_configs.py Resolved
@abashkeev abashkeev added the comp-ci-infrastructure CI/CD pipelines (GitHub Actions, CI scripts, runners). label Sep 4, 2026
# 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.
@alexey-milovidov

Copy link
Copy Markdown
Member

🕵 Pass update.

  • Merged master (branch was 4581 commits behind, single merge base). Conflicts were the three generated ymls (--theirs + python3 -m ci.praktika yaml) and libfuzzer_job in ci/defs/job_configs.py, where master added the 5.5-hour timeout next to the renamed requires — both sides kept.
  • Master grew two new consumers of the fuzzers artifact since the last pass, and both are renamed here too: the WeeklyFuzzersCorpus workflow (ci/workflows/weekly_fuzzers_corpus.py) and libfuzzer_corpus_minimization_job. The minimization job replays the corpus by running the fuzzer binaries, so it moves to AMD_MEDIUM along with libFuzzer tests. Its generated .github/workflows/weekly_fuzzers_corpus.yml is skipped by python3 -m ci.praktika yaml (engine=praktika), so it was updated by hand to match exactly what the generator would emit.
  • Addressed the Request changes verdict and the open review thread in 1b231f96236d: BuildTypes.AMD_FUZZERS goes back to RunnerLabels.ARM_LARGE. The target architecture comes from cmake/linux/toolchain-x86_64.cmake, not from the host, and every other Linux amd_* build — including the sanitizer ones — already cross-compiles on ARM_LARGE; amd_darwin is the sole exception and it says so in a comment. Only the jobs that run the binaries need an amd64 host, which is what the title of this pull request asks for. This also removes the disk-space blocker without waiting for a storage-class amd64 pool: the ~18 fuzzers each statically link the whole of ClickHouse with their own copy of the ASan+debug DWARF (~94 GiB written), which fits in the ~184 GiB free on arm-large (m8g.8xlarge) but not in the ~135 GiB free on amd-large (m7i.8xlarge).
  • Delta against master is now 9 files, a pure arm→amd rename plus that one runner line and its comment. Submodule gitlinks are identical to master; the style check passes locally apart from two checks that only work in CI.

The second required action — a green Build (amd_fuzzers) and libFuzzer tests pair — is partly covered by this run (Build (amd_fuzzers) runs in the PR workflow), but libFuzzer tests itself only runs in NightlyFuzzers, so the end-to-end proof needs a nightly run once this lands. Still a draft; undrafting and merging remain with @yakov-olkhovskiy and @alexey-milovidov.

Comment thread ci/defs/job_configs.py
libfuzzer_job = Job.Config(
name=JobNames.LIBFUZZER_TEST,
runs_on=RunnerLabels.ARM_MEDIUM,
runs_on=RunnerLabels.AMD_MEDIUM,

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@yakov-olkhovskiy yakov-olkhovskiy Sep 8, 2026 •

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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]>
@yakov-olkhovskiy
yakov-olkhovskiy marked this pull request as ready for review September 8, 2026 18:51
@CLAassistant

CLAassistant commented Sep 8, 2026 •

Copy link
Copy Markdown

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you all sign our Contributor License Agreement before we can accept your contribution.
2 out of 3 committers have signed the CLA.

✅ yakov-olkhovskiy
✅ alexey-milovidov
❌ cursoragent
You have signed the CLA already but the status is still pending? Let us recheck it.

@clickhouse-gh

clickhouse-gh Bot commented Sep 9, 2026

Copy link
Copy Markdown
Contributor

📊 Cloud Performance Report

✅ AI verdict: no_change — no significant changes across 39 queries analysed

This is a CI-only change: it renames the fuzzer build job from arm_fuzzers to amd_fuzzers, moving cross-compilation and libFuzzer runs onto amd hosts, and touches only GitHub workflow YAML and ci/ build-config Python. No server or query-execution code is modified, so it cannot plausibly speed up any query. Both flagged ClickBench improvements (Q5 −10.6%, Q31 −12.7%) are downgraded to not-sure as run-to-run variance — Q31 is also flagged as intrinsically flaky. No action needed on the perf numbers.

clickbench

⚠️ 2 inconclusive

Flagged queries (2 of 43)
Query Verdict Baseline median (ms) PR median (ms) Change q-value Hint
⚠️ 5 not_sure 254 227 -10.6% <0.0001 cpu: This PR only renames the fuzzer build job from arm to amd (CI workflow and build-config files); it touches no query-execution code, so a Q5 improvement here is run-to-run variance.
⚠️ 31 not_sure 268 234 -12.7% <0.0001 cpu: CI-only change (fuzzer build moved from arm to amd host); nothing in the server hot path changed, and this query is intrinsically flaky, so the flagged improvement is noise.

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
  • StressHouse run: 5dff5666-2e5a-4473-b8cd-b9b4fecf8960
  • MIRAI run: 79f09261-689d-4b51-8975-2a07a1af8754
  • PR check IDs:
    • clickbench_25858_1788928793
    • clickbench_25864_1788928793
    • clickbench_25870_1788928793
    • tpch_adapted_1_official_25887_1788928793
    • tpch_adapted_1_official_25898_1788928793
    • tpch_adapted_1_official_25906_1788928793

@yakov-olkhovskiy
yakov-olkhovskiy added this pull request to the merge queue Sep 10, 2026
Merged via the queue into master with commit d0a0aeb Sep 10, 2026
180 of 182 checks passed
@yakov-olkhovskiy
yakov-olkhovskiy deleted the ci-libfuzzer-amd-build branch September 10, 2026 03:05
@robot-clickhouse robot-clickhouse added the pr-synced-to-cloud The PR is synced to the cloud repo label Sep 10, 2026
groeneai added a commit to groeneai/ClickHouse that referenced this pull request Sep 13, 2026
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.
@azat

azat commented Oct 3, 2026 •

Copy link
Copy Markdown
Member

What was the purpose of moving to amd64?
Now we are hitting the limitation of R_X86_64_PC32 of 2GiB - https://s3.amazonaws.com/clickhouse-test-reports/praktika.html?PR=119443&sha=a9efd16dc50bda1511b4018c74a13df32450e190&name_0=PR&name_1=Build%20%28amd_fuzzers%29
If we will switch back to arm it will be solved (the limit is 4GiB there)
Objections?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

comp-ci-infrastructure CI/CD pipelines (GitHub Actions, CI scripts, runners). pr-ci pr-synced-to-cloud The PR is synced to the cloud repo

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants