Repository navigation
Split the two un-batched amd_llvm_coverage s3 parallel stateless jobs into 2 batches - #116209
Conversation
… into 2 batches `Stateless tests (amd_llvm_coverage, AsyncInsert, s3 storage, parallel)` and `Stateless tests (amd_llvm_coverage, ParallelReplicas, s3 storage, parallel)` are the only coverage stateless *parallel* shards that still run the whole suite un-batched, and they are the two shards that hit the 9000 s job timeout: 21 at-cap runs in 90 days, every single one reported as `error`. An at-cap kill is an unattributable red. The ordinary functional-test path passes `global_time_limit=0`, so there is no graceful stop: praktika's job watchdog SIGTERMs the process group and the job exits -15 with zero failing tests. On PR ClickHouse#114417 head f1b87f1 the shard reported 13153 of 13154 tests and died 184 s past its budget with one worker still inside its last test. Runtime is drifting: over Mar->Aug the AsyncInsert parallel shard's p99 went 4397 -> 5936 s (p50) and 5121 -> 7655 s (p99), and runs over 8000 s went from 0 in April to 127 in August, against a 9000 s cap. `prepare_stateful_data` costs ~1431 s and is paid per shard, so the model is `setup + (total - setup)/N`. N=2 puts the observed max at 5276 s (59% of the cap) and, at the measured 507 s/month test-phase drift, buys ~15-18 months of headroom. N=3 would cost 2862 extra runner-seconds per workflow for headroom nobody has asked for, and 3708b71 merged two-way stateless splits back into single jobs, so the batch count is kept at the measured minimum. The two `sequential` counterparts are deliberately left un-batched: their p99 is 4071 s and 3296 s. Cost: 2 jobs become 4, i.e. +2 AMD_MEDIUM runners per PR and per master run. The per-batch coverage artifact names had to be generated rather than listed: the four `_ft_s3*` entries in `LLVM_FT_ARTIFACTS_LIST` were hardcoded singletons, unlike every sibling shard's generated list, and that list feeds both `ArtifactConfigs.llvm_profdata_file` and `llvm_coverage_job.requires`. Workflow YAML is regenerated, not hand-edited.
Internal second-model review (Gate B) and adjudicationGate B (independent cold re-review, My own cold review raised 4 findings, all in the PR-facing text rather than the change. All 4
Verification I ran independently of the implementation, each with a live negative control so an
Session id: cron:clickhouse-review-slot-49:20260824-224900 |
Pre-PR validation gate
|
|
Workflow [PR], commit [4e5b86e] Summary: ✅ AI ReviewSummaryThis PR splits the two Findings
|
|
cc @maxknv, could you review this? It hash-batches the two coverage s3-parallel stateless shards into 2, the only coverage parallel shards still running the whole suite, because they are the ones hitting the 9000 s job cap; I kept N at 2 rather than 3 since 3708b71 merged two-way stateless splits back into single jobs. |
The only conflicts were the two praktika-generated workflow YAMLs. Both were resolved by regenerating them from the merged ci/defs/ sources (PYTHONPATH=./ci:. python3 -m praktika yaml), so they stay a pure function of the job definitions instead of a hand-merge. Master's own edits to the two carrier files (the Docs examples job, the SQLancer arm_release parameter sets) merged cleanly and are untouched: the diff against master is still exactly the four files of this PR, 198+/35-.
Master dropped WasmEdge from the coverage suite and renamed the constants and artifact names of the old-analyzer + s3 + DBReplicated shards accordingly, which collided with the two additions this branch makes next to them: the new LLVM_FT_S3_PARALLEL_NUM_BATCHES constant and its import. Both Python conflicts take master's renames and keep this branch's additions; the +/- line set of the branch's Python delta is byte-identical before and after the merge. The two GitHub workflow files are praktika output, so they were reset to master's copies and regenerated with `PYTHONPATH=./ci:. python3 -m praktika yaml` rather than hand-merged. The regenerated job-id sets differ from master's by exactly the two un-batched coverage jobs removed and the four batched ones added, in both workflows, so no job master added in the drift was dropped.
The two conflicts were in the generated `master.yml` and `pull_request.yml`; the source of truth, `ci/defs/defs.py` and `ci/defs/job_configs.py`, merged cleanly. Regenerated both with `python3 -m ci.praktika yaml` rather than hand-merging the job lists, which is also what `Check Workflows` compares against. The result carries this branch's batching - `stateless_tests_amd_llvm_coverage_asyncinsert_ s3_storage_parallel` and `..._parallelreplicas_s3_storage_parallel` each split into `_1_2`/`_2_2` - and keeps master's own job list changes. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
The conflict was the generated `finish_workflow` `needs:` list: master dropped the `ci_tests` lane with the removal of that job, while this branch splits two llvm-coverage stateless jobs into batches. `ci/defs` merged cleanly, so the YAMLs were regenerated with `python3 -m ci.praktika yaml` rather than hand-merging the list - which is also what `Check Workflows` compares against. The result keeps this branch's batching (`..._asyncinsert_s3_storage_parallel_1_2`/`_2_2` and `..._parallelreplicas_s3_storage_parallel_1_2`/`_2_2`), carries no `ci_tests` lane, and differs from master only by this branch's own changes. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Take master's LLVM_FT_S3_DB_REPL_* rename next to the added LLVM_FT_S3_PARALLEL_NUM_BATCHES; regenerate the workflows from the merged config. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Only the generated workflows conflicted. They were reset to master's copies and regenerated with `python3 -m praktika yaml`; ci/defs merged cleanly. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Only the generated workflows conflicted. They were reset to master's copies and regenerated with `python3 -m praktika yaml`; ci/defs merged cleanly. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Related: #114417
Related: #113414
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
...
Description
Stateless tests (amd_llvm_coverage, AsyncInsert, s3 storage, parallel)andStateless tests (amd_llvm_coverage, ParallelReplicas, s3 storage, parallel)are the onlycoverage stateless parallel shards still running the whole suite un-batched, and they are the
two that hit the 9000 s job timeout: 43 runs reached the cap in 90 days, 30 reported as
error(18 on
ParallelReplicas, 12 onAsyncInsert).An at-cap kill is an unattributable red: the ordinary functional-test path passes
global_time_limit=0, so there is no graceful stop and praktika's watchdog SIGTERMs theprocess group for exit
-15with zero failing tests. On the run that prompted this(#114417 (comment)) the shard
reported 13153 of 13154 tests and died 184 s past budget. Runtime is drifting: March to August
the p99 of these shards went 5017 to 7551 s, and runs over 8000 s went 4 to 53.
prepare_stateful_datacosts ~1431 s and is paid per shard, so the model issetup + (total - setup)/N. N=2 puts the observed max at 5275 s, 59% of the cap, and at themeasured 507 s/month drift buys ~15 months of headroom. N=3 would cost 2862 extra
runner-seconds per workflow, and 3708b71 merged two-way stateless splits back into
single jobs, so I kept the count at the minimum.
Cost: 2 jobs become 4, i.e. +2
AMD_MEDIUMrunners per PR and per master run.The two
sequentialcounterparts are left un-batched: their p99 is 3944 s and 3216 s.Nothing is skipped:
crc32hash-batching is a total partition of the same test set and no testcarries the
no-batchtag. Workflow YAML is regenerated, not hand-edited.A residual I measured but am not fixing here: the 1431 s
prepare_stateful_dataruns on a jobstarted with
--no-stateful. It is required today (121 stateless TPC-DS/TPC-H tests readtpch./tpcds.), but it is the next-largest lever after this split.Workflow [PR]
Sync PR [sync-upstream/pr/116209]
Version info
26.10.1.2110-master(included in26.10and later)