-
Notifications
You must be signed in to change notification settings - Fork 105
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
execute test suite only if the setup was successful #424
execute test suite only if the setup was successful #424
Conversation
Signed-off-by: Norwin Schnyder <norwin.schnyder+github@gmail.com>
Welcome @snorwin! |
Hi @snorwin. Thanks for your PR. I'm waiting for a kubernetes-sigs member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
Friendly ping for feedback to @harshanarayana and @ShwethaKumbla . |
/ok-to-test |
@harshanarayana thanks for triggering the tests, any chance that this PR is getting reviewed and released soon? |
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
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.
This looks simple and it makes sense to be. But I think it will be impactful for existing users who may rely on that existing behavior. Are there cases where continuing with tests after a setup failure is good (I don't know, just asking).
@vladimirvivien The bug causing tests to run despite setup failures was introduced in v0.4.0 (commit: 70b0316). This caused test pipelines to timeout and generate strange error reports. |
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.
@vladimirvivien I think it should be ok. Like @snorwin mentioned, this was a side effect of changes done in 70b0316.
Which is really recent change. So, making this change will only revert it back to the original behavior of how things were running with a slight change that the cleanup will happen due to graceful termination unlike the Fatal one before.
Signed-off-by: Norwin Schnyder <norwin.schnyder+github@gmail.com>
/lgtm |
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: cpanato, snorwin The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
@cpanato thanks for considering this fix. Is there a chance to get it released soon? |
i will check what we have to be released, but no plans for this week |
What type of PR is this?
/kind bug
What this PR does / why we need it:
Since the last changes ( #362) in the error handling of the setup functions, the test suite is also executed if the setup has failed. This can cause the tests to run to timeout because the expected prerequisites are not met. This PR introduces a check to ensure that the test suite is only executed if the setup was successful, otherwise the function returns with exit code 1 and the finish functions are gracefully executed.
Which issue(s) this PR fixes:
Fixes #423
Special notes for your reviewer:
None
Does this PR introduce a user-facing change?
Additional documentation e.g., Usage docs, etc.: