Skip to content

Split flaky and targeted checks: per-worker partitioning for targeted, thread fuzzer for flaky - #102659

Merged
fm4v merged 1 commit into
masterfrom
nik/flaky-targeted-split
Apr 14, 2026
Merged

fm4v merged 1 commit into
masterfrom
nik/flaky-targeted-split

Conversation

@fm4v

@fm4v fm4v commented Apr 14, 2026 •

Copy link
Copy Markdown
Member

Split the flaky check and targeted check into separate roles:

Flaky check — runs only new/modified tests from the PR, with thread fuzzer enabled. Tests can run in parallel with themselves (shared queue) to ensure new tests are parallel-safe under randomized thread ordering.

Targeted check — runs previously failed and coverage-relevant tests, with per-worker partitioning (--no-self-parallel) so the same test never runs concurrently on multiple workers, avoiding conflicts on shared resources (hardcoded users, roles, settings profiles, etc.). Both use --test-runs 50.

Add --no-self-parallel flag to clickhouse-test: partitions tests by name hash so all copies of the same test go to the same worker.

Restore original thread fuzzer parameters that were reduced in commits 06c945a and 9790435.

Change targeted check to arm_asan_ubsan on ARM_LARGE.

PRs with failed flaky check due to tests running in parallel with themselves: CIDB query

Continuation of #102038

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):

...

Documentation entry for user-facing changes

  • Documentation is written (mandatory for new features)

Version info

  • Merged into: 26.4.1.924

Split flaky check and targeted check into separate roles:

Flaky check — runs only new/modified tests from the PR with thread
fuzzer enabled. Tests can run in parallel with themselves (shared
queue) to ensure new tests are parallel-safe.

Targeted check — runs previously failed and coverage-relevant tests
with per-worker partitioning (--no-self-parallel) so the same test
never runs concurrently on multiple workers, avoiding conflicts on
shared resources (hardcoded users, roles, settings profiles, etc.).
Both use --test-runs 50.

Changes:
- Add --no-self-parallel flag to clickhouse-test: partitions tests
  by name hash so all copies go to the same worker
- Flaky check: only changed tests, thread fuzzer, shared queue
- Targeted check: relevant tests, no thread fuzzer, per-worker
  partitioning, 50 runs, single clickhouse-test invocation
- Restore original thread fuzzer parameters
- Change targeted check to arm_asan_ubsan on ARM_LARGE

PRs affected by tests running in parallel with themselves:
#102015 #101093 #99653 #101503 #101108 #101884 #100746
#101447 #100941 #101099 #100203 #96130
@clickhouse-gh

clickhouse-gh Bot commented Apr 14, 2026 •

Copy link
Copy Markdown
Contributor

Workflow [PR], commit [4a5d222]


AI Review

Summary

This PR splits flaky and targeted CI checks, adds --no-self-parallel partitioning in clickhouse-test, increases targeted repetitions to 50, restores stronger thread-fuzzer settings, and handles stale targeted integration tests gracefully. I did not find correctness, safety, or performance regressions that require code changes.

ClickHouse Rules
Item Status Notes
Deletion logging ➖
Serialization versioning ➖
Core-area scrutiny ✅
No test removal ✅
Experimental gate ➖
No magic constants ✅
Backward compatibility ✅
SettingsChangesHistory.cpp ➖
PR metadata quality ✅
Safe rollout ✅
Compilation time ✅
No large/binary files ✅
Final Verdict
  • Status: ✅ Approve

@clickhouse-gh clickhouse-gh Bot added the pr-ci label Apr 14, 2026
@fm4v
fm4v enabled auto-merge April 14, 2026 13:23
@fm4v
fm4v added this pull request to the merge queue Apr 14, 2026
Merged via the queue into master with commit af56526 Apr 14, 2026
120 of 159 checks passed
@fm4v
fm4v deleted the nik/flaky-targeted-split branch April 14, 2026 13:42
@robot-clickhouse-ci-2 robot-clickhouse-ci-2 added the pr-synced-to-cloud The PR is synced to the cloud repo label Apr 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

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.

2 participants