-
Notifications
You must be signed in to change notification settings - Fork 61
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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
test: fix flaky tests by introducing komega #252
Conversation
Signed-off-by: Erik Godding Boye <egboye@gmail.com>
/test pull-trust-manager-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.
/lgtm
/approve
I wasn't aware of komega but it definitely looks like it makes things simpler! Even if this doesn't fix flakes I feel like it makes things easier to reason about.
I like Ginkgo/Gomega, but I know the maintainers are not big fans.
I should expand on this: I feel personally that these tools make the tests harder to understand. I've also been burned by the big changes introduced in Ginkgo v2 which meant we had (and have) to do lots of work to port to the new test format.
Specifically, the flakiness of these tests could be caused by many things but I find the flow so confusing with ginkgo that I can't be sure of where the issue is actually introduced.
I'd prefer plain old go tests - I've never really felt like ginkgo adds much for me personally. But if we can get these tests to be non-flaky with ginkgo, I see no reason to rush to move away from it!
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: SgtCoDFish 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 |
/cherrypick release-0.7 Required to cherry-pick #260. |
@erikgb: #252 failed to apply on top of branch "release-0.7":
In response to this:
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/test-infra repository. |
Created manual cherry-pick PR: #264 |
This change will hopefully fix the flaky integration tests that have been annoying me in several PRs. I like Ginkgo/Gomega, but I know the maintainers are not big fans. 馃榿 But as long as we are using Ginkgo/Gomega, I think komega (part of controller-runtime) makes the code more compact and avoids attempts on outdated test resource updates.
/cc @inteon @SgtCoDFish