Repository navigation
Skip flaky RabbitMQ shutdown integration tests - #104273
alexey-milovidov merged 2 commits into
Conversation
The three tests in `tests/integration/test_storage_rabbitmq/test_shutdown.py` have been failing in CI: - `test_shutdown_rabbitmq_with_materialized_view` - `test_idle_loop_shutdown_completes_promptly` - `test_rabbitmq_virtual_column_table` The fourth test in the file (`test_attach_detach_rabbitmq_with_materialized_view`) was already marked as `pytest.mark.skip` due to a known data race in `StorageRabbitMQ` shutdown. Per @alexey-milovidov's directive on PR ClickHouse#104253: > "remove (or, optionally, fix) failed RabbitMQ tests and send a PR. > Tag the author who tried to resurrect RabbitMQ tests recently, > as it was a bad idea." Removing the entire `test_shutdown.py` file rather than skipping its contents, since the only non-skipped tests in it are flaky and the remaining test was already non-runnable. Context: - The `test_storage_rabbitmq` suite was originally removed in PR ClickHouse#93107 due to chronic flakiness, then restored in PR ClickHouse#101967 (2026-04-07). - `test_shutdown.py` was added shortly after in PR ClickHouse#102711 (2026-04-21). cc @alexey-milovidov @fm4v @jaapieaapie1
|
cc @alexey-milovidov — could you review this? It removes the three flaky tests in |
|
Workflow [PR], commit [fee59a2] Summary: ✅ AI ReviewSummaryThis PR changes ClickHouse Rules
Final Verdict
|
| ) | ||
| return datetime.datetime.fromisoformat(ts) | ||
|
|
||
|
|
There was a problem hiding this comment.
❌ Removing this file drops three currently active integration tests (test_shutdown_rabbitmq_with_materialized_view, test_idle_loop_shutdown_completes_promptly, and test_rabbitmq_virtual_column_table) instead of isolating the flaky behavior.
Per ClickHouse review rules, test coverage should not be removed; flaky tests should be quarantined (@pytest.mark.skip/xfail with a tracking issue) or stabilized, but not deleted wholesale. Please keep the tests and disable only the specific unstable cases with an explicit issue link.
There was a problem hiding this comment.
Good catch — addressed in commit fee59a2.
The new commit replaces the file deletion with @pytest.mark.skip decorators on the three flaky tests, preserving the test bodies and assertions for future stabilization. Each reason= references PR #104253 (the directive source) and PR #104273 (this fix) as explicit links per the review rule.
The fourth test in the file (test_attach_detach_rabbitmq_with_materialized_view) keeps its existing @pytest.mark.skip decorator for the known data race.
cc @alexey-milovidov — quarantining instead of deleting per the bot review; please re-check.
Per the bot review on PR ClickHouse#104273, replaces the wholesale deletion of `tests/integration/test_storage_rabbitmq/test_shutdown.py` with `@pytest.mark.skip` decorators on the three flaky tests, preserving the test bodies for future stabilization or re-enable: - `test_shutdown_rabbitmq_with_materialized_view` - `test_idle_loop_shutdown_completes_promptly` - `test_rabbitmq_virtual_column_table` The fourth test in the file (`test_attach_detach_rabbitmq_with_materialized_view`) remains marked as `@pytest.mark.skip` for the existing data-race reason. This complies with the ClickHouse review rule that test coverage should not be removed; flaky tests should be quarantined with an explicit tracking link rather than deleted wholesale. Each skip reason links to PR ClickHouse#104253 (the source of @alexey-milovidov's directive) and PR ClickHouse#104273 (this fix) for context and traceability. Per directive on ClickHouse#104253 and bot review on ClickHouse#104273
Head branch was pushed to by a user without write access
|
Updated this PR per the bot review on commit fee59a2. Change: Replaced wholesale deletion of
Each skip reason references PR #104253 (the source of the directive) and PR #104273 (this fix). The fourth test in the file ( This complies with the ClickHouse review rule that test coverage should not be removed; flaky tests should be quarantined with an explicit tracking link rather than deleted outright. Tests can be re-enabled once the underlying RabbitMQ shutdown timing issues are stabilized. PR title and body updated to reflect the new approach. |
The three tests in
tests/integration/test_storage_rabbitmq/test_shutdown.pyare flaky in CI and currently block PR #104253:test_shutdown_rabbitmq_with_materialized_viewtest_idle_loop_shutdown_completes_promptlytest_rabbitmq_virtual_column_tableThe fourth test in the file,
test_attach_detach_rabbitmq_with_materialized_view, was already marked@pytest.mark.skipdue to a known data race inStorageRabbitMQshutdown.Motivation
Per @alexey-milovidov's directive on PR #104253:
The
test_storage_rabbitmqsuite was originally removed in #93107 due to chronic flakiness, then restored in #101967 (2026-04-07).test_shutdown.pywas added on top of that in #102711 (2026-04-21).cc @fm4v (restored the suite) and @jaapieaapie1 (added
test_shutdown.py).Approach
Originally this PR deleted the file wholesale. Per the bot review on this PR, the ClickHouse review skill rule "test coverage should not be removed" requires flaky tests to be quarantined with
@pytest.mark.skipand an explicit tracking link rather than deleted outright.The latest commit replaces the deletion with
@pytest.mark.skipdecorators on the three flaky tests, preserving the test bodies for future stabilization or re-enable. Eachreason=references PR #104253 (the directive source) and PR #104273 (this fix) for traceability.CI report for #104253 (failure that triggered this): https://s3.amazonaws.com/clickhouse-test-reports/json.html?PR=104253&sha=a4ae04d39170c4d2d821aedb448667867bea5497&name_0=PR
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
Not for changelog.
Documentation entry for user-facing changes