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
Flaky test Microsoft.AspNetCore.DataProtection.KeyManagement.KeyRingProviderTests.MultipleThreadsForceRefresh
#55227
Comments
That was fast. |
Both I'm a little curious why this didn't fail in several CI runs during the PR itself. |
FWIW, the test is racy, so I'm not that concerned that this could be a product bug. |
As you might expect, it passes 1000X in a row locally. I'll try the mitigations I recommended when I wrote it. If they don't work, we can probably just delete the test. |
...to increase the likelihood of two threads racing to enter the critical section. Fixes dotnet#55227
I added it to do manual validation and kept it when it seemed to be stable. To make it properly stable, we'd have to add a special test hook to let us manipulate lock usage, which doesn't seem worthwhile for the marginal coverage the test provides. Fixes dotnet#55227
* Sleep in MultipleThreadsForceRefresh ...to increase the likelihood of two threads racing to enter the critical section. For #55227 * Also quarantine test
Failing Test(s)
Microsoft.AspNetCore.DataProtection.KeyManagement.KeyRingProviderTests.MultipleThreadsForceRefresh
Error Message
Stacktrace
Build
The text was updated successfully, but these errors were encountered: