Skip to content

fix: fix flake in TestAppHealth_Healthy #13607

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

Merged
merged 1 commit into from
Jun 20, 2024

Conversation

spikecurtis
Copy link
Contributor

@spikecurtis spikecurtis commented Jun 20, 2024

Fixes flake seen here: https://github.com/coder/coder/actions/runs/9592039958/job/26449942775

Maps are unsafe reading/writing concurrently, even to different keys, although almost certainly not a collision or rebalance with just 2 keys. I just moved it two variables as this is fewer lines than protecting with a mutex.

Copy link
Contributor Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @spikecurtis and the rest of your teammates on Graphite Graphite

@spikecurtis spikecurtis requested review from johnstcn and mafredri June 20, 2024 07:48
@spikecurtis spikecurtis marked this pull request as ready for review June 20, 2024 07:48
Copy link
Contributor Author

spikecurtis commented Jun 20, 2024

Merge activity

@spikecurtis spikecurtis merged commit 8923ce5 into main Jun 20, 2024
31 checks passed
@spikecurtis spikecurtis deleted the spike/flake-TestAppHealth_Healthy branch June 20, 2024 08:02
@github-actions github-actions bot locked and limited conversation to collaborators Jun 20, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants