Skip to content

Add terminal test to chat scenario tests#322940

Draft
alexr00 wants to merge 4 commits into
mainfrom
alexr00/intelligent-marsupial
Draft

Add terminal test to chat scenario tests#322940
alexr00 wants to merge 4 commits into
mainfrom
alexr00/intelligent-marsupial

Conversation

@alexr00

@alexr00 alexr00 commented Jun 25, 2026

Copy link
Copy Markdown
Member

No description provided.

Copilot AI review requested due to automatic review settings June 25, 2026 12:58
@alexr00 alexr00 self-assigned this Jun 25, 2026

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.

Pull request overview

This PR extends the smoke-test coverage for chat/agent sessions by introducing a reusable mock-LLM “shell echo” scenario (including a run_in_terminal variant) and adding per-session tests that validate model-driven terminal tool execution renders back into the chat UI. It also adds CI probe loops intended to repeatedly exercise the “run in terminal” tests.

Changes:

  • Add shared mock-LLM shell-tool scenarios + a response matcher for validating terminal tool execution results.
  • Add “run in terminal” smoke tests for both Chat Sessions and Agents Window session types (Copilot CLI, Claude, Local).
  • Add Azure Pipelines probe steps that rerun the “run in terminal” smoke tests 20× with tracing.
Show a summary per file
File Description
test/smoke/src/areas/chat/shellScenarios.ts New shared mock-LLM multi-turn scenarios for shell execution (bash/pwsh/powershell + run_in_terminal) and a response matcher.
test/smoke/src/areas/chat/chatSessions.test.ts Registers the new scenarios and adds per-session “run in terminal” smoke tests for chat sessions.
test/smoke/src/areas/agentsWindow/agentsWindow.test.ts Reuses shared scenarios/matcher and adds per-session “run in terminal” tests in the Agents Window suite.
build/azure-pipelines/win32/steps/product-build-win32-test.yml Adds a 20× probe loop for “run in terminal” smoke tests on Windows.
build/azure-pipelines/linux/steps/product-build-linux-test.yml Adds a 20× probe loop for “run in terminal” smoke tests on Linux.

Copilot's findings

  • Files reviewed: 5/5 changed files
  • Comments generated: 3

Comment on lines +82 to +84
export function shellEchoResponseMatcher(reply: string): RegExp {
return new RegExp(`"output":.*${reply}`);
}
Comment on lines +138 to +146
- ${{ if eq(parameters.VSCODE_RUN_ELECTRON_TESTS, true) }}:
- powershell: |
for ($i = 1; $i -le 20; $i++) {
Write-Host "=== Probe iteration $i/20 ==="
npm run smoketest-no-compile -- -g "run in terminal" --tracing --build "$(agent.builddirectory)\test\VSCode-win32-$(VSCODE_ARCH)"
if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE }
}
displayName: 🧪 PROBE — run "run in terminal" smoke tests 20×
timeoutInMinutes: 120
Comment on lines +134 to +145
- ${{ if eq(parameters.VSCODE_RUN_ELECTRON_TESTS, true) }}:
- script: |
set -e
for i in $(seq 1 20); do
echo "=== Probe iteration $i/20 ==="
npm run smoketest-no-compile -- -g "run in terminal" --tracing --build "$(agent.builddirectory)/VSCode-linux-$(VSCODE_ARCH)"
done
env:
TMPDIR: $(Agent.TempDirectory)
timeoutInMinutes: 120
displayName: 🧪 PROBE — run "run in terminal" smoke tests 20×

@github-actions

github-actions Bot commented Jul 2, 2026

Copy link
Copy Markdown
Contributor

Base: f239f20c Current: 0f4ad0db

No screenshot changes.

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