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

Flake: List Add/Delete Unit Tests #3627

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
/kind release

What this PR does / Why we need it:

Both unit tests had the same issue - under high load, the workqueue could process the current data set that was batched for updates, resulting in non-deterministic test state.

Moving the sc.Run(...) operation until only the moment where update checks are required resolves this issue.

Which issue(s) this PR fixes:

Fixes #3625
Fixes #3622

Special notes for your reviewer:

Both unit tests had the same issue - under high load, the workqueue
could process the current data set that was batched for updates,
resulting in non-deterministic test state.

Moving the `sc.Run(...)` operation until only the moment where update
checks are required resolves this issue.

Fixes googleforgames#3625
Fixes googleforgames#3622
@markmandel markmandel added the area/tests Unit tests, e2e tests, anything to make sure things don't break label Feb 1, 2024
@github-actions github-actions bot added kind/cleanup Refactoring code, fixing up documentation, etc size/S labels Feb 1, 2024
@markmandel markmandel requested a review from igooch February 1, 2024 05:38
@agones-bot
Copy link
Collaborator

Build Succeeded 👏

Build Id: 048a63f9-c99a-4bba-9f4b-9b4994ca9076

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/3627/head:pr_3627 && git checkout pr_3627
  • 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.39.0-dev-cbbe83f-amd64

@roberthbailey roberthbailey merged commit e0c8057 into googleforgames:main Feb 1, 2024
4 checks passed
@markmandel markmandel deleted the flake/TestSDKServerAddListValue branch February 5, 2024 19:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/tests Unit tests, e2e tests, anything to make sure things don't break kind/cleanup Refactoring code, fixing up documentation, etc size/S
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Flaky: TestSDKServerRemoveListValue Flaky: unit test TestSDKServerAddListValue
4 participants