Skip to content

Do not merge) Test cli sanity test fail on 1.0.48#317437

Draft
anthonykim1 wants to merge 18 commits into
release/1.121from
anthonykim1/sanityShouldFail
Draft

Do not merge) Test cli sanity test fail on 1.0.48#317437
anthonykim1 wants to merge 18 commits into
release/1.121from
anthonykim1/sanityShouldFail

Conversation

@anthonykim1
Copy link
Copy Markdown
Contributor

No description provided.

Copilot AI review requested due to automatic review settings May 20, 2026 02:04
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 updates the Copilot extension’s bundled @github/copilot CLI dependency and adds coverage to ensure Copilot CLI chat sessions work both in extension sanity tests and VS Code smoke tests, including CI wiring to provide required environment secrets.

Changes:

  • Bump @github/copilot from 1.0.39 to ^1.0.48 (plus lockfile updates).
  • Add a new smoke test that opens a Copilot CLI chat session in an editor and validates it returns a non-empty response.
  • Add a Copilot CLI sanity test in the Copilot extension and update CI smoke-test steps to fetch Copilot automation secrets before running Electron smoke tests.
Show a summary per file
File Description
test/smoke/src/main.ts Registers the new Copilot CLI smoke-test suite.
test/smoke/src/areas/chat/copilotCli.test.ts Adds an opt-in UI smoke test for Copilot CLI chat in an editor session.
test/smoke/extensions/vscode-smoketest-ext-host/package.json Declares a new smoke-test command for opening a Copilot CLI chat session.
test/smoke/extensions/vscode-smoketest-ext-host/extension.js Implements the smoke-test command to enable needed settings and open the Copilot CLI session editor.
test/automation/src/chat.ts Extends automation helpers to support chat interactions in panel vs editor locations and adds latest-response retrieval.
extensions/copilot/src/extension/chatSessions/copilotcli/vscode-node/test/copilotcli.sanity-test.ts Adds Copilot CLI-specific sanity coverage (workbench command + participant streaming + follow-up).
extensions/copilot/package.json Bumps @github/copilot version and includes minor formatting/encoding changes.
extensions/copilot/package-lock.json Locks @github/copilot and platform packages to 1.0.48.
build/azure-pipelines/win32/steps/product-build-win32-test.yml Fetches Copilot secrets and exports them before running Electron smoke tests on Windows.
build/azure-pipelines/linux/steps/product-build-linux-test.yml Fetches Copilot secrets and exports them before running Electron smoke tests on Linux.
build/azure-pipelines/darwin/steps/product-build-darwin-test.yml Fetches Copilot secrets and exports them before running Electron smoke tests on macOS.

Copilot's findings

Files not reviewed (1)
  • extensions/copilot/package-lock.json: Language not supported
  • Files reviewed: 10/11 changed files
  • Comments generated: 2

const extension = vscode.extensions.getExtension('Github.copilot-chat');
assert.ok(extension, 'Extension is not available');
realContext = await extension.activate();
assert.ok(realContext, '`extension.activate()` did not return context`');

function createGitHubSession(token: string, kind: 'permissive' | 'any'): vscode.AuthenticationSession {
return {
id: token,
@anthonykim1
Copy link
Copy Markdown
Contributor Author

~requires-eval-assessment terminalbench2,vscbench claude-opus-4.7,gpt-5 vscode-agent-host

vscodeSettings:
  chat.agentHost.enabled: true
  chat.agentHost.customTerminalTool.enabled: false

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