Fix test_storage_rabbitmq timeouts#84234
Merged
pamarcos merged 5 commits intoClickHouse:masterfrom Jul 24, 2025
Merged
Conversation
Increase the deadline of test_failed_connection in case data is consumed.
Sometimes the 240 seconds is not enough:
- https://s3.amazonaws.com/clickhouse-test-reports/PRs/84008/2f687ac0378b5773333dfab111697271a77712b4//integration_tests_aarch64_distributed_plan_4_4/integration_run_test_storage_rabbitmq_test_failed_connection_py_0.log
- https://s3.amazonaws.com/clickhouse-test-reports/PRs/84008/ba8e3a94ef29096dcc3ce1e69db6e1ad548936fc//integration_tests_release_1_4/integration_run_test_storage_rabbitmq_test_failed_connection_py_0.log
- https://s3.amazonaws.com/clickhouse-test-reports/PRs/84008/2f687ac0378b5773333dfab111697271a77712b4//integration_tests_release_1_4/integration_run_test_storage_rabbitmq_test_failed_connection_py_0.log
Even though some other times it takes less than 20 seconds to finish:
- https://s3.amazonaws.com/clickhouse-test-reports/REFs/master/9d200fac5a5bda20729c02296404f429b4bb0ce9//integration_tests_release_3_4/integration_run_test_storage_rabbitmq_test_failed_connection_py_0.log
This will make the tests more resilient
Contributor
|
Workflow [PR], commit [0d56f80] Summary: ❌
|
kssenii
reviewed
Jul 23, 2025
Comment on lines
+81
to
+82
| if result > prev_result: | ||
| deadline += 1 |
Member
There was a problem hiding this comment.
May be also have a hard deadline after which we can no longer increase?
Member
Author
There was a problem hiding this comment.
I didn't set any hard deadline on purpose because ideally, I'd like the deadline to keep increasing as long as there's new data consumed. pytest already has a 900s timeout, so it'll make sure it won't take infinite time
kssenii
approved these changes
Jul 23, 2025
Merged
via the queue into
ClickHouse:master
with commit Jul 24, 2025
4c0c2e8
121 of 123 checks passed
This was referenced Jul 24, 2025
robot-ch-test-poll
added a commit
that referenced
this pull request
Jul 24, 2025
Cherry pick #84234 to 25.3: Fix test_storage_rabbitmq timeouts
robot-clickhouse
added a commit
that referenced
this pull request
Jul 24, 2025
robot-ch-test-poll
added a commit
that referenced
this pull request
Jul 24, 2025
Cherry pick #84234 to 25.4: Fix test_storage_rabbitmq timeouts
robot-clickhouse
added a commit
that referenced
this pull request
Jul 24, 2025
robot-ch-test-poll
added a commit
that referenced
this pull request
Jul 24, 2025
Cherry pick #84234 to 25.5: Fix test_storage_rabbitmq timeouts
robot-clickhouse
added a commit
that referenced
this pull request
Jul 24, 2025
robot-ch-test-poll
added a commit
that referenced
this pull request
Jul 24, 2025
Cherry pick #84234 to 25.6: Fix test_storage_rabbitmq timeouts
robot-clickhouse
added a commit
that referenced
this pull request
Jul 24, 2025
robot-ch-test-poll
added a commit
that referenced
this pull request
Jul 24, 2025
Cherry pick #84234 to 25.7: Fix test_storage_rabbitmq timeouts
robot-clickhouse
added a commit
that referenced
this pull request
Jul 24, 2025
clickhouse-gh bot
added a commit
that referenced
this pull request
Jul 24, 2025
Backport #84234 to 25.7: Fix test_storage_rabbitmq timeouts
clickhouse-gh bot
added a commit
that referenced
this pull request
Jul 24, 2025
Backport #84234 to 25.6: Fix test_storage_rabbitmq timeouts
pamarcos
added a commit
that referenced
this pull request
Jul 25, 2025
Backport #84234 to 25.3: Fix test_storage_rabbitmq timeouts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Refactor test_failed_connection to use a common function.
Increase the deadline of checks in case data is consumed. The 900 secs timeout of pytest.ini applies on top of it as a safety measure, anyway. Sometimes the 240 seconds is not enough:
Even though some other times it takes less than 20 seconds to finish:
Part of #71049
Closes #81221
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