Skip to content

Discovery cancellation - #24713

Merged
Eleanor Boyd (eleanorjboyd) merged 8 commits into
microsoft:mainfrom
eleanorjboyd:discovery-cancellation
Jan 14, 2025
Merged

Discovery cancellation#24713
Eleanor Boyd (eleanorjboyd) merged 8 commits into
microsoft:mainfrom
eleanorjboyd:discovery-cancellation

Conversation

@eleanorjboyd

Copy link
Copy Markdown
Member

fixes #24602

@eleanorjboyd Eleanor Boyd (eleanorjboyd) added the feature-request Request for new features or functionality label Jan 10, 2025

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

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

Files not reviewed (2)
  • src/client/testing/testController/workspaceTestAdapter.ts: Evaluated as low risk
  • src/client/testing/testController/pytest/pytestExecutionAdapter.ts: Evaluated as low risk
Comments suppressed due to low confidence (1)

src/client/testing/testController/pytest/pytestDiscoveryAdapter.ts:130

  • Redundant cancellation handling. The token?.onCancellationRequested callback is defined twice, once for proc and once for resultProc. This can be simplified to avoid confusion.
token?.onCancellationRequested(() => {

Tip: Leave feedback on Copilot's review comments with the 👎 and 👍 buttons to help improve review quality. Learn more

Comment thread src/client/testing/testController/unittest/testDiscoveryAdapter.ts Outdated
@vs-code-engineering

Copy link
Copy Markdown

This PR originates from a fork. If the changes appear safe, you can trigger the pipeline by commenting /AzurePipelines run.

@vs-code-engineering vs-code-engineering Bot added this to the January 2025 milestone Jan 10, 2025

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

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

Files not reviewed (3)
  • src/client/testing/testController/workspaceTestAdapter.ts: Evaluated as low risk
  • src/client/testing/testController/pytest/pytestExecutionAdapter.ts: Evaluated as low risk
  • src/client/testing/testController/unittest/testExecutionAdapter.ts: Evaluated as low risk
Comments suppressed due to low confidence (1)

src/client/testing/testController/pytest/pytestDiscoveryAdapter.ts:194

  • The assignment of resultProc should be moved before the token cancellation check to avoid any potential race conditions.
const result = execService?.execObservable(execArgs, spawnOptions);

Tip: Copilot only keeps its highest confidence comments to reduce noise and keep you focused. Learn more

@eleanorjboyd
Eleanor Boyd (eleanorjboyd) merged commit 8c54b8a into microsoft:main Jan 14, 2025
Anthony Kim (anthonykim1) pushed a commit to anthonykim1/vscode-python that referenced this pull request Jan 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature-request Request for new features or functionality

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Make test discovery cancellable

3 participants