Repository navigation
[CI Proof] no-parallel-replicas tag satisfies the check's no-parallel exemption - #121459
clickgapai wants to merge 1 commit into
Conversation
`check_failpoints_are_disabled` credits `SYSTEM DISABLE ALL FAILPOINTS` in any test whose tag line matches `\bno-parallel\b`, which also matches `no-parallel-replicas`. `clickhouse-test` decides sequential scheduling from the parsed tag set, so such a test runs in the parallel pass and its disable-all disarms the fail points of the tests running alongside. Six of the sixteen cases fail on master; all pass once the exemption is decided on the tag set instead of a substring of the raw tag line. Co-Authored-By: Claude Opus 5 <[email protected]>
Pre-PR validation: 4/6 ✅a) Deterministic repro? ❌ b) Root cause explained? ✅ c) Fix matches root cause? ✅ d) Test intent preserved? / New tests added? ❌ e) Both directions demonstrated? ✅ f) Fix is general, not a narrow patch? ✅ |
|
Workflow [PR], commit [1f8c568] Summary: ✅ AI ReviewSummaryThis PR adds a focused CI-proof unit test for the Findings
Final Verdict
|
|
CI completed without detecting a CI failure for this hypothesis. The bug was not confirmed. Closing this proof PR. |
Suspected bug:
no-parallel-replicastag satisfies the check'sno-parallelexemptionRoot cause: ci/jobs/check_style.py:619 tests the raw tag LINE with a word-boundary substring pattern instead of testing membership in the parsed tag set.
tests/clickhouse-test:4773decides sequential scheduling withif "no-parallel" in tags or "sequential" in tags:over the set built at :4507-4508, so the check and the runner disagree for every test taggedno-parallel-replicas.Affected locations:
ci/jobs/check_style.py:619— NO_PARALLEL_TAG_RE -\bno-parallel\balso matchesno-parallel-replicasci/jobs/check_style.py:704— the DISABLE-ALL exemption that consumes the patternWhy CI is needed: The guard the PR adds to keep
SYSTEM DISABLE ALL FAILPOINTSout of tests that run in parallel is inoperative for any test carryingno-parallel-replicas- 528 stateless tests carry that tag today, 482 of them withoutno-parallel, and it is the standard tag for a test that must not run under--no-parallel-replicas. Nothing is broken on the current tree; the cost is that the new check will wave through precisely the file it was written to stop, and the resulting failure lands on the concurrently running test whose fail point was disarmed - a failure with no cause in its own source, which is the symptom this PR exists to eliminate.Suggested fix: Decide the tag the way the runner does. Minimal:
r"(--|#)\s*[Tt]ags:.*\bno-parallel\b(?!-)". Better: split the tag line on,, strip, and test set membership astests/clickhouse-test:4507-4508does - that also picks upsequential, the runner's second sequential tag (tests/clickhouse-test:4773), which the current pattern rejects.Assumptions
Unverified assumptions — tick to confirm, comment to refute:
SYSTEM DISABLE ALL FAILPOINTSas cleanup while tagging the testno-parallel-replicasSYSTEM DISABLE ALL FAILPOINTS(05223, 05224, 05225) are all taggedno-parallel. The hazard is on the next test written that way.check_failpoints_are_disabledovertests/queries/**after any new fail-point test lands; a file combining DISABLE-ALL withno-parallel-replicaswill pass silently.Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
Not applicable — temporary CI proof PR, will be closed automatically.
Documentation entry for user-facing changes
Workflow [PR]
Sync PR [sync-upstream/pr/121459]