-
Notifications
You must be signed in to change notification settings - Fork 799
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
Use the correct feature flag name (and guard it properly). #2035
Use the correct feature flag name (and guard it properly). #2035
Conversation
@@ -196,7 +196,9 @@ func TestControllerSyncFleet(t *testing.T) { | |||
}) | |||
|
|||
t.Run("gameserverset with different image details", func(t *testing.T) { | |||
assert.NoError(t, utilruntime.ParseFeatures(string(utilruntime.FeaturePlayerTracking)+"=true")) | |||
utilruntime.FeatureTestMutex.Lock() |
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 was the only place in our test code that didn't use the feature test mutex, which could have caused a race condition.
assert.NoError(t, utilruntime.ParseFeatures(string(utilruntime.FeaturePlayerTracking)+"=true")) | ||
utilruntime.FeatureTestMutex.Lock() | ||
defer utilruntime.FeatureTestMutex.Unlock() | ||
assert.NoError(t, utilruntime.ParseFeatures(string(utilruntime.FeatureRollingUpdateOnReady)+"=true")) |
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.
Since this was setting the wrong feature to true, the test was always using the default feature value for rolling update on ready, which made it break when I changed the default.
3bdb532
to
8d951c1
Compare
Build Failed 😱 Build Id: 6d100f85-13d8-46f5-8bc2-a0ea5f5ec5c7 To get permission to view the Cloud Build view, join the agones-discuss Google Group. |
Build Failed 😱 Build Id: f4a7b847-7b8e-4780-8879-f5f1f4860e96 To get permission to view the Cloud Build view, join the agones-discuss Google Group. |
Our helm install is broken again: |
Build Failed 😱 Build Id: 2bb738d5-6a2b-421f-91f8-cd2e50a50450 To get permission to view the Cloud Build view, join the agones-discuss Google Group. |
Tests failed with |
Build Succeeded 👏 Build Id: aa59afa1-ca54-4300-b418-c0d44bc86659 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:
|
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.
Good catch!
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: markmandel, roberthbailey 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 |
What type of PR is this?
/kind bug
What this PR does / Why we need it: Fixes a test case, which was not testing what it was intended to test.
Which issue(s) this PR fixes:
Closes #
Special notes for your reviewer: