Skip to content

Split Stateless tests (arm_asan_ubsan, azure, sequential) into 2 batches - #123849

Merged
Algunenano merged 2 commits into
ClickHouse:masterfrom
groeneai:ci-split-arm-azure-sequential-lane
Oct 14, 2026
Merged

Algunenano merged 2 commits into
ClickHouse:masterfrom
groeneai:ci-split-arm-azure-sequential-lane

Conversation

@groeneai

@groeneai groeneai commented Oct 4, 2026 •

Copy link
Copy Markdown
Collaborator

Related: #123810

Changelog category (leave one):

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

Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):

...

Description

Stateless tests (arm_asan_ubsan, azure, sequential) now reaches its 9000 s job timeout. A timed-out job uploads no test results, so any failure in it is hidden. Three runs were killed at 150.9 min in two days, none in the 30 days before:

Ten more runs in the last week finished between 145 and 149 min.

The lane runs only the sequential-flavor tests (--no-parallel), one at a time, so its wall time is the sum of its test durations plus about 6.5 min of setup. That sum grows with the suite: p50 91 min in early July, 133 min over the last 3 days (834 to 1105 tests). Over the last month the growth is all newly added sequential tests, not one regressed test.

This splits the job into 2 hash batches, like amd_tsan, sequential and amd_msan, sequential. Projected over the 1079 runs of the last 3 days with the crc32 predicate clickhouse-test applies: batch 1/2 p99 65 min, batch 2/2 p99 88 min (59% of the timeout). Cost: one more ARM_SMALL_MEM job per run, about +5% runner time. Nothing is skipped: the hash split is a total partition and no test has the no-batch tag. The workflow YAML is regenerated, not hand-edited.

A longer timeout would let a real hang burn longer, and a bigger runner does not shorten a lane that runs one test at a time. I can make it 3 batches (p99 61 min, about +11% runner time) if you prefer more margin.


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

Version info

  • Merged into: 26.10.1.2377-master (included in 26.10 and later)

@groeneai groeneai added can be tested Allows running workflows for external contributors groeneai-origin-ci-own-pr PR origin: CI on a groeneai PR exposed a separate defect labels Oct 4, 2026
@groeneai

groeneai commented Oct 4, 2026

Copy link
Copy Markdown
Collaborator Author
Internal second-model review: adjudication log (click to expand)

Pre-publication review by an independent model (engine: codex; 0 findings) plus my own cold review of the same head.

# Sev Finding Verdict Evidence / action
- - No blocker, major or nit findings - Checked: option parsing of N/2 in ci/jobs/functional_tests.py, the clickhouse-test hash filter (no no-batch tests exist), name-keyed consumers (filter_job.py, stateless_memory_limit), and the regenerated needs: of Finish Workflow in both workflows

Severity: ❌ blocker / ⚠️ major / 💡 nit. DISAGREE verdicts carry recorded evidence and are
terminal per finding.

Session id: cron:clickhouse-review-slot-8:20261004-095600

@clickhouse-gh clickhouse-gh Bot added the manual approve Manual approve required to run CI label Oct 4, 2026
@groeneai
groeneai requested a review from maxknv October 4, 2026 10:17
@clickhouse-gh

clickhouse-gh Bot commented Oct 4, 2026 •

Copy link
Copy Markdown
Contributor

Workflow [PR], commit [60bdc46]

Summary: ⏳

job_name test_name status info comment
Stateless tests (amd_llvm_coverage, 1/3) FAIL
04907_url_function_no_retry_after_cancel FAIL cidb IGNORED
LLVM Coverage FAIL
Generate LLVM Coverage Diff Report FAIL cidb IGNORED
Print Uncovered Code FAIL cidb IGNORED

AI Review

Summary

This PR splits the arm_asan_ubsan, azure, sequential stateless lane into two hash batches in the job definition source so the suite stays under the 9000 s timeout without dropping coverage. I found no correctness, safety, or CI-contract issues in the current ci/defs/job_configs.py change: the new N/M option shape is already supported by functional_tests.py, the batching still goes through the existing clickhouse-test hash partitioning, there are no no-batch stateless tests to fall out of the suite, and the regenerated workflows are in sync with the source.

Final Verdict
  • Status: ✅ Approve

LLVM Coverage Report

⚠️ No coverage measurement for commit 60bdc46: bash ci/jobs/scripts/generate_diff_coverage_report.sh failed (its output is on the Generate LLVM Coverage Diff Report result).

@clickhouse-gh clickhouse-gh Bot added pr-ci comp-ci-infrastructure CI/CD pipelines (GitHub Actions, CI scripts, runners). labels Oct 4, 2026
@groeneai
groeneai force-pushed the ci-split-arm-azure-sequential-lane branch from d0da2e4 to f8405b4 Compare October 6, 2026 01:55
@alexey-milovidov alexey-milovidov added the ci-force-all Do not skip any jobs when running label Oct 6, 2026
@groeneai
groeneai force-pushed the ci-split-arm-azure-sequential-lane branch from f8405b4 to 19e0902 Compare October 6, 2026 05:51
@groeneai

Copy link
Copy Markdown
Collaborator Author

Fixing PR for the amd_release perf reds on decimal_parse #0 and consistent_hashes #4: #125278

@Algunenano

Copy link
Copy Markdown
Member

@groeneai Please fix conflicts but do so with a new commit, not force pushing

…sequential-lane

Resolve the conflicts in the generated .github/workflows/master.yml and
pull_request.yml by taking master's files and regenerating them with
`PYTHONPATH=./ci:. python3 -m praktika yaml`.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@groeneai

Copy link
Copy Markdown
Collaborator Author

Done: I merged master into the branch as a new commit, 60bdc46, and regenerated the two workflow YAMLs. There was no force push, and the PR is mergeable again.

@groeneai

Copy link
Copy Markdown
Collaborator Author

CI finish ledger - 60bdc46

Every failure below has an owner: a fixing PR (mine or external), or a full-effort fix task
whose fixing-PR link will be posted here when it opens. Only CH Inc sync is exempt.

Check / test Reason Owner / fixing PR
Stateless tests (amd_llvm_coverage, 1/3) / 04907_url_function_no_retry_after_cancel flaky on the coverage lane: the the cancellation interrupted the retry backoff line is missing, same signature as on master (0/3 reruns failed) #125305 (mine, open)
Stateless tests (amd_llvm_coverage, ParallelReplicas, s3 storage, parallel, 1/2) / 05029_url_function_schema_inference_hard_timeout_during_backoff flaky on the coverage lane: the the time limit interrupted the retry backoff line is missing, same signature as on master (0/3 reruns failed) #125305 (mine, open)
LLVM Coverage / Generate LLVM Coverage Diff Report, Print Uncovered Code CI infra: Could not find baseline coverage file after checking 100 commits, the PR baseline lookup does not find the master coverage files #125466 (mine, open)
Build (amd_release) / (no test row) infra, not from this PR: the self-hosted runner was lost during Run (no log, no CIDB row), never re-run a fix task is created (fixing-PR link to follow here)
Build (riscv64) / (no test row) infra, not from this PR: runner lost during Run, never re-run a fix task is created (fixing-PR link to follow here)
Build (s390x) / (no test row) infra, not from this PR: the host Docker daemon died (exit code 125), then the runner was lost, never re-run a fix task is created (fixing-PR link to follow here)
Build (wasm64) / (no test row) infra, not from this PR: the build was killed at 706/7292 when the host Docker daemon died, then the runner was lost, never re-run a fix task is created (fixing-PR link to follow here)
Build (arm_fuzzers) / (no test row) infra, not from this PR: the host Docker daemon died at 22:55:25Z (error waiting for container: unexpected EOF), never re-run a fix task is created (fixing-PR link to follow here)
Build (arm_darwin) / (no test row) infra, not from this PR: the host Docker daemon died (exit code 125), never re-run a fix task is created (fixing-PR link to follow here)
Build (amd_musl) / (no test row) infra, not from this PR: the build finished (Failures: 0/3), then the runner was lost before the job completed, never re-run a fix task is created (fixing-PR link to follow here)
Stateless tests (arm_asan_ubsan, azure, parallel) / (no test row) infra, not from this PR: runner lost during Run, no test result uploaded, never re-run a fix task is created (fixing-PR link to follow here)
AST fuzzer (amd_release, oracle), ClickBench (amd_release), Compatibility check (amd_release), Install packages (amd_release, deb / rpm / tgz), Performance Comparison (amd_release, master_head, 1/6 to 6/6), Upgrade check (amd_release), Docker server image, Docker keeper image infra cascade, no test ran: Required artifacts are not found in S3 because Build (amd_release) did not finish (the two Docker image jobs were re-run at attempt 3 and failed the same way) a fix task is created (the runner-loss task above)
Mergeable Check, PR rollups of the rows above #125305 and #125466 (mine, open); a fix task is created for the infra rows

