-
Notifications
You must be signed in to change notification settings - Fork 24
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
Rerun sonobuoy #352
Rerun sonobuoy #352
Conversation
6dc89dc
to
7011a1b
Compare
7011a1b
to
5c122b7
Compare
1d60324
to
03bf195
Compare
03bf195
to
2cad8f2
Compare
^ rebase to develop |
2cad8f2
to
f4d537d
Compare
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.
Nice job. Can you also show in the testing description what testsys status
shows for a test that went through multiple retries?
agent/test-agent/src/agent.rs
Outdated
let retries = self.client.retries().await.unwrap_or_default(); | ||
let mut retry_count = 0; | ||
while test_results.outcome != Outcome::Pass && retry_count < retries { | ||
info!("Test did not pass, retrying ..."); |
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.
nit: might be a good idea to log the number of retries/retry # we're about to attempt.
f4d537d
to
b8df31d
Compare
Issue number:
Closes #181
Description of changes:
Adds a function
rerun_failed
to theRunner
trait. Afterrun
is called,rerun_failed
will be called up toretries
times orOutcome::Pass
is returned.Testing done:
Forced a sonobuoy test to fail and the test was properly rerun.
Terms of contribution:
By submitting this pull request, I agree that this contribution is dual-licensed under the terms of both the Apache License, version 2.0, and the MIT license.