Skip to content

[cherry-pick] test: remove external network dependency from browser tools - #337048

Merged
Christof Marti (chrmarti) merged 1 commit into
release/1.139from
cherry-pick/336988
Sep 21, 2026
Merged

Christof Marti (chrmarti) merged 1 commit into
release/1.139from
cherry-pick/336988

Conversation

@vs-code-engineering

Copy link
Copy Markdown
Contributor

Cherry-pick of #336988 from main.

Summary

Investigated the failed original attempts in Insider run 20260921.4 / 475409.

  • macOS arm64 / Remote integration tests: chat - browser tools > Open a page from the web timed out navigating to https://google.com/ after 30 seconds (log 2192). Replace this external dependency with a loopback HTTP server in the extension host, verify that the tool returns both a page ID and the served content, and close the server/connections in finally. The test stays enabled in remote workspaces and exercises the remote browser proxy there. No retries, timeout increases, or test skips.
  • Linux x64 / Electron integration tests: peer chat catalog and transcript survive a host restart failed with Resource not found (log 1951). Fix peer chat catalog migration racing with chat creation #336975 fixes the matching catalog-migration race, passed its own cross-platform Azure validation, and has now merged. That fix is not duplicated here.
  • Publish: the original job exhausted its 180-minute deadline after upstream reruns delayed the last artifacts. ESRP accepted the final archive at 07:41:17 UTC; the deadline canceled polling at 08:01:42. The retry restored 47 checkpoints, found the final archive already released/provisioned, and completed all 48 at 08:07:50. No separate publishing defect established. Incoming Engineering - Implement checkpoint reuse for test tasks in pipelines #334926 reduces repeated work on stage reruns but is not an ESRP fix.
  • Sanity Tests: no failed tests in the previous attempt; downstream of Publish.

Also checked #331912 (remote browser proxy readiness); it does not remove this test's dependency on an external website.

Validation

  • API-test extension TypeScript check passed.
  • Targeted ESLint, hygiene, and commit hooks passed.
  • All 6 chat - browser tools integration tests passed against installed Windows Insiders, including the new HTTP test (231 ms). Five additional isolated HTTP-test runs also passed (639-758 ms).
  • Source-host local run was blocked at startup by a pre-existing missing @vscode/policy-watcher native binding; used installed Insiders rather than modifying shared native dependencies.
  • Azure validation 475465 succeeded on ddfc38a8a2a (finished 2026-09-21 09:52 UTC). All seven stages passed, including Windows x64, Linux x64, and macOS arm64, with publishing/release disabled and tests enabled. The originally failing macOS arm64 Remote integration step passed; the replacement HTTP test completed in 118 ms (log 1230).

Copilot AI balanced review requested due to automatic review settings September 21, 2026 14:40
@vs-code-engineering vs-code-engineering Bot added the cherry-pick-artifact Auto-generated cherry-pick PR label Sep 21, 2026
@vs-code-engineering

Copy link
Copy Markdown
Contributor Author

📬 CODENOTIFY

The following users are being notified based on files changed in this PR:

Kyle Cutler (@kycutler)

Matched files:

  • extensions/vscode-api-tests/src/singlefolder-tests/browser.tools.test.ts

Joaquín Ruales (@jruales)

Matched files:

  • extensions/vscode-api-tests/src/singlefolder-tests/browser.tools.test.ts

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.

Copilot review overview

🟢 Approval recommended

The focused change removes network flakiness while preserving coverage and reliable cleanup.

Review effort: Balanced
Findings: None

What changed in this PR

Replaces an external browser test dependency with a deterministic loopback HTTP server while preserving remote proxy coverage.

Changes:

  • Serves a local HTTP fixture from the extension host.
  • Verifies both page ID and rendered content.
  • Closes the server and connections reliably.
File Description
extensions/​vscode-api-tests/​src/​singlefolder-tests/​browser.tools.test.ts Reworks the browser tool test to use a local HTTP fixture.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@github-actions

Copy link
Copy Markdown
Contributor

Screenshot Changes

Base: ca4c65a4 Current: 6dfd2028

Changed (2)

sessions/sessionChatInputToolbar/SessionChatPills_HorizontalOverflow/Dark
Before After
before after
sessions/sessionChatInputToolbar/SessionChatPills_HorizontalOverflow/Light
Before After
before after

1 insignificant change(s) omitted (≤20 px, Δ≤2). See CI logs for details.

@chrmarti
Christof Marti (chrmarti) merged commit 9172245 into release/1.139 Sep 21, 2026
34 checks passed
@chrmarti
Christof Marti (chrmarti) deleted the cherry-pick/336988 branch September 21, 2026 15:16
@vs-code-engineering vs-code-engineering Bot added this to the 1.139.0 milestone Sep 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cherry-pick-artifact Auto-generated cherry-pick PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants