Skip to content

Increase timeouts for the smoke tests#320130

Merged
alexdima merged 3 commits into
mainfrom
agents/smoke-tests-log-investigation
Jun 5, 2026
Merged

Increase timeouts for the smoke tests#320130
alexdima merged 3 commits into
mainfrom
agents/smoke-tests-log-investigation

Conversation

@alexdima
Copy link
Copy Markdown
Member

@alexdima alexdima commented Jun 5, 2026

No description provided.

alexdima and others added 2 commits June 5, 2026 15:56
The Copilot CLI smoke tests were failing because overrideAuthType was
not set, causing the CLI SDK to use HMAC auth (the default) against the
mock LLM server. The mock server cannot validate HMAC signatures, so
/models calls returned 401, model fetching failed, and prompt rendering
threw "Unexpected generated prompt structure".

Add the missing ['github.copilot.advanced.debug.overrideAuthType', '"token"']
setting to both chatSessions.test.ts and copilotCli.test.ts (matching
what agentsWindow.test.ts already does), and remove the it.skip that
was added as a temporary workaround.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings June 5, 2026 15:52
@alexdima alexdima enabled auto-merge (squash) June 5, 2026 15:53
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR adjusts smoke-test configuration to make Copilot CLI / Chat Sessions flows more reliable under slow startup conditions, primarily by increasing timeouts and ensuring the mock server can be called without HMAC validation.

Changes:

  • Increased smoke test timeouts for Chat Sessions and for command availability in the smoke-test extension host.
  • Updated smoke test user settings to force token auth when redirecting Copilot traffic to a mock server.
  • Re-enabled previously skipped Copilot CLI-related smoke tests.
Show a summary per file
File Description
test/smoke/src/areas/chat/copilotCli.test.ts Adds token-auth override setting and re-enables the Copilot CLI editor smoke test.
test/smoke/src/areas/chat/chatSessions.test.ts Increases per-test timeout, adds token-auth override setting, and re-enables the Copilot CLI session test.
test/smoke/extensions/vscode-smoketest-ext-host/extension.js Doubles the wait-for-command timeout to reduce flakes during command registration.

Copilot's findings

Comments suppressed due to low confidence (1)

test/smoke/src/areas/chat/chatSessions.test.ts:87

  • This change re-enables a previously skipped smoke test. The PR title is about increasing timeouts, but this also changes test coverage/execution in CI (which can affect runtime and stability). Please call this out in the PR title/description, or keep the test skipped if it isn't ready to run by default yet.
		it('Test Copilot CLI session', async function () {
  • Files reviewed: 2/2 changed files
  • Comments generated: 0

@alexdima alexdima merged commit 816978a into main Jun 5, 2026
25 checks passed
@alexdima alexdima deleted the agents/smoke-tests-log-investigation branch June 5, 2026 16:22
@vs-code-engineering vs-code-engineering Bot added this to the 1.124.0 milestone Jun 5, 2026
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.

3 participants