Skip to content
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

Race Flake in TestControllerSyncFleetAutoscaler() #3260

Conversation

markmandel
Copy link
Member

What type of PR is this?

Uncomment only one /kind <> line, press enter to put that in a new line, and remove leading whitespace from that line:

/kind breaking

/kind bug

/kind cleanup
/kind documentation
/kind feature
/kind hotfix

What this PR does / Why we need it:

Weird that this has more consistently failed with the Go race condition checker failing on this test recently -- but it's a test we wrote a while ago!

The flake was that the test added a Reactor to the mock after the Informer system had been started - which caused a race condition inside the Fake client system as different systems interacted with the mock.

Changing the order fixes the issue!

Which issue(s) this PR fixes:

Helps #3211 move forward.

Special notes for your reviewer:

N/A

Weird that this has more consistently failed with the Go race condition
checker failing on this test recently -- but it's a test we wrote a
while ago!

The flake was that the test added a Reactor to the mock _after_ the
Informer system had been started - which caused a race condition inside
the Fake client system as different systems interacted with the mock.

Changing the order fixes the issue!
@markmandel markmandel added kind/bug These are bugs. area/tests Unit tests, e2e tests, anything to make sure things don't break labels Jul 12, 2023
@markmandel markmandel enabled auto-merge (squash) July 12, 2023 17:46
@google-oss-prow
Copy link

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: gongmax, igooch, markmandel, roberthbailey, zmerlynn

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:
  • OWNERS [markmandel,roberthbailey]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@agones-bot
Copy link
Collaborator

Build Succeeded 👏

Build Id: e1e4cebd-abeb-4f73-b565-526cd7c9933d

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:

  • git fetch https://github.com/googleforgames/agones.git pull/3260/head:pr_3260 && git checkout pr_3260
  • helm install agones ./install/helm/agones --namespace agones-system --set agones.image.registry=us-docker.pkg.dev/agones-images/ci --set agones.image.tag=1.34.0-dev-d279762-amd64

@markmandel markmandel merged commit d034f02 into googleforgames:main Jul 12, 2023
@markmandel markmandel deleted the flaky/TestControllerSyncFleetAutoscaler branch July 12, 2023 18:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved area/tests Unit tests, e2e tests, anything to make sure things don't break kind/bug These are bugs. lgtm size/XS
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants