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

Add "-run" filter for antctl check installation command #6333

Merged

Conversation

antoninbas
Copy link
Contributor

To support running a subset only of tests, based on which test names match the provided regex.

We also log stderr when /agnhost connect fails, to assist in troubleshooting. I have seen the antctl check installation command fail in CI, and at the moment it is impossible to troubleshoot.

@antoninbas
Copy link
Contributor Author

cc @kanha-gupta

To support running a subset only of tests, based on which test names
match the provided regex.

We also log stderr when `/agnhost connect` fails, to assist in
troubleshooting. I have seen the `antctl check installation` command
fail in CI, and at the moment it is impossible to troubleshoot.

Signed-off-by: Antonin Bas <[email protected]>
@antoninbas antoninbas force-pushed the antctl-check-installation-add-run-filter branch from 85d7143 to d69175e Compare May 16, 2024 18:08
@antoninbas antoninbas requested a review from tnqn May 16, 2024 18:09
_, stderr, err := check.ExecInPod(ctx, t.client, t.config, t.namespace, clientPodName, container, cmd)
if err != nil {
// We log the contents of stderr here for troubleshooting purposes.
t.Log("/agnhost command failed - stderr: %s", stderr)
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe including the full cmd can also help here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I think it's ok right now because the command is always the same, and we have enough context from the surrounding log lines. If we add more complex commands, we can start logging them as well.

Copy link
Contributor

@luolanzone luolanzone left a comment

Choose a reason for hiding this comment

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

LGTM overall, one minor comment.

Copy link
Member

@tnqn tnqn left a comment

Choose a reason for hiding this comment

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

LGTM

@antoninbas
Copy link
Contributor Author

/skip-all

@antoninbas antoninbas merged commit 8b37d97 into antrea-io:main May 17, 2024
48 of 54 checks passed
@antoninbas antoninbas deleted the antctl-check-installation-add-run-filter branch May 17, 2024 18:46
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.

3 participants