Skip to content

Simplify MTP handshake failure tracking - #56295

Merged
Evangelink merged 1 commit into
mainfrom
dev/amauryleve/main-handshake-queue
Sep 15, 2026
Merged

Evangelink merged 1 commit into
mainfrom
dev/amauryleve/main-handshake-queue

Conversation

@Evangelink

Copy link
Copy Markdown
Member

Summary

  • replace the lock-protected handshake failure list and separate count with ConcurrentQueue<HandshakeFailureRecord>
  • use queue-native state checks, clearing, counting, snapshotting, and enqueueing
  • preserve the reporter's existing retry, terminal, artifact, and assembly concurrency behavior

Validation

  • build.cmd
  • .\.dotnet\dotnet.exe scripts\RunTests.cs -- --project test\dotnet.Tests\dotnet.Tests.csproj --filter "FullyQualifiedName~TerminalTestReporterTests|FullyQualifiedName~GivenDotnetTestRunsConsoleAppWithoutHandshake" (57 passed)

@Evangelink
Evangelink requested a review from a team as a code owner September 14, 2026 17:09
Copilot AI lite review requested due to automatic review settings September 14, 2026 17:10
@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 1 pipeline(s).
2 pipeline(s) were filtered out due to trigger conditions.
There may be pipelines that require an authorized user to comment /azp run to run.

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

No actionable issues were identified, and existing behavior is preserved.

Review tier: Lite
Findings: None

What changed in this PR

Simplifies MTP handshake-failure tracking while preserving existing reporting and concurrency behavior.

Changes:

  • Replaces lock-protected state with ConcurrentQueue<HandshakeFailureRecord>.
  • Uses queue-native counting, clearing, snapshotting, and enqueueing.
File Description
src/​Cli/​dotnet/​Commands/​Test/​MTP/​Terminal/​TerminalTestReporter.cs Simplifies concurrent handshake-failure state management.

@Evangelink
Evangelink merged commit 88cd26e into main Sep 15, 2026
25 checks passed
@Evangelink
Evangelink deleted the dev/amauryleve/main-handshake-queue branch September 15, 2026 07:25
@dotnet-milestone-bot dotnet-milestone-bot Bot added this to the 12.0-preview1 milestone Sep 16, 2026

This branch had an error being deployed

1 failed deployment
copilot-pat-pool — 4952f6d1 Deployed Sep 15, 2026 by Evangelink via pre_activation #4909
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