Skip to content

Conversation

hritan
Copy link
Collaborator

@hritan hritan commented Oct 1, 2025

TLDR

While running integration tests in interactive mode, the auth dialog was showing up on start up. To handle this auth dialog and wait till the cli is ready for input is handled in a new method now in test-helper.

Dive Deeper

Reviewer Test Plan

Testing Matrix

🍏 🪟 🐧
npm run
npx
Docker
Podman - -
Seatbelt - -

Linked issues / bugs

Copy link

github-actions bot commented Oct 1, 2025

Size Change: -2 B (0%)

Total Size: 17.5 MB

ℹ️ View Unchanged
Filename Size Change
./bundle/gemini.js 17.5 MB -2 B (0%)
./bundle/sandbox-macos-permissive-closed.sb 1.03 kB 0 B
./bundle/sandbox-macos-permissive-open.sb 830 B 0 B
./bundle/sandbox-macos-permissive-proxied.sb 1.31 kB 0 B
./bundle/sandbox-macos-restrictive-closed.sb 3.29 kB 0 B
./bundle/sandbox-macos-restrictive-open.sb 3.36 kB 0 B
./bundle/sandbox-macos-restrictive-proxied.sb 3.56 kB 0 B

compressed-size-action

@hritan hritan marked this pull request as ready for review October 1, 2025 14:59
@hritan hritan requested a review from a team as a code owner October 1, 2025 14:59
}> {
const { ptyProcess, promise } = this.runInteractive();

const authDialogAppeared = await this.waitForText(
Copy link
Collaborator

Choose a reason for hiding this comment

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

rather than timing out 5 seconds for the auth prompt, lets end early if "Type your message" appears. You could achieve this by customizing waitForText to take multiple strings returning the one that matched or writing a custom waitFor for just this case with the appropriate more complex logic.
that way we avoid a 5 second timeout just for auth.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

changed it.

Copy link
Collaborator

@jacob314 jacob314 left a comment

Choose a reason for hiding this comment

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

lgtm

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.

2 participants