Repository navigation
Fix affected-test orchestrator-only completion - #56538
Merged
Evangelink merged 1 commit intoOct 8, 2026
Merged
Evangelink merged 1 commit into
Evangelink merged 1 commit into
Conversation
Accept successful mapping collection and zero-selection affected runs from the matching orchestrator without a TestHost. Preserve rejected and partial handshake failures regardless of handshake ordering. Co-authored-by: Copilot App <[email protected]> Copilot-Session: cdb13387-9818-4df3-8c58-3e6880c17f12
|
Azure Pipelines: Successfully started running 2 pipeline(s). 1 pipeline(s) were filtered out due to trigger conditions. There may be pipelines that require an authorized user to comment /azp run to run. |
Contributor
There was a problem hiding this comment.
Copilot review overview
🟢 Approval recommended
The change is narrowly scoped, focused regressions cover its completion boundaries, and no blocking issues were identified.
Review effort: Balanced
Findings: None
What changed in this PR
Extends #56450’s collection fix so legitimate affected-test orchestrator-only completions no longer become handshake failures.
Changes:
- Accepts successful orchestrator-only completion when the capability matches the active mode.
- Preserves rejection and partial-handshake state.
- Adds regression tests and documents completion boundaries.
| File | Description |
|---|---|
| test/dotnet.Tests/CommandTests/Test/TestApplicationHandlerTests.cs | Tests completion exemptions, failure boundaries, and aggregate failures. |
| src/Cli/dotnet/Commands/Test/MTP/TestApplicationHandler.cs | Recognizes matching orchestrators while preserving failure detection. |
| src/Cli/AGENTS.md | Documents orchestrator-only completion rules. |
Evangelink
enabled auto-merge (squash)
October 8, 2026 07:48
0101
approved these changes
Oct 8, 2026
Evangelink
added a commit
that referenced
this pull request
Nov 3, 2026
Backport #56538 (26a1ef9) on top of the existing #56450 servicing fix. Preserve release retry/reporting APIs while recognizing successful mapping and zero-selection orchestrators and retaining rejected/partial-handshake failures. Co-authored-by: Copilot App <[email protected]>
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Successful affected-test collection and zero-selection runs can finish after an accepted MTP orchestrator handshake without starting a TestHost. The SDK currently reports those legitimate completions as handshake failures and changes the parent exit code from 0 to 1. This extends the legacy collection fix in #56450 to the actual orchestrator lifecycle.
Changes
RefreshMappingsOrchestratorcompletion only in collection mode, andRunAffectedTestsOrchestratorcompletion only in affected-run mode.Validation
The full repository build passed with 0 warnings/errors. All 366 SDK tests passed: 113 handler/transport/launch/policy tests, 242 parser/reporter/cancellation tests, and 11 real SDK command cases covering retries, zero tests, mixed modules, timeout, and crashes.
Real composed-product validation used the built
12.0.100-devredist, locally packed TestFx/MTP2.5.0-ci, MSTest.Sdk4.5.0-ci, and affected-tests/code-coverage extensions18.12.0-preview.26501.1. A metadata-only Platform package overlay (2.5.0-preview.99999.1) satisfied preview dependency ordering; the restored and deployed Platform DLLs matched the original packed binary byte-for-byte. This is local aligned-binary validation, not a claim about a publicly shipped package combination.Exact SDK validation commands and retained diagnostics
Each focused run retained
build.binlogandtest-results.trxunderartifacts\log\test-runs\dotnet.Tests\:20261007-110115-66408,20261007-110242-63548, and20261007-110435-109496.The composed harness pinned
12.0.100-devwithrollForward: disableand an absolute SDK path toartifacts\bin\redist\Debug\dotnet. Its representative commands were:Retained composed evidence includes collection logs/binlogs,
corrected-expanded-valid\results.json,selected-work-result.json, per-scenario logs/binlogs, and the 17-test merged TRX. No child-mode environment variable was set manually.Final built/deployed SDK
dotnet.dllSHA-256:94B0127AB02185EBF009B160088C358EEAB6B04276F8E4769AD3C510F22C8152.Packed/restored/deployed MTP DLL SHA-256:
3BA5436F991129E14728D6D90909167C12E53F0D7F788E206C9F4E898DFA40C4.Servicing
release/11.0.1xxhas affected-test options but lacks #56450's legacy no-handshake collection exemption. Servicing needs both that behavior and this orchestrator correction, with release-branch composed validation before downstream enablement. This PR does not enable downstream affected-test usage.