-
Notifications
You must be signed in to change notification settings - Fork 553
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: clean cloudv2 cluster topics in tearDown()
#16049
Conversation
5c0ec17
to
337732a
Compare
new failures in https://buildkite.com/redpanda/redpanda/builds/43623#018cf128-e5d0-43bc-bd6f-e00c697b9d7d:
new failures in https://buildkite.com/redpanda/redpanda/builds/43623#018cf128-e5c5-4405-a1b4-4e3a1ea3253f:
new failures in https://buildkite.com/redpanda/redpanda/builds/43623#018cf128-e5c9-49e1-b95c-e82ca0cc6223:
new failures in https://buildkite.com/redpanda/redpanda/builds/43623#018cf13a-2c75-4d71-bab6-5c21940c70b1:
new failures in https://buildkite.com/redpanda/redpanda/builds/43623#018cf13a-2c6e-42b1-98ab-30609c1f3a51:
new failures in https://buildkite.com/redpanda/redpanda/builds/43623#018cf13a-2c72-42b3-b919-c64d3fb41049:
|
337732a
to
9f667ec
Compare
9f667ec is just a rebase with latest on |
8ddafbe
to
56ba3ee
Compare
ducktape was retried in https://buildkite.com/redpanda/redpanda/builds/43726#018cfee3-7ebb-4c4e-bdee-c0964ee9a9f6 |
56ba3ee
to
4381b77
Compare
tests/rptest/services/redpanda.py
Outdated
rpk = RpkTool(self) | ||
topics = rpk.list_topics() | ||
deletable = [x for x in topics if not x.startswith('_')] | ||
self.logger.debug(f'found {len(deletable)} topics to delete') |
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.
I think it's worth listing them.
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.
I would even list some high level stats, but that's an overkill.
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.
Is there a way to do rpk cluster topic delete -r ".*"
in our wrapper which does the right thing?
So we delete on teardown, I'm wondering what we should do before each test? Should we look for topics without |
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.
All good. One request, Let us check if topics exists on startup/teardown and clean if test_context/parallel
is < 2
tests/rptest/services/redpanda.py
Outdated
rpk = RpkTool(self) | ||
topics = rpk.list_topics() | ||
deletable = [x for x in topics if not x.startswith('_')] | ||
self.logger.debug(f'found {len(deletable)} topics to delete') |
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.
I would even list some high level stats, but that's an overkill.
e50633f
to
46058b2
Compare
putting to draft to make adjustments based on feedback |
46058b2
to
ab93e9d
Compare
ab93e9d
to
3451fc7
Compare
ready for review. i have example output in description that interestingly shows leftover topic that was cleaned up from the test_common_workload() test. |
related issue: https://github.com/redpanda-data/cloudv2/issues/11563
Have
OMBValidationTest
andHighThroughputTest
clean cluster intearDown()
andstartup()
by deleting topics that may have been leftover from a test case. Theclean_cluster()
method can be added to later to clean more things we want to ensure is gone before the next test case runs.Since
clean_cluster()
simply deletes all topics, it should only be called if there are no other tests running at the same time expecting topics to be there.example run:
output:
Backports Required
Release Notes