Skip to content

Conversation

@eleanorjboyd
Copy link
Member

fixes #24602

@eleanorjboyd eleanorjboyd added the feature-request Request for new features or functionality label Jan 10, 2025
@eleanorjboyd eleanorjboyd self-assigned this Jan 10, 2025
@karthiknadig karthiknadig requested a review from Copilot January 10, 2025 20:58
Copy link

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.

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

@eleanorjboyd eleanorjboyd marked this pull request as ready for review January 10, 2025 22:55
@vs-code-engineering
Copy link

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
karthiknadig
karthiknadig previously approved these changes Jan 10, 2025
Copy link

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.

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

karthiknadig
karthiknadig previously approved these changes Jan 14, 2025
@eleanorjboyd eleanorjboyd enabled auto-merge (squash) January 14, 2025 16:45
@eleanorjboyd eleanorjboyd merged commit 8c54b8a into microsoft:main Jan 14, 2025
46 checks passed
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

2 participants