-
Notifications
You must be signed in to change notification settings - Fork 813
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
Move ResetMetricsOnDelete to Stable #3518
Move ResetMetricsOnDelete to Stable #3518
Conversation
Build Failed 😱 Build Id: adf1dced-4832-40a6-8880-f98ca0d29b13 To get permission to view the Cloud Build view, join the agones-discuss Google Group. |
General approach looks okay at first glance - lemme know if you need a second pair of eyes. |
We have two tests failing and two passing in TestControllerFleetReplicasCount(t *testing.T) |
@@ -292,7 +291,6 @@ func TestControllerGameServersTotal(t *testing.T) { | |||
func TestControllerFleetReplicasCount(t *testing.T) { | |||
runtime.FeatureTestMutex.Lock() | |||
defer runtime.FeatureTestMutex.Unlock() | |||
require.NoError(t, runtime.ParseFeatures(fmt.Sprintf("%s=false", runtime.FeatureResetMetricsOnDelete))) |
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 test was only going to pass when the false was false, the entire test can be deleted.
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.
I had the same thought, but I was uncertain about the update in the 'controller.go' file.
@@ -399,7 +396,6 @@ func TestControllerFleetReplicasCount_ResetMetricsOnDelete(t *testing.T) { | |||
func TestControllerFleetAutoScalerState(t *testing.T) { | |||
runtime.FeatureTestMutex.Lock() | |||
defer runtime.FeatureTestMutex.Unlock() | |||
require.NoError(t, runtime.ParseFeatures(fmt.Sprintf("%s=false", runtime.FeatureResetMetricsOnDelete))) |
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 test was only going to pass when the false was false, the entire test can be deleted.
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.
I have deleted the functions.
Build Succeeded 👏 Build Id: 76dc9d7d-197d-4b80-ab33-9b305f8313b9 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.
Looks good!
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: Kalaiselvi84, 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 |
What type of PR is this?
What this PR does / Why we need it:
Which issue(s) this PR fixes:
Closes #3512
Special notes for your reviewer: