-
Notifications
You must be signed in to change notification settings - Fork 354
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
workflows: Retry failed test by default in kickstart test GH workflow #5941
workflows: Retry failed test by default in kickstart test GH workflow #5941
Conversation
b40344a
to
ff2871c
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.
Looks good to me & a really good idea, thanks! :)
More and more often we are running the whole kickstart test suite (or big set of tests) on a PR, for example: /kickstart-test --testtype network /kickstart-test --skip-testtypes none There is quite a big chance of hitting a flake, so retry failing tests by default so there is no need to check if the failures are flakes or re-run the failed tests manually. The setting corresponds to the '--retry' launcher option.
ff2871c
to
b597a48
Compare
/kickstart-test --testtype smoke |
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.
How many times will it retry?
Let's say we have a situation where kickstart tests fail in an expected way, and we just need to wait for a container refresh or something to move on with testing. Will it retry forever eating resources?
@KKoukiou it retries a failing test one time. Tests have default timeout 30mins (https://github.com/rhinstaller/kickstart-tests/blob/e53f343ede308bf5893e8cd8f769fabd6886ae58/functions.sh#L464) So the run should take max ~1.2 h - in case of a test timing out twice. |
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.
Thanks for this!
More and more often we are running the whole kickstart test suite (or big set of tests) on a PR, for example:
/kickstart-test --testtype network
/kickstart-test --skip-testtypes none
There is quite a big chance of hitting a flake, so retry failing tests by default so there is no need to check if the failures are flakes or re-run the failed tests manually.