Skip to content

Require no-parallel and no-fasttest for tests that use failpoints - #122913

Merged
Algunenano merged 1 commit into
ClickHouse:masterfrom
Algunenano:failpoint-tests-no-parallel-no-fasttest
Oct 1, 2026
Merged

Algunenano merged 1 commit into
ClickHouse:masterfrom
Algunenano:failpoint-tests-no-parallel-no-fasttest

Conversation

@Algunenano

@Algunenano Algunenano commented Sep 29, 2026 •

Copy link
Copy Markdown
Member

A failpoint is server-global: it fires for every query on the server, not only the test's own, so a test that arms one must not run alongside other tests. 25 such tests were not no-parallel (mostly parallel-replicas tests using slowdown_parallel_replicas_local_plan_read and parallel_replicas_wait_for_unused_replicas).

Tests that run alone are also the main reason Fast test went from ~9 min to ~17 min this year: no-parallel tests run one by one after the parallel ones, and failpoint tests are ~3.9 min of that sequential phase.

  • New style check failpoint_tests_are_isolated: a stateless test that arms a failpoint on the server must be tagged no-parallel and no-fasttest.
  • Retag the 165 existing tests that break it. They still run in the regular stateless jobs.

Changelog category (leave one):

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

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

Version info

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

A failpoint is server-global and fires in concurrent tests, so these tests must run alone. Tests that run alone cost about 4 minutes of the sequential phase in the fast test. Add the `failpoint_tests_are_isolated` style check and retag the 165 tests that break it.

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

clickhouse-gh Bot commented Sep 29, 2026 •

Copy link
Copy Markdown
Contributor

Workflow [PR], commit [67965ab]

Summary: ❌

job_name test_name status info comment
Stateless tests (amd_asan_ubsan, flaky check) FAIL
04405_mergetree_compact_cancel_after_finish FAIL cidb IGNORED

AI Review

Summary

This PR adds the failpoint_tests_are_isolated style check and retags the existing server-side stateless failpoint tests with no-parallel and no-fasttest. I did not find a correctness or coverage gap in the current diff: the new check follows the same tag parsing as tests/clickhouse-test, the check_failpoints_are_disabled refactor preserves its previous behavior, and the current tree has no remaining server-side 0_stateless failpoint-enabling tests missing either required tag.

Final Verdict

✅ No blocking issues found.

@clickhouse-gh clickhouse-gh Bot added the pr-ci label Sep 29, 2026
@Algunenano Algunenano added the 🚀 Fast CI 🥒 A fast database deserves a fast CI label Sep 29, 2026
@clickhouse-gh clickhouse-gh Bot added the comp-ci-infrastructure CI/CD pipelines (GitHub Actions, CI scripts, runners). label Sep 29, 2026
@Algunenano

Copy link
Copy Markdown
Member Author

@groeneai The failure of 04405_mergetree_compact_cancel_after_finish is clearly unrelated (the change only makes it more restrictive and doesn't change the test itself). Could you please investigate and fix?

@groeneai

Copy link
Copy Markdown
Collaborator

Acknowledged. I'm investigating the 04405_mergetree_compact_cancel_after_finish failure; I'll follow up here with a PR (or my findings) shortly.

@groeneai

Copy link
Copy Markdown
Collaborator

The fix is #122992. Since #109006 made max_insert_threads default to the number of cores, the test's quorum INSERT ... SELECT runs several sinks: the one with the rows raises the expected 319 at the failpoint, and a sink without rows can then return 286 from checkQuorumPrecondition on that part's quorum node first. The PR pins max_insert_threads = 1 on that INSERT and does not touch the Tags line, so it does not conflict with this PR.

@Algunenano Algunenano left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a purely mechanical change. Merging

@Algunenano
Algunenano added this pull request to the merge queue Oct 1, 2026
Merged via the queue into ClickHouse:master with commit 8e01f82 Oct 1, 2026
147 of 149 checks passed
@Algunenano
Algunenano deleted the failpoint-tests-no-parallel-no-fasttest branch October 1, 2026 12:20
@robot-ch-test-poll4 robot-ch-test-poll4 added the pr-synced-to-cloud The PR is synced to the cloud repo label Oct 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

comp-ci-infrastructure CI/CD pipelines (GitHub Actions, CI scripts, runners). 🚀 Fast CI 🥒 A fast database deserves a fast 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.

3 participants