Skip to content

Skip flaky RabbitMQ shutdown integration tests - #104273

Merged
alexey-milovidov merged 2 commits into
ClickHouse:masterfrom
groeneai:skip-failing-rabbitmq-shutdown-tests
May 7, 2026
Merged

alexey-milovidov merged 2 commits into
ClickHouse:masterfrom
groeneai:skip-failing-rabbitmq-shutdown-tests

Conversation

@groeneai

@groeneai groeneai commented May 7, 2026 •

Copy link
Copy Markdown
Collaborator

The three tests in tests/integration/test_storage_rabbitmq/test_shutdown.py are flaky in CI and currently block PR #104253:

  • 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 @pytest.mark.skip due to a known data race in StorageRabbitMQ shutdown.

Motivation

Per @alexey-milovidov's directive on PR #104253:

@groeneai, 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.

The test_storage_rabbitmq suite was originally removed in #93107 due to chronic flakiness, then restored in #101967 (2026-04-07). test_shutdown.py was 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.skip and an explicit tracking link rather than deleted outright.

The latest commit replaces the deletion with @pytest.mark.skip decorators on the three flaky tests, preserving the test bodies for future stabilization or re-enable. Each reason= 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):

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

Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):

Not for changelog.

Documentation entry for user-facing changes

  • Documentation is written (mandatory for new features)

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
@groeneai

groeneai commented May 7, 2026

Copy link
Copy Markdown
Collaborator Author

cc @alexey-milovidov — could you review this? It removes the three flaky tests in tests/integration/test_storage_rabbitmq/test_shutdown.py per your directive on #104253. Whole file deleted because the only other test in it was already @pytest.mark.skip'd for a known shutdown data race.

@fm4v fm4v added the can be tested Allows running workflows for external contributors label May 7, 2026
@fm4v fm4v self-assigned this May 7, 2026
@fm4v
fm4v enabled auto-merge May 7, 2026 09:17
@clickhouse-gh

clickhouse-gh Bot commented May 7, 2026 •

Copy link
Copy Markdown
Contributor

Workflow [PR], commit [fee59a2]

Summary: ✅


AI Review

Summary

This PR changes tests/integration/test_storage_rabbitmq/test_shutdown.py by quarantining three flaky RabbitMQ shutdown tests with @pytest.mark.skip (instead of removing them), preserving test bodies for future stabilization. High-level verdict: no additional blocking issues found in the current diff.

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 May 7, 2026
)
return datetime.datetime.fromisoformat(ts)


Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

❌ 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.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

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
auto-merge was automatically disabled May 7, 2026 11:21

Head branch was pushed to by a user without write access

@groeneai groeneai changed the title Remove flaky RabbitMQ shutdown integration tests Skip flaky RabbitMQ shutdown integration tests May 7, 2026
@groeneai

groeneai commented May 7, 2026

Copy link
Copy Markdown
Collaborator Author

Updated this PR per the bot review on commit fee59a2.

Change: Replaced wholesale deletion of tests/integration/test_storage_rabbitmq/test_shutdown.py with @pytest.mark.skip decorators on the three flaky tests:

  • test_shutdown_rabbitmq_with_materialized_view
  • test_idle_loop_shutdown_completes_promptly
  • test_rabbitmq_virtual_column_table

Each skip reason references PR #104253 (the source of the directive) and PR #104273 (this fix). The fourth test in the file (test_attach_detach_rabbitmq_with_materialized_view) keeps its existing @pytest.mark.skip decorator for the known shutdown data race.

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.

cc @alexey-milovidov @fm4v @jaapieaapie1

@alexey-milovidov
alexey-milovidov added this pull request to the merge queue May 7, 2026
Merged via the queue into ClickHouse:master with commit a03de93 May 7, 2026
165 checks passed
@robot-clickhouse robot-clickhouse added the pr-synced-to-cloud The PR is synced to the cloud repo label May 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

can be tested Allows running workflows for external contributors 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.

4 participants