Skip to content

Keep the silent sign-in test out of the developer's keyring - #338

Merged
monorkin merged 1 commit into
mainfrom
hermetic-setup-signin-test
Aug 26, 2026
Merged

Keep the silent sign-in test out of the developer's keyring#338
monorkin merged 1 commit into
mainfrom
hermetic-setup-signin-test

Conversation

@monorkin

Copy link
Copy Markdown
Collaborator

TestSetupSilentSuccessKeepsSignInInstructions stubs loginInteractively and asserts the sign-in instructions surface during a silent setup — but it builds its auth.Manager without HEY_NO_KEYRING=1, so the manager consults the real system keyring first. On a developer machine that's signed in to HEY, the wizard concludes there's nothing to do, never calls the stub, and the test fails; in CI, with no keyring, it passes. This made make release fail its preflight on any signed-in machine.

One line (plus the why): HEY_NO_KEYRING=1, confining the test to its temp dir like every other auth-touching test in the package.

TestSetupSilentSuccessKeepsSignInInstructions stubs the interactive login
and asserts its instructions surface, but auth.NewManager consulted the
real system keyring first. On a machine where the developer is signed in
to HEY the wizard skips the stubbed login and the test fails; in CI, with
no keyring, it passes. HEY_NO_KEYRING=1 confines it to its temp dir like
every other auth-touching test.
Copilot AI balanced review requested due to automatic review settings August 26, 2026 11:26
@monorkin
monorkin requested a review from a team as a code owner August 26, 2026 11:26

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@monorkin
monorkin merged commit 7b32538 into main Aug 26, 2026
23 checks passed
@monorkin
monorkin deleted the hermetic-setup-signin-test branch August 26, 2026 11:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants