Thanks to visit codestin.com
Credit goes to github.com

Skip to content

test(cli): wait for expected GitHub auth state - #28622

Merged
hugodutka merged 1 commit into
mainfrom
hugo/eng-3285-github-oauth-flake
Aug 26, 2026
Merged

test(cli): wait for expected GitHub auth state#28622
hugodutka merged 1 commit into
mainfrom
hugo/eng-3285-github-oauth-flake

Conversation

@hugodutka

@hugodutka hugodutka commented Aug 26, 2026

Copy link
Copy Markdown
Contributor

The GitHub OAuth server test treated any successful AuthMethods response after restart as ready. In the failing macOS run in CI (described in the linked Linear issue), the response decoded successfully but reported GitHub authentication as disabled, even though startup logged the default GitHub provider configuration.

Wait until the complete GitHub authentication method reaches the expected state before asserting it. This preserves retries for transport readiness while also covering successful but incorrect startup responses.

Closes https://linear.app/codercom/issue/ENG-3285/flake-testserveroauth2githubdefaultprovidernewdeployment

Generated by Coder Agents.

The GitHub OAuth server test accepted the first successful AuthMethods response after restart, even when it still exposed the prior server's semantic state on macOS.

Wait until the full GitHub authentication method matches the expected configuration before asserting it.

Closes https://linear.app/codercom/issue/ENG-3285/flake-testserveroauth2githubdefaultprovidernewdeployment

Generated by Coder Agents.
@linear-code

linear-code Bot commented Aug 26, 2026

Copy link
Copy Markdown

ENG-3285

@hugodutka
hugodutka marked this pull request as ready for review August 26, 2026 08:39
@hugodutka
hugodutka enabled auto-merge (squash) August 26, 2026 08:40
@hugodutka
hugodutka merged commit 9dda7e7 into main Aug 26, 2026
63 of 64 checks passed
@hugodutka
hugodutka deleted the hugo/eng-3285-github-oauth-flake branch August 26, 2026 11:16
@github-actions github-actions Bot locked and limited conversation to collaborators Aug 26, 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.

2 participants