Skip to content
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

dt/debug-bundle: Fixed tests #23586

Merged

Conversation

michael-redpanda
Copy link
Contributor

Thanks to some merge ordering schenangians, these tests started failing when #23557 merged after #23508. This change addresses the test bug by properly obtaining the configuration property and handling a situation when the debug bundle directory configuration is empty.

Backports Required

  • none - not a bug fix
  • none - this is a backport
  • none - issue does not exist in previous branches
  • none - papercut/not impactful enough to backport
  • v24.2.x
  • v24.1.x
  • v23.3.x

Release Notes

  • None

Thanks to some merge ordering schenangians, these tests started failing
when redpanda-data#23557 merged after redpanda-data#23508.  This change addresses the test bug by
properly obtaining the configuration property and handling a situation
when the debug bundle directory configuration is empty.

Signed-off-by: Michael Boquard <michael@redpanda.com>
@michael-redpanda michael-redpanda self-assigned this Oct 2, 2024
@michael-redpanda michael-redpanda requested a review from a team October 2, 2024 00:20
Copy link
Member

@oleiman oleiman left a comment

Choose a reason for hiding this comment

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

👍

try:
data_dir = admin.get_cluster_config(node=node,
key="debug_bundle_storage_dir")
data_dir = admin.get_cluster_config(
Copy link
Member

Choose a reason for hiding this comment

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

seems like Admin.get_cluster_config could be massaged a bit to avoid this exception handling noise, but so be it.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yeah fair, I have a follow up coming shortly and will address in there, just wanted to get things 'green' again asap

@piyushredpanda piyushredpanda merged commit 7f63b74 into redpanda-data:dev Oct 2, 2024
11 of 14 checks passed
@BenPope
Copy link
Member

BenPope commented Oct 2, 2024

Thanks, I thought I'd tested it on top of the metadata PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants