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

Fix race on TestFIDO2Login/NOK_cancel_after_PIN #12238

Merged
merged 1 commit into from
Apr 26, 2022

Conversation

codingllama
Copy link
Contributor

Fixes a rather exoteric race condition where a goroutine beats an already-cancelled context in a select.

The select in question sits on selectDevice / fido2.go#L729. It is not an error for the select to go either way, instead this is a failure of test setup. The fix is simple: we use authenticators that do have resident credentials for the test, so their Assertion operations block waiting for user interaction, eliminating the race in the test in question.

Example flaky execution: https://console.cloud.google.com/cloud-build/builds/ceaa0674-db49-444b-b059-a17e01b0328f?project=ci-account

#9160

@codingllama codingllama requested a review from rosstimothy April 26, 2022 17:09
@github-actions github-actions bot requested review from hatched and zmb3 April 26, 2022 17:10
@codingllama codingllama force-pushed the codingllama/fido2login-flaky branch from 4e1dc07 to d151583 Compare April 26, 2022 20:31
@codingllama codingllama enabled auto-merge (squash) April 26, 2022 20:33
@codingllama codingllama merged commit ba1a74c into master Apr 26, 2022
@codingllama codingllama deleted the codingllama/fido2login-flaky branch April 26, 2022 21:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants