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

[v24.2.x] admin: remove throw on unknown self test type in admin_server #22698

Merged

Conversation

vbotbuildovich
Copy link
Collaborator

Backport of PR #21370

For logging purposes, when an unrecognized test type is requested
through the `self_test_start_handler`, it will be abstracted by
the `unknown_check` struct.

(cherry picked from commit aa93f3f)
This commit removes the `throw` statement in
`admin_server::self_test_start_handler()` and replaces it instead
with a `push_back()` to `self_test_request::unknown_checks`.

Eventually, these unknown checks will have a result displayed
when `rpk cluster self-test status` is invoked.

For the self-test, any unrecognized tests will be appended to
`start_test_request::unknown_checks`, so a future result from
`rpk cluster self-test status` will return a message indicating
an unknown test was skipped.

(cherry picked from commit 4e99539)
For testing of the previous change in which unknown test types
are added to `start_test_request::unknown_checks`, instead of
resulting in a `throw`.

(cherry picked from commit 3bac4dc)
`test_type` was not being set in early exit cases for `cloudcheck`.
This would result in longer than expected output (with `IOPS`,
`THROUGHPUT`, `LATENCY` in `rpk cluster self-test status`).

(cherry picked from commit 147d5e9)
@vbotbuildovich vbotbuildovich added this to the v24.2.x-next milestone Aug 2, 2024
@vbotbuildovich vbotbuildovich added the kind/backport PRs targeting a stable branch label Aug 2, 2024
@WillemKauf WillemKauf merged commit de5c5c3 into redpanda-data:v24.2.x Aug 2, 2024
20 checks passed
@@ -321,14 +341,15 @@ struct empty_request
struct start_test_request
: serde::envelope<
start_test_request,
serde::version<0>,
serde::version<1>,
Copy link
Contributor

@WillemKauf WillemKauf Aug 2, 2024

Choose a reason for hiding this comment

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

This serde::version<> needs bumping to serde::version<2>, here and in dev, since serde::version<0> is the version of start_test_request with just diskcheck_opts, netcheck_opts, serde::version<1> is the version with unknown_checks added, and serde::version<2> needs to reflect the most recently added cloudcheck_opts.

@piyushredpanda piyushredpanda modified the milestones: v24.2.x-next, v24.2.3 Aug 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/redpanda kind/backport PRs targeting a stable branch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants