Skip to content

Test server control channel guard conditions - #12006

Merged
Amaury Levé (Evangelink) merged 18 commits into
mainfrom
copilot/test-improver-add-unit-tests-for-dotnet-test-conne
Oct 19, 2026
Merged

Amaury Levé (Evangelink) merged 18 commits into
mainfrom
copilot/test-improver-add-unit-tests-for-dotnet-test-conne

Conversation

Copilot AI commented Oct 18, 2026 •

Copy link
Copy Markdown
Contributor

StartServerControlChannelAsync had direct coverage for HTTP transport, but not the named-pipe capability, pipe-name, and idempotency guards.

  • Coverage: Add tests for an empty pipe name despite negotiated support, a pipe name without negotiated capability, and a previously installed client/listener.
  • Assertions: Verify the callback is not invoked and control-channel state remains null or unchanged. The existing-client sentinel uses the production assembly’s embedded client type.

Copilot AI self-assigned this Oct 18, 2026
Copilot AI balanced review requested due to automatic review settings October 18, 2026 19:58

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 wasn't able to review any files in this pull request. Check if the Files changed in this pull request are included in default exclusions.

Copilot-Session: ac39bde3-795f-4dec-ba78-a68f3a985bc5
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: Evangelink <11340282+Evangelink@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot-Session: a005d953-ad6b-4b3d-b49c-ff9d08535ade
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 108604f3-17ca-43af-8195-82650df14d98
Copilot-Session: 36ed0c4f-9841-4072-9089-a18481a7238a
…11978)

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 7f8d16f6-c5ed-4e1d-a9d7-fbd59038cd8c
Co-authored-by: Evangelink <11340282+Evangelink@users.noreply.github.com>
Copilot AI balanced review requested due to automatic review settings October 18, 2026 20:15
Copilot AI changed the title [WIP] Add unit tests for guard conditions in StartServerControlChannelAsync Test server control channel guard conditions Oct 18, 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.

🟢 Approval recommended

The focused, test-only additions cover the intended guards with no unresolved blocking findings.

No open issues 🎉

Review effort: Balanced

Copilot AI and others added 3 commits October 18, 2026 22:40
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: Evangelink <11340282+Evangelink@users.noreply.github.com>
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: Evangelink <11340282+Evangelink@users.noreply.github.com>
)

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: Evangelink <11340282+Evangelink@users.noreply.github.com>
Co-authored-by: Amaury Levé <amauryleve@microsoft.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot-Session: dab0e603-7c32-4f24-9419-9346f72f2380
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Copilot-Session: e91db52f-30be-43f0-bd01-b8069a1068e7
Copilot AI and others added 4 commits October 19, 2026 20:08
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: Evangelink <11340282+Evangelink@users.noreply.github.com>
Co-authored-by: Amaury Levé <amauryleve@microsoft.com>
Copilot-Session: 7d66cb13-77ee-4a7f-95a2-095636a874e6
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 2ddcd011-e1d0-4f3f-bcd1-f83ae14ca4a5
Copilot-Session: 084f77f0-4cc0-4b70-88d5-97938d5471a0
Co-authored-by: dotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
…tection (#12019)

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
…er (#11993)

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: ee33a395-fd34-4ee5-8e07-4fb1b3339a0d
@Evangelink
Amaury Levé (Evangelink) marked this pull request as ready for review October 19, 2026 18:25
@github-actions github-actions Bot added the needs/merge-conflict-resolution PR has merge conflicts that must be resolved. label Oct 19, 2026
Preserve both sets of server control channel guard tests and the shared test helpers.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 261b8c54-d4eb-41f7-954d-9e6e54b766a3
Copilot AI balanced review requested due to automatic review settings October 19, 2026 18:39
@github-actions github-actions Bot added state/needs-review Awaiting review from the team. and removed needs/merge-conflict-resolution PR has merge conflicts that must be resolved. labels Oct 19, 2026
@Evangelink
Amaury Levé (Evangelink) merged commit ea83725 into main Oct 19, 2026
16 of 18 checks passed
@Evangelink
Amaury Levé (Evangelink) deleted the copilot/test-improver-add-unit-tests-for-dotnet-test-conne branch October 19, 2026 18:41
@github-actions github-actions Bot removed the state/needs-review Awaiting review from the team. label Oct 19, 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.

🔵 Needs a closer look

Cross-product execution and launcher changes require focused human review and revision-matched validation beyond the reported guard tests.

1 open issue

Review effort: Balanced

// In case of WinUI's default synchronization context, this will ensure that the test method runs on the UI thread.
if (await RunTestInitializeMethodAsync(classInstance, result, timeoutTokenSource).ConfigureAwait(true))
{
arguments = GetArgumentsWithCancellationToken(arguments);
@microsoft-github-policy-service microsoft-github-policy-service Bot added the state/needs-review Awaiting review from the team. label Oct 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

state/needs-review Awaiting review from the team.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[test-improver] Add unit tests for DotnetTestConnection.StartServerControlChannelAsync guard conditions

5 participants