Skip to content

Fix E2E smoke test hanging when GitHub VPN is active#5100

Merged
nikolay-1986 merged 1 commit intomainfrom
bug/smoke-test-github-remote-timeout
Apr 2, 2026
Merged

Fix E2E smoke test hanging when GitHub VPN is active#5100
nikolay-1986 merged 1 commit intomainfrom
bug/smoke-test-github-remote-timeout

Conversation

@nikolay-1986
Copy link
Copy Markdown
Collaborator

Problem

When running E2E smoke tests with an active VPN, the test would hang for several seconds. The root cause was that the fake remote URL used github.com as the host, causing GitLens to attempt to connect to the GitHub integration in the background — resulting in network timeouts.

Fix

Changed the fake remote URL in the smoke test fixture from https://github.com/test/test-repo.git to https://example.com/test/test-repo.git. Using a non-GitHub host prevents GitLens from triggering any GitHub integration connection attempts during testing.

Changes

  • tests/e2e/specs/smoke.test.ts — replaced fake remote URL host with example.com

Uses a non-GitHub remote URL in the smoke test fixture to prevent
GitLens from attempting GitHub integration network calls (getDefaultBranch
GraphQL query) during tree loading. The GitHub GraphQL client has no
request timeout — with VPN blocking api.github.com, the call hangs until
the OS TCP timeout (~75s), keeping the grouped view in loading state
indefinitely and causing the Commits view assertion to time out.

Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
@augmentcode
Copy link
Copy Markdown

augmentcode Bot commented Apr 2, 2026

🤖 Augment PR Summary

Summary: Updates the E2E smoke test fixture to use a non-GitHub remote URL so GitLens doesn’t attempt background GitHub integration connections during tests.

Changes:

  • Switched the fake remote host in tests/e2e/specs/smoke.test.ts from github.com to example.com to avoid VPN-induced network timeouts/hangs.

🤖 Was this summary useful? React with 👍 or 👎

Copy link
Copy Markdown

@augmentcode augmentcode Bot left a comment

Choose a reason for hiding this comment

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

Review completed. No suggestions at this time.

Comment augment review to trigger a new review at any time.

@nikolay-1986 nikolay-1986 merged commit 247ebd8 into main Apr 2, 2026
6 checks passed
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.

1 participant