-
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
Consolidate Version
into a single constant
#2
Labels
good first issue
These are great first issues. If you are looking for a place to start, start here!
kind/cleanup
Refactoring code, fixing up documentation, etc
kind/design
Proposal discussing new features / fixes and how they should be implemented
Milestone
Comments
markmandel
added
good first issue
These are great first issues. If you are looking for a place to start, start here!
kind/cleanup
Refactoring code, fixing up documentation, etc
kind/design
Proposal discussing new features / fixes and how they should be implemented
labels
Dec 7, 2017
2 tasks
zmerlynn
added a commit
to zmerlynn/agones
that referenced
this issue
Apr 24, 2023
When the fleet tests flake, they take out the rest of the test suite: ``` Step googleforgames#24 - "submit-e2e-test-cloud-build": gke-autopilot-1.24: Step googleforgames#2 - "e2e-stable": VERBOSE: --- FAIL: TestFleetScaleUpAllocateEditAndScaleDownToZero (163.39s) Step googleforgames#24 - "submit-e2e-test-cloud-build": gke-autopilot-1.24: Step googleforgames#2 - "e2e-stable": VERBOSE: panic: runtime error: index out of range [0] with length 0 [recovered] Step googleforgames#24 - "submit-e2e-test-cloud-build": gke-autopilot-1.24: Step googleforgames#2 - "e2e-stable": VERBOSE: panic: runtime error: index out of range [0] with length 0 ``` Looking at this file, it's easy to see why: if there's every an error from any of these asserts, we just continue with the test and assume the fleet is valid. But it's not.
zmerlynn
added a commit
to zmerlynn/agones
that referenced
this issue
Apr 24, 2023
When the fleet tests flake, they take out the rest of the test suite: ``` Step googleforgames#24 - "submit-e2e-test-cloud-build": gke-autopilot-1.24: Step googleforgames#2 - "e2e-stable": VERBOSE: --- FAIL: TestFleetScaleUpAllocateEditAndScaleDownToZero (163.39s) Step googleforgames#24 - "submit-e2e-test-cloud-build": gke-autopilot-1.24: Step googleforgames#2 - "e2e-stable": VERBOSE: panic: runtime error: index out of range [0] with length 0 [recovered] Step googleforgames#24 - "submit-e2e-test-cloud-build": gke-autopilot-1.24: Step googleforgames#2 - "e2e-stable": VERBOSE: panic: runtime error: index out of range [0] with length 0 ``` Looking at this file, it's easy to see why: if there's every an error from any of these asserts, we just continue with the test and assume the fleet is valid. But it's not.
zmerlynn
added a commit
that referenced
this issue
Apr 24, 2023
* require.NoError in fleet tests instead of continuing When the fleet tests flake, they take out the rest of the test suite: ``` Step #24 - "submit-e2e-test-cloud-build": gke-autopilot-1.24: Step #2 - "e2e-stable": VERBOSE: --- FAIL: TestFleetScaleUpAllocateEditAndScaleDownToZero (163.39s) Step #24 - "submit-e2e-test-cloud-build": gke-autopilot-1.24: Step #2 - "e2e-stable": VERBOSE: panic: runtime error: index out of range [0] with length 0 [recovered] Step #24 - "submit-e2e-test-cloud-build": gke-autopilot-1.24: Step #2 - "e2e-stable": VERBOSE: panic: runtime error: index out of range [0] with length 0 ``` Looking at this file, it's easy to see why: if there's every an error from any of these asserts, we just continue with the test and assume the fleet is valid. But it's not.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
good first issue
These are great first issues. If you are looking for a place to start, start here!
kind/cleanup
Refactoring code, fixing up documentation, etc
kind/design
Proposal discussing new features / fixes and how they should be implemented
There are several instances of a
Version
around the go code. It would be good to refactor this into a single constant that is shared across each binary (controller, sidecar).The text was updated successfully, but these errors were encountered: