Skip to content

Fix runTests tool not handling absolute file paths for remote workspaces#318278

Open
felipecrs wants to merge 10 commits into
microsoft:mainfrom
felipecrs:fix-runtests-tool-absolute-paths-remote
Open

Fix runTests tool not handling absolute file paths for remote workspaces#318278
felipecrs wants to merge 10 commits into
microsoft:mainfrom
felipecrs:fix-runtests-tool-absolute-paths-remote

Conversation

@felipecrs
Copy link
Copy Markdown
Contributor

This follows #317904 after extending the fix to also handle absolte paths for remote workspaces after being able to test it.

A better description of this specific issue and how to test this PR can be found here.

PS: I was able to verify this patch before proposing it. It works as expected.

Copilot AI review requested due to automatic review settings May 26, 2026 02:59
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

Note

Copilot was unable to run its full agentic suite in this review.

Adds coverage and implementation to ensure RunTestTool resolves absolute file paths correctly when running in remote workspaces.

Changes:

  • Update RunTestTool to resolve paths against the first workspace folder when the workspace is remote (non-file URI scheme).
  • Add tests validating URI resolution behavior for absolute paths in remote vs local workspaces.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
src/vs/workbench/contrib/testing/common/testingChatAgentTool.ts Adjusts file-to-URI conversion to support remote workspace URIs.
src/vs/workbench/contrib/testing/test/common/testingChatAgentTool.test.ts Adds test cases to validate URI resolution for absolute paths in remote/local workspaces.

Comment thread src/vs/workbench/contrib/testing/common/testingChatAgentTool.ts
@felipecrs felipecrs requested a review from Copilot May 26, 2026 03:09
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

Copilot reviewed 2 out of 2 changed files in this pull request and generated 5 comments.

Comment thread src/vs/workbench/contrib/testing/test/common/testingChatAgentTool.test.ts Outdated
Comment thread src/vs/workbench/contrib/testing/test/common/testingChatAgentTool.test.ts Outdated
Comment thread src/vs/workbench/contrib/testing/test/common/testingChatAgentTool.test.ts Outdated
Comment thread src/vs/workbench/contrib/testing/test/common/testingChatAgentTool.test.ts Outdated
Comment thread src/vs/workbench/contrib/testing/common/testingChatAgentTool.ts Outdated
@felipecrs felipecrs requested a review from Copilot May 26, 2026 03:20
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

Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.

Comment thread src/vs/workbench/contrib/testing/common/testingChatAgentTool.ts Outdated
Comment thread src/vs/workbench/contrib/testing/test/common/testingChatAgentTool.test.ts Outdated
Comment thread src/vs/workbench/contrib/testing/test/common/testingChatAgentTool.test.ts Outdated
@felipecrs felipecrs requested a review from Copilot May 26, 2026 03:25
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

Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.

Comment thread src/vs/workbench/contrib/testing/common/testingChatAgentTool.ts Outdated
Comment thread src/vs/workbench/contrib/testing/test/common/testingChatAgentTool.test.ts Outdated
Comment thread src/vs/workbench/contrib/testing/test/common/testingChatAgentTool.test.ts Outdated
@felipecrs felipecrs force-pushed the fix-runtests-tool-absolute-paths-remote branch from e0db5fd to 6b03aaa Compare May 26, 2026 03:28
@felipecrs felipecrs requested a review from Copilot May 26, 2026 03:34
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

Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.

Comment thread src/vs/workbench/contrib/testing/common/testingChatAgentTool.ts Outdated
@felipecrs felipecrs force-pushed the fix-runtests-tool-absolute-paths-remote branch 2 times, most recently from d3c7571 to 276fdf1 Compare May 26, 2026 03:58
@felipecrs felipecrs requested a review from Copilot May 26, 2026 03:58
@felipecrs felipecrs force-pushed the fix-runtests-tool-absolute-paths-remote branch from 276fdf1 to 473f297 Compare May 26, 2026 04:00
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

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

Comment thread src/vs/workbench/contrib/testing/common/testingChatAgentTool.ts
Comment thread src/vs/workbench/contrib/testing/test/common/testingChatAgentTool.test.ts Outdated
@felipecrs felipecrs force-pushed the fix-runtests-tool-absolute-paths-remote branch from ab42bf4 to c8275f6 Compare May 26, 2026 16:40
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