-
Notifications
You must be signed in to change notification settings - Fork 17
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 TestCLIAuthenticate #730
Labels
bug
Something isn't working
Comments
Cc @3v1n0 |
Mh it's quite weird though, since the authentication has started and in theory we had switch the focus to the auth view... Ah, ok I see |
These are similar too:
For some reason the |
3v1n0
added a commit
to 3v1n0/authd
that referenced
this issue
Mar 18, 2025
On authModesReceived{} message we were aggressively selecting the first authentication mode, despite the authentication stage was not being focused, and this could have lead to troubles because a previously queued stage change could then interfere with the request, like: - Request brokers and queue stage change to auth mode selection when done - Brokers received: automatic broker selection request is queued - Authentication starts - Stage change that was previously queued finally happens - We end up being back to auth mode selection Also: https://github.com/ubuntu/authd/actions/runs/13813999841/job/38797674173 This has been, mostly, highlighted by the change to request the stage change via messages (previous commit), but we could have been wrong with the order of the subsequent other events anyways. So, to prevent this to happen and to ensure that we follow the policy that a stage doesn't do anything until it has the focus, delay the automatic broker selection until the authentication selection stage is actually focused. See also commit 5133a87 that had similar rationale and also related to the authentication selection procedure. Closes: ubuntu#730
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
See https://github.com/ubuntu/authd/actions/runs/12791887605/job/35661039860?pr=729:
The text was updated successfully, but these errors were encountered: