-
Notifications
You must be signed in to change notification settings - Fork 602
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
rptest/simple_connect_test: refactor out mount/unmount tests #25036
rptest/simple_connect_test: refactor out mount/unmount tests #25036
Conversation
Adds a method to make an RPCN counter stream config. Such a stream was already used in a couple places, and the configuration is quite a mouthful to write.
It's nice for test authors to not have to think about writing schema files, so this encapsulates some logic I found in simple_connect_test to create a schema using a tempfile.
Refactors simple_connect_test, pulling out the mount/unmount tests into a separate file, and updating both test files to use new reusable primitives for setting up RPCN and schemas. I also tweaked the structure to move setup to init/setUp methods and to avoid the test-body-as-lambdas pattern, since I found them a bit unnatural to read through. There are no major functional changes to the tests. I wanted to separate these tests because I intend on adding additional tests for mount/unmount functionality.
self.wait_for_migration_states(out_migration_id, ['finished']) | ||
self.wait_partitions_disappear([self.TOPIC_NAME]) | ||
|
||
verifier.wait(progress_timeout_sec=10 * self.SLOW_COMMIT_INTVL_S) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@bashtanov on my local machine, this test ran for 12 minutes. I don't believe this is a result of my changes here -- is this call to verifier.wait(10min)
actually what you want? It appears to be waiting that long, and it doesn't throw on timeout.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
FWIW 12 minute runs seem to be common recently for this test https://buildkite.com/organizations/redpanda/analytics/suites/redpanda-1/tests?branch=dev&period=7days&query=simple_connect_test&commit=Search
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ping @bashtanov
CI test resultstest results on build#61595
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. There seems to be a bug in my test that leads to this timeout, I'll have a look
Thank you! |
Backports Required
Release Notes