-
Notifications
You must be signed in to change notification settings - Fork 370
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
Add "-run" filter for antctl check installation command #6333
Conversation
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]>
Signed-off-by: Antonin Bas <[email protected]>
85d7143
to
d69175e
Compare
_, 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) |
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.
Maybe including the full cmd can also help here?
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 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.
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.
LGTM overall, one minor comment.
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.
LGTM
/skip-all |
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 theantctl check installation
command fail in CI, and at the moment it is impossible to troubleshoot.