-
Notifications
You must be signed in to change notification settings - Fork 825
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
Flaky: TestAllocatorAllocatePriority #3280
Flaky: TestAllocatorAllocatePriority #3280
Conversation
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.
Interesting finding!
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: gongmax, markmandel 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 |
Just happened to happen to me on PR #3279! |
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 wasn't the test that flaked, it was func TestAllocatorAllocatePriority
. Does this lock need to be added to all the tests?
Or should this be added to func TestAllocatorApplyAllocationToGameServerCountsListsActions
after t.Parallel
instead of processing for each test case?
runtime.FeatureTestMutex.Lock()
defer runtime.FeatureTestMutex.Unlock()
assert.NoError(t, runtime.ParseFeatures(string(runtime.FeatureCountsAndLists)+"=true"))
You raise a really good point! That's what I get for moving too fast. I'll add it to the other tests this could possibly affect in this file. |
Fix a flake that would see a feature flag flip _just_ between `ApplyDefaults()` and `Validate()` -- which is more impressive than anything else. ``` --- FAIL: TestAllocatorAllocatePriority (1.18s) allocator_test.go:169: Error Trace: /go/src/agones.dev/agones/pkg/gameserverallocations/allocator_test.go:169 /go/src/agones.dev/agones/pkg/gameserverallocations/allocator_test.go:176 Error: "[spec.selectors[0].counters: Forbidden: Feature CountsAndLists must be enabled spec.selectors[0].lists: Forbidden: Feature CountsAndLists must be enabled]" should have 0 item(s), but has 2 Test: TestAllocatorAllocatePriority ```
25dfb80
to
8a923ae
Compare
New changes are detected. LGTM label has been removed. |
Build Failed 😱 Build Id: 69f98d7e-683c-4e8a-8d94-43762413eaf5 To get permission to view the Cloud Build view, join the agones-discuss Google Group. |
Build Succeeded 👏 Build Id: b5876326-b6dd-4b1f-9f0d-578b250406ea 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:
|
What type of PR is this?
/kind cleanup
What this PR does / Why we need it:
Fix a flake that would see a feature flag flip just between
ApplyDefaults()
andValidate()
-- which is more impressive than anything else.Which issue(s) this PR fixes:
N/A
Special notes for your reviewer: