test(e2e): add missing poll intervals to wait.For calls#7285
Conversation
Three wait.For calls in test/e2e/funcs/feature.go were missing wait.WithInterval(DefaultPollInterval), unlike all other wait.For calls in the file. Without an explicit interval, these calls use the e2e-framework default polling behavior, which can contribute to flaky test results. Add the missing interval option to ClaimUnderTestMustNotChangeWithin, CompositeUnderTestMustNotChangeWithin, and CompositeResourceMustMatchWithin for consistency. Signed-off-by: Moritz Röseler <[email protected]>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughAdded explicit polling interval configuration to three wait-based test functions. The Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes 🚥 Pre-merge checks | ✅ 4✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
Crossplane does not currently have enough maintainers to address every issue and pull request. This pull request has been automatically marked as |
|
So sorry @moeritze, I noticed this PR today when the stalebot closed it. When coming to check it, I noticed it look quite familiar to what #7547 was also solving, which we did review and are ready to merge. To be fair and give you credit for building this solution as well, I've gone ahead and amended the commit in that PR so that you are listed as a co-author too as described in #7547 (review). When that is merged, both you and @amarkdotdev will have credit for the contribution. Sorry again that we did not get to this PR and hopefully you'll still feel encouraged to contribute again in the future! 🙇♂️ |
Description of your changes
Three
wait.Forcalls intest/e2e/funcs/feature.gowere missingwait.WithInterval(DefaultPollInterval), unlike all otherwait.Forcalls inthe file. Without an explicit interval, these calls use the e2e-framework's
default polling behavior, which is inconsistent and can contribute to flaky test
results.
This adds the missing interval option to:
ClaimUnderTestMustNotChangeWithinCompositeUnderTestMustNotChangeWithinCompositeResourceMustMatchWithinRefs #5671
I have:
./nix.sh flake checkto ensure this PR is ready for review.Added or updated unit tests.Added or updated e2e tests.Linked a PR or a docs tracking issue to document this change.Addedbackport release-x.ylabels to auto-backport this PR.Followed the API promotion workflow if this PR introduces, removes, or promotes an API.