Skip to content

test: deflake external bearer auth token tests on Windows#16604

Merged
bolinfest merged 1 commit intomainfrom
pr16604
Apr 2, 2026
Merged

test: deflake external bearer auth token tests on Windows#16604
bolinfest merged 1 commit intomainfrom
pr16604

Conversation

@bolinfest
Copy link
Copy Markdown
Collaborator

@bolinfest bolinfest commented Apr 2, 2026

Why

external_bearer_only_auth_manager_uses_cached_provider_token can fail on Windows when cold powershell.exe startup exceeds the provider-auth helper's 1s timeout. When that happens, AuthManager::resolve_external_api_key_auth() logs the resolver error and returns None, which is exactly the assertion failure from the flake.

What

  • Invoke powershell.exe explicitly in the Windows provider-auth test helpers in login/src/auth/auth_tests.rs.
  • Increase the helper timeout to 10_000 ms and document why that slack exists.

Verification

  • cargo test -p codex-login

@bolinfest bolinfest merged commit 2146e1b into main Apr 2, 2026
22 checks passed
@bolinfest bolinfest deleted the pr16604 branch April 2, 2026 19:12
@github-actions github-actions bot locked and limited conversation to collaborators Apr 2, 2026
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.

1 participant