You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The curated MTP server-mode client mutation suite had 270 surviving mutants, leaving key lifecycle, transport, protocol, and serialization behavior weakly specified.
This change adds focused MSTest coverage for those paths and applies small behavior-preserving cleanups where Stryker produced equivalent mutants. It covers process startup and teardown, cancellation and timeout races, JSON-RPC message handling, numeric ID parsing, test-node serialization, property bags, exception formatting, and in-process host lifecycle behavior.
The implementation preserves cross-target behavior for both the System.Text.Json and Jsonite paths. Equivalent platform-specific and synchronously completed-task mutations are explicitly documented and excluded rather than weakening production semantics.
Validation:
Strict net8.0 and net462 build with warnings as errors: 0 warnings, 0 errors
net8.0: 281 passed, 8 skipped
net462: 199 passed, 2 skipped
Stryker baseline: 270 survivors
Full combined Stryker run: 892 killed, 1 survivor, 27 timeouts
Final focused rerun covering the last survivor and reviewed production changes: 76 killed, 0 survivors, 1 timeout
The local Windows Stryker 5.0 MTP runner could not discover the executable test project, so mutation verification used a temporary VSTest transport compiling the same test sources against the same mutated project. That temporary harness was not committed.
The reason will be displayed to describe this comment to others. Learn more.
Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.
Note
This error may be related to your runner configuration. You can now configure runners for Copilot code review separately from Copilot cloud agent by creating a copilot-code-review.yml file with your setup steps. Read the docs for details.
[TestClass] is compiled out for net462, so MSTest does not discover the unguarded TcpWrite_EmitsRequiredHeadersAndBody and TcpDispose_DisposesBothStreamsAndTcpClient methods below. This silently removes the Jsonite/.NET Framework transport coverage from the reported net462 run. Keep the class attribute unconditional; the individual NETCOREAPP test block can remain guarded.
Triggering leg: Build Windows Debug → job "Windows Debug", task "Test (unit tests only)" failed (exit code 2). Other legs are still running and may change this conclusion.
Assertion: Assert.Contains("did not connect back within", exception.Message) failed.
Actual message: The Microsoft.Testing.Platform application '...\mtp-apphost-<guid>\NeverConnects.cmd' exited with code 0 before connecting back.
So the test expected the timeout path, but the NeverConnects.cmd child exited (code 0) before the timeout elapsed and the "exited before connecting back" path was taken. This looks like a deterministic mismatch on the net462/Windows path, or a race between the child exiting and the timeout. It doesn't look like an environmental failure.
Confidence: medium. Only one failing test was seen. No crash or hang diagnostics were found (the CrashDumps directory was empty). History is incomplete because this is early analysis (early-analysis), so I can't say whether it has failed before.
Next step: check whether this PR changes the apphost/StartAsync connect-back or timeout logic, or the NeverConnects.cmd helper. If it does, the test needs to keep the child alive until the timeout, or the product needs to check the timeout before the exit. Compare against the other legs when the build completes. A final resolution comment will follow.
🤖 Automated content by GitHub Copilot. Generated by the Pipeline Test Triage workflow. · copilot · auto · 25.4 AIC · ⌖ 5.56 AIC · ⊞ 9.6K
This class must be non-parallel: the assembly uses method-level parallelization, while the two rented-buffer tests assert that the very next ArrayPool<byte>.Shared.Rent returns the buffer just released. Those tests use the same pool bucket and can steal each other's returned buffer, causing nondeterministic AreSame failures. Mark the class [DoNotParallelize] (as the other shared-state mutation test classes are).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The curated MTP server-mode client mutation suite had 270 surviving mutants, leaving key lifecycle, transport, protocol, and serialization behavior weakly specified.
This change adds focused MSTest coverage for those paths and applies small behavior-preserving cleanups where Stryker produced equivalent mutants. It covers process startup and teardown, cancellation and timeout races, JSON-RPC message handling, numeric ID parsing, test-node serialization, property bags, exception formatting, and in-process host lifecycle behavior.
The implementation preserves cross-target behavior for both the System.Text.Json and Jsonite paths. Equivalent platform-specific and synchronously completed-task mutations are explicitly documented and excluded rather than weakening production semantics.
Validation:
net8.0andnet462build with warnings as errors: 0 warnings, 0 errorsnet8.0: 281 passed, 8 skippednet462: 199 passed, 2 skippedThe local Windows Stryker 5.0 MTP runner could not discover the executable test project, so mutation verification used a temporary VSTest transport compiling the same test sources against the same mutated project. That temporary harness was not committed.