cleanup(e2e): Scale back autoscaler timeout.#4312
cleanup(e2e): Scale back autoscaler timeout.#4312lacroixthomas merged 2 commits intoagones-dev:mainfrom
Conversation
Since a unit test in Go cannot pass 10m (there seems to be no setting for this!) the timeout of 10m is not useful for Autopilot clusters since it will cause a timeout panic if anything times out by 10m, which also stops the e2e test runner from rerunning the tests. So some minor cleanup on TestAllocatorAfterDeleteReplica since that tends to fail the most, and updated timeout for Autopilot clusters.
There was a problem hiding this comment.
Pull Request Overview
This PR reduces the autoscaler timeout for Autopilot clusters from 10 minutes to 8 minutes to prevent test timeouts and stack trace dumps, since Go unit tests cannot exceed 10 minutes. The change also refactors error handling in the TestAllocatorAfterDeleteReplica test to use require.NoError instead of assert.Nil.
- Reduced WaitForState timeout for GKE Autopilot from 10 minutes to 8 minutes
- Improved error handling in TestAllocatorAfterDeleteReplica test
Reviewed Changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| test/e2e/framework/framework.go | Updated Autopilot cluster timeout from 10m to 8m with expanded comment explaining the constraint |
| test/e2e/allocator/pod_termination_test.go | Replaced assert.Nil with require.NoError for fleet creation error handling |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
|
Build Succeeded 🥳 Build Id: ecdc309c-5d91-4c24-9c96-7c07f9ebb3f9 The following development artifacts have been built, and will exist for the next 30 days:
A preview of the website (the last 30 builds are retained): To install this version: |
|
LGTM |
|
Build Failed 😭 Build Id: 4612b775-9717-4a04-a8bb-771a08fcb7f3 Status: FAILURE To get permission to view the Cloud Build view, join the agones-discuss Google Group. |
|
/gcbrun |
|
This is flaky too, but that's a different issue. |
|
Build Succeeded 🥳 Build Id: e3d82d65-108f-4dd1-8dfa-e5ec7f7b1fe6 The following development artifacts have been built, and will exist for the next 30 days:
A preview of the website (the last 30 builds are retained): To install this version: |
Since a unit test in Go cannot pass 10m (there seems to be no setting for this!) the timeout of 10m is not useful for Autopilot clusters since it will cause a timeout panic if anything times out by 10m, which also stops the e2e test runner from rerunning the tests. So some minor cleanup on TestAllocatorAfterDeleteReplica since that tends to fail the most, and updated timeout for Autopilot clusters. Co-authored-by: Thomas Lacroix <thomas.lacroix@ubisoft.com>
What type of PR is this?
/kind cleanup
What this PR does / Why we need it:
Since a unit test in Go cannot pass 10m (there seems to be no setting for this!) the timeout of 10m is not useful for Autopilot clusters since it will cause a timeout panic if anything times out by 10m, which also stops the e2e test runner from rerunning the tests.
So some minor cleanup on TestAllocatorAfterDeleteReplica since that tends to fail the most, and updated timeout for Autopilot clusters.
Which issue(s) this PR fixes:
N/A
Special notes for your reviewer:
N/A