Repository navigation
Introducing a new fuzzer check in the ClickHouse CI for my dear friend - #94148
Conversation
|
Workflow [PR], commit [ec5d081] Summary: ✅ AI ReviewSummaryThis PR replaces the BuzzHouse CI job with La Casa del Dolor, randomizes its environment, and adds restart, shutdown, Keeper, and artifact handling. Request changes: the new job can pass a genuine sanitizer finding when an OOM is also present, and its rotated-log fallback does not recover failures hidden from the current logs. Both concerns overlap existing review threads; no duplicate inline comments were posted. Reviewed head: Missing context / blind spots
Findings
Final Verdict |
# Conflicts: # ci/defs/job_configs.py # tests/casa_del_dolor/dolor.py # tests/casa_del_dolor/properties.py
The only conflict was the generated `.github/workflows/pull_request.yml` (the `needs` list of `finish_workflow`: the branch's `La Casa Del Dolor` jobs against master's new `fast_test_arm_darwin`). Regenerated with `python3 -m praktika yaml`. #94148 Co-Authored-By: Claude Opus 5.5 <[email protected]>
A Keeper that aborts is restarted by its compose service, and its error log rotates on (100M, gzip), so the fatal record can survive only in `clickhouse-keeper.err.log.N.gz`. The job copied and scanned only the current Keeper files, so such a run passed. The Keeper rotations are now copied with the other logs, and `_keeper_failure` reads the error log with its rotations decompressed in front of it. The server logs rotate on every restart. `dolor.py` already greps the rotations and fails the run, but `analyze_job_logs` names the failure from the current log only, which belongs to the last server, so a crash before a restart failed the run with no name. When the analysis fails the run without naming it, the job now parses the server log (then the error log) with its rotations. #94148 Co-Authored-By: Claude Opus 5.5 <[email protected]>
`DOLOR_RUN_MINUTES` sets both `dolor.py --timeout` and the `time_to_run` of BuzzHouse, which must match. `generate_buzz_config` takes the run time as an optional argument, so the BuzzHouse job keeps its 30 minutes (60 on extended runs). #94148 Co-Authored-By: Claude Opus 5.5 <[email protected]>
Dolor starts its servers in the foreground through `docker exec` with no working directory, and `BaseDaemon` only changes to `core_path` for daemon launches, so CI's relative `kernel.core_pattern` put a core in the container's `/`: not writable by the server's user, and gone anyway with `docker compose down --volumes`. The Keepers ran in `/` too. - Start the first server and its replacements in `/var/log/clickhouse-server/cores`, and the Keepers in `/var/log/clickhouse-keeper/cores`, both inside the host-mounted log directories. Other clusters keep `/`. - Run the BuzzHouse client in the workspace, where `collect_cores` already looks, instead of the repository root. - Collect only the `cores` directories instead of every `core.*` under the instance directories, which could also match table files. Addresses the review on #94148 Co-Authored-By: Claude Opus 5.5 <[email protected]>
…lute The load generator now runs in `--tmp-files-dir` so its cores are collected, which broke a relative `--client-binary` (looked up in that directory instead of the invocation one) and, for a relative `--tmp-files-dir`, the BuzzHouse config and query log paths built from it. Make both absolute right after parsing, against the invocation directory. `absolute`, not `resolve`, keeps a symlink's name, which picks the tool the binary runs as. Addresses the review on #94148 Co-Authored-By: Claude Opus 5.5 <[email protected]>
A relative `--with-unity` was looked up from the Unity server's run directory, and an unmodified relative `--server-config` or `--user-config` was resolved by `add_instance` against `tests/casa_del_dolor/` rather than the invocation directory dolor itself parses it from. Make them absolute together with `--client-binary` and `--tmp-files-dir`. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…t explain Once the log analysis passed a run for an OOM, `_classify_dolor_failure` waived whatever else made `dolor.py` fail, so a teardown failure such as `docker compose kill` failing was dropped and the job ended green. Waive only what the OOM explains: a teardown failure now fails the run as `Cluster shutdown`, unless it is the teardown re-raising the OOM's own sanitizer report. Other ERROR records, such as HTTP callback errors, never fail `dolor.py` by themselves and stay ignored. Addresses the review on #94148 Co-Authored-By: Claude Opus 5.5 <[email protected]>
…sk can start The fuzzer could pair `max_single_part_upload_size=0` (every write multipart) with `max_blocks_in_multipart_upload=1`, which cannot fit even the disk's startup `checkAccess` probe: the server rejects the disk with `INVALID_CONFIG_PARAMETER` and node0 never starts, so `dolor.py` times out in `cluster.start`. Give the Azure block a floor of 10, as the S3 `s3_max_part_number` already has for the same reason. #94148 https://s3.amazonaws.com/clickhouse-test-reports/praktika.html?PR=94148&sha=acaae4f4602862516312ab3e0e7a69ff5b9be177&name_0=PR Co-Authored-By: Claude Opus 4.8 <[email protected]>
Changelog category (leave one):
Replace the
BuzzHouseCI job withLa Casa Del Dolor, in themasterandpull_requestworkflows. BuzzHouse still generates the load, but against a randomized multi-node cluster instead of a single server. The job runs when the fuzzers change, now includingprograms/client/.The job (
ci/jobs/lacasadeldolor_job.py) runstests/casa_del_dolor/dolor.pyin the integration tests runner, with the same docker-in-docker containment and volume clean-up hook as the integration test jobs. Each run draws:The servers use
ci/jobs/scripts/server_fuzzer/config.xmland share the AST fuzzer's experimental feature gates and its server-side AST fuzzer caps.Failure detection: the log analysis of
ast_fuzzer_job.pymoves into a sharedanalyze_job_logs(), which both jobs use. On top of it, the job:dolor.pyreports itself (a shutdown that hung or had to be forced, a load generator that died);It attaches every node's logs and the effective randomized configs.
Cluster helpers (
tests/integration/helpers/cluster.py): keep the server exec id and its exit code across stops, take agdbbacktrace before force killing a server whose graceful stop hung, and skip theDetect passwords in testsrule for Dolor, whose fuzzed DDL carries the test credentials.Dolor:
<Fatal>for an intentional kill is ignored.Workflow [PR]
Sync PR [sync-upstream/pr/94148]
Version info
26.11.1.1124-master(included in26.11and later)