Repository navigation
Conversation
|
Workflow [PR], commit [f4177d3] AI ReviewSummaryThis PR restructures flaky/targeted CI test jobs, adds Missing context
Findings❌ Blockers
ClickHouse Rules
Performance & SafetyThe concern is reliability/safety of CI signal rather than runtime performance: under memory pressure the new queueing mode may under-execute planned test iterations without surfacing partial execution. Final Verdict
|
| if is_flaky_check: | ||
| # Hard 45-minute wall-clock limit for the test runner. | ||
| FLAKY_CHECK_TIME_LIMIT = 45 * 60 # 45 min | ||
| FLAKY_CHECK_TIME_LIMIT = 35 * 60 # 35 min |
There was a problem hiding this comment.
The comment and constant disagree: the comment still says 45-minute, but FLAKY_CHECK_TIME_LIMIT is now 35 * 60.
Please update the comment text here (and the matching earlier comment near --max-failures) to 35-minute so maintainers are not misled when tuning flaky-check behavior.
During flaky check (--test-runs), the test queue contains multiple copies of each test. Multiple worker processes pop from a shared queue and nothing prevented two workers from running the same test simultaneously, causing failures when tests use shared resources (tables with fixed names, etc.). Add a shared dict + lock to track currently-running tests. When a worker pops a test that is already running on another worker, it puts the test back at the end of the queue and tries the next one. A sleep prevents tight spinning when all remaining tests are locked. #102038
During flaky check (--test-runs), the test queue contains multiple copies of each test. Previously all workers shared a single queue, so two workers could run the same test simultaneously, causing failures when tests use shared resources (tables with fixed names, files, etc.). Partition tests by name hash so that all copies of the same test are assigned to the same worker. Within a worker, tests run sequentially, so the same test never overlaps with itself. #102038
|
The |
Flaky check now runs in two phases: 1. Targeted tests (previously failed + relevant) — no thread fuzzer, per-worker partitioning so the same test never runs concurrently. 2. Changed/new tests — with thread fuzzer, shared queue allowing the same test to run in parallel with itself (ensures new tests are parallel-safe). Server is restarted between the two runs to enable thread fuzzer env vars for the second phase. Add --no-self-parallel flag to clickhouse-test that disables per-worker partitioning in --flaky-check mode. Add ClickHouseProc.restart method for stopping and restarting server process(es) without affecting minio/kafka. Also pick up master changes: nproc-1 workers, 45-min time limit, separate targeted check job flow. #102038
Split flaky check and targeted check into separate roles: Flaky check — runs only new/modified tests from the PR with thread fuzzer enabled. Tests 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. 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 queues, 50 runs, single clickhouse-test invocation - Restore original thread fuzzer parameters (reverts reductions from 06c945a and 9790435) - Add amd_binary to flaky check, use AMD_LARGE for targeted debug - Targeted check uses --flaky-check --no-self-parallel PRs affected by tests running in parallel with themselves: #102015 #101093 #99653 #101503 #101108 #101884 #100746 #101447 #100941 #101099 #100203 #96130 #102038
15c903f to
c181b29
Compare
|
Broken sync PR. new PR #102659 |
Split flaky check and targeted check into separate roles: Flaky check — runs only new/modified tests from the PR with thread fuzzer enabled. Tests 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. 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 queues, 50 runs, single clickhouse-test invocation - Restore original thread fuzzer parameters (reverts reductions from 06c945a and 9790435) - Add amd_binary to flaky check, use AMD_LARGE for targeted debug - Targeted check uses --flaky-check --no-self-parallel PRs affected by tests running in parallel with themselves: ClickHouse#102015 ClickHouse#101093 ClickHouse#99653 ClickHouse#101503 ClickHouse#101108 ClickHouse#101884 ClickHouse#100746 ClickHouse#101447 ClickHouse#100941 ClickHouse#101099 ClickHouse#100203 ClickHouse#96130 ClickHouse#102038
Split the flaky check and targeted check into separate roles:
Flaky check — runs only new/modified tests from the PR, with thread fuzzer enabled and parallel-with-self (shared queue). Ensures new tests are parallel-safe under randomized thread ordering.
Targeted check — runs previously failed and coverage-relevant tests, with per-worker partitioning (same test assigned to same worker, no self-overlap) and no thread fuzzer.
Add stateless test configs to flaky check jobs so tests run under the same environment as the main CI pipeline:
amd_tsan:s3 storageamd_debug:DatabaseReplicatedRestore original thread fuzzer parameters that were reduced in commits 06c945a and 9790435.
Add
--no-self-parallelflag toclickhouse-testto disable per-worker partitioning in--flaky-checkmode.PRs with failed flaky check due to tests running in parallel with themselves: CIDB query
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
...
Documentation entry for user-facing changes