-
Notifications
You must be signed in to change notification settings - Fork 885
flake: TestProxyRegisterDeregister #14961
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
Comments
I've just seen another flake related to not being licensed
at https://github.com/coder/coder/actions/runs/11174989245/job/31065628852 Perhaps this isn't related to |
It looks like we kick off So, at that start of a coderdent test, we call update like 4 times, twice before the license is actually added. If these race with the 2 additional times after the license is added then we can end up without entitlements at the end. |
fixes #14961 Adding the license and updating entitlements is flaky, especially at the start of our `coderdent` testing because, while the actual modifications to the `entitlements.Set` were threadsafe, we could have multiple goroutines reading from the database and writing to the set, so we could end up writing stale data. This enforces serialization on updates, so that if you modify the database and kick off an update, you know the state of the `Set` is at least as fresh as your database update.
seen here: https://github.com/coder/coder/actions/runs/11161236686/job/31023381497
looks like registration is racing license entitlements
The text was updated successfully, but these errors were encountered: