-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
🐛 Increase timeout for TestClusterResourceSetReconciler test #10868
🐛 Increase timeout for TestClusterResourceSetReconciler test #10868
Conversation
Signed-off-by: Sunnatillo <sunnat.samadov@est.tech>
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Hi @Sunnatillo. 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. |
/ok-to-test I'm not opposed to this change, but I have created also #10869 to reduce the impact of exponential backoff on the time the controller takes to reach a stable state + reduce noise in the logs |
/hold I would like to know/test if fabrizio's fix makes this one unnecessary |
Most flikely it will help, I will test and confirm after PR gets merged. |
I have tested locally, the test is failing even after Fabirizio's fix, I ran 50 consecutive tests and it failed after 15-16 I think. it might have decreased the occurrence, But I cannot say for sure before we merge it. I have also tested Sunnat's fix, it passes 50 consecutive runs. I would say we take in both PRs. |
Thank you for testing. I also tested with 200 count. The result is same. |
Maybe we should then decrease the number of clusters. Usually unit tests that take more than a few milliseconds are already bad (we need quick feedback loops when running all unit tests of a repository). Let's say a few seconds are fine because we're talking about controllers with backoffs here. Now we would be up to 2m. This is really really bad Also really strange that we need more than a minute in some cases with Fabrizio's fix to be honest |
Did you mean to decrease the number of cluster-api/exp/addons/internal/controllers/clusterresourceset_controller_test.go Line 1034 in 8aa545a
I tried changing it from 10 to 5 and running tests again, but it was still failing.
|
It's fine. I was looking into Fabrizio's PR with Fabrizio. We'll make some more improvements (@fabriziopandini will share details) |
Just a quick update (for more details please see the comments on #10869) Overall we feel confident that we fixed the issue in a way that we don't have to increase the timeout anymore. Let's monitor the test for 1-2 days and then close this PR if the test is not flaky anymore (feel free to run local tests again with the latest version of Fabrizio's PR / CAPI main) |
/close |
@Sunnatillo: Closed this PR. 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-sigs/prow repository. |
What this PR does / why we need it:
This PR fixes the flaky test: TestClusterResourceSetReconciler/Should_handle_applying_multiple_ClusterResourceSets_concurrently_to_the_same_cluster. This test was failing due to timeout issue:
Increasing timeout helped to solve the issue. The objects will be eventually created if the timeout is bit longer.
Which issue(s) this PR fixes (optional, in
fixes #<issue number>(, fixes #<issue_number>, ...)
format, will close the issue(s) when PR gets merged):Fixes: #10854