The eight infra rows started between 22:31Z and 22:45Z on 2026-10-13, in the wave in which Build jobs errored on about 70 PRs (lost runners plus a host Docker daemon death around 22:55Z). The automatic retry re-ran one failed job per attempt (Keeper Stress Tests (PR) at attempt 2, Build (arm_release) at attempt 3 with all its dependents, all green) and stopped at attempt 3. The retry policy for this case is asked of the CI owner in #122501.

For the change itself: both new batches passed on this head, Stateless tests (arm_asan_ubsan, azure, sequential, 1/2) in 57 min and 2/2 in 69 min, under the 9000 s job limit.

Session id: cron:our-pr-ci-monitor:20261014-070008

@Algunenano

Copy link
Copy Markdown
Member

Rerunning failed tests due to infra problems. The sync is now fine, just need a clear CI here to merge

@Algunenano
Algunenano added this pull request to the merge queue Oct 14, 2026
Merged via the queue into ClickHouse:master with commit 64d5363 Oct 14, 2026
576 of 699 checks passed
@robot-clickhouse-ci-2 robot-clickhouse-ci-2 added the pr-synced-to-cloud The PR is synced to the cloud repo label Oct 14, 2026
qiuyanjun888 pushed a commit to qiuyanjun888/ClickHouse that referenced this pull request Oct 20, 2026
In `master_head` mode the PR performance comparison used master's official
release build as the reference. That build keeps debug info and sets
`-DCLICKHOUSE_OFFICIAL_BUILD=1`, while a PR release build has
`-DDISABLE_ALL_DEBUG_SYMBOLS=1` and no official flag. Both change the
generated code (XRay instruments ~11k more functions when debug info is
present, and the official flag adds code), so the same sources give two
binaries with different code layout. The CI-only ClickHouse#123849 has 0x65500 bytes
less code than the official build of its own base e95690a and was
21.6% slower on `window_functions_distinct ClickHouse#2`. On some master bases a hot
loop lands on a slow placement only in the PR flavour, and every PR on that
base then reds (seen on ClickHouse#100391).

MasterCI's `Build (amd|arm_release_pr_cache_warmup)` jobs already compile
master with exactly the PR cmake flags. They now also link
`clickhouse-self-extracting` and upload it, and take the PGO/BOLT decision
of the release build they mirror, as a PR build does.

For PR runs of the public repository, `find_prev_build` prefers that binary.
When the base has none it walks back only over commits where MasterCI
skipped the warmup job (a skipped job means its inputs did not change, so
the older build has the same sources); anything else falls back to the
official build. Replayed over 14 days of PR references, 332 of 356 get a
build with identical compiled sources and none gets different sources.
Master runs (official vs official) and local runs are unchanged. The report
parsing of `classify_missing_prev_master_run` moves into
`master_job_status`, shared by both walks.

The arm warmup's build-profile upload stays what it was (compiled objects):
the server link trace is deleted before extraction and the symbol table of
the linked binary is not uploaded, so the shared build-profile cluster gets
no new load.

Cost: ~24 min (amd) and ~39 min (arm) of ThinLTO link per warmup run and
~540 MB of S3 per run with default retention. MasterCI wall clock is
unchanged and no PR job is added.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
qoega added a commit to qoega/ClickHouse that referenced this pull request Nov 4, 2026
Preserve the shared compression output path and master protocol revisions;
move the small-frame capability to 54496 and compatibility history to 26.11.
Clarify that precompressed asynchronous `Distributed` queue replay keeps its
stored codec.

Includes the Azure sequential job split that addresses the 9000-second
timeout seen on this branch.

Related: ClickHouse#123849
PR: ClickHouse#120191
CI: https://s3.amazonaws.com/clickhouse-test-reports/praktika.html?PR=120191&sha=c0d9b692de33d123b65dce59bf47ed5b28704ee5&name_0=PR&name_1=Stateless%20tests%20%28arm_asan_ubsan%2C%20azure%2C%20sequential%29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

can be tested Allows running workflows for external contributors ci-force-all Do not skip any jobs when running comp-ci-infrastructure CI/CD pipelines (GitHub Actions, CI scripts, runners). groeneai-origin-ci-own-pr PR origin: CI on a groeneai PR exposed a separate defect manual approve Manual approve required to run CI 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.

4 participants