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

connectivity: add --collect-sysdump-on-failure flag #1228

Merged
merged 2 commits into from
Nov 23, 2022

Conversation

jibi
Copy link
Member

@jibi jibi commented Nov 23, 2022

which allows to collect, whenever a test fails, a more significant
sysdump before the CLI cleans up any state.

To allow the same level of configurability, the "connectivity test"
command now supports the same flags used by the "sysdump" command.
These flags are all prefixed by "--sysdump-".

jibi added 2 commits November 23, 2022 16:12
which allows to collect, whenever a test fails, a more significant
sysdump before the CLI cleans up any state.

To allow the same level of configurability, the "connectivity test"
command now supports the same flags used by the "sysdump" command.
These flags are all prefixed by "--sysdump-".

Signed-off-by: Gilberto Bertin <[email protected]>
Extract this logic into initSysdumpFlags and make it generic so that it
can be used both by internal/cli/cmd/sysdump.go and
internal/cli/cmd/connectivity.go.

Signed-off-by: Gilberto Bertin <[email protected]>
@jibi jibi added area/CI Continuous Integration testing issue or flake area/sysdump labels Nov 23, 2022
@jibi jibi requested a review from a team as a code owner November 23, 2022 15:14
@jibi jibi requested a review from joamaki November 23, 2022 15:14
@jibi jibi temporarily deployed to ci November 23, 2022 15:14 Inactive
internal/cli/cmd/connectivity.go Show resolved Hide resolved
@jibi jibi added the ready-to-merge This PR has passed all tests and received consensus from code owners to merge. label Nov 23, 2022
@maintainer-s-little-helper maintainer-s-little-helper bot removed the ready-to-merge This PR has passed all tests and received consensus from code owners to merge. label Nov 23, 2022
Copy link
Contributor

@michi-covalent michi-covalent left a comment

Choose a reason for hiding this comment

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

sysdump ftw

@michi-covalent michi-covalent merged commit 61770f0 into master Nov 23, 2022
@michi-covalent michi-covalent deleted the pr/jibi/sysdump-on-failure branch November 23, 2022 19:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/CI Continuous Integration testing issue or flake area/sysdump ci/hyperjump
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants