Repository navigation
Disable affected tests after SDK handshake failures - #11651
Conversation
Restore the standard full-test pipeline path and prevent affected-test execution from being re-enabled with the SDK version that fails collection handshakes. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
There was a problem hiding this comment.
Note
🤖 Automated review by GitHub Copilot. Generated by the Expert Code Review workflow. To request a follow-up action, reply by tagging @copilot directly.
Review outcome: No actionable findings — this is a well-scoped, self-consistent rollback with a verified guardrail.
Change classification
- CI pipeline:
enableAffectedTestsflipped fromtruetofalseinazure-pipelines.yml, disabling the collect/run affected-test steps in favor of the ordinary full-test command (verified againsttest-windows-configuration-tests.yml's parameter branching). - Guardrail script:
eng/validate-affected-tests.ps1adds SDK11.0.100-rtm.26476.107to theaffectedTestsSdkVersionsWithCollectionHandshakeFailuredenylist, so re-enabling affected tests with the currently-bootstrapped SDK now throws instead of silently reintroducing the handshake bug. - Documentation:
docs/affected-test-selection.mdupdated to describe the dormant/rollback state, explain the root cause (child processes exit0, parentdotnet testexits1), and link the failing build.
Confidence at a glance
🟢 Correctness & design (dim. 1, 8, 15, 16, 17, 21) — verified guardrail and doc consistency
- Why it applies: The PR's entire purpose is a guardrail/rollback whose logic must be correct.
- Evidence: Ran
eng/validate-affected-tests.ps1against the currentglobal.json/azure-pipelines.yml— passes cleanly withenableAffectedTests: false. Locally flippedenableAffectedTestsback totrueand re-ran the script: it correctly throws"Affected-test execution must remain disabled with SDK '11.0.100-rtm.26476.107'...", confirming the new denylist entry actually blocks re-enablement with the buggy SDK (not just documented as blocked). Cross-checkedtest-windows-configuration-tests.yml:enableAffectedTests: falseroutes to the plaindotnet teststep, matching the doc's description of "restoring the ordinary full-test command." - Gap or disposition: Doc and code are consistent with each other and with the actual pipeline template; no discrepancy found. This is effectively a revert of the previous PR's rollout with an added protective guardrail, so it's a low-risk, single-concern change.
- Action: None.
🟢 Build, dependencies & scripts (dim. 20, 22) — no dependency version changes; PowerShell edit is a minimal, correct array append
- Why it applies:
eng/validate-affected-tests.ps1(PowerShell) andazure-pipelines.yml(CI) are touched. - Evidence: No package version changes in this diff —
Directory.Packages.props/Versions.propsare untouched, so no Dependency Upgrade Assessment is required. The PS1 change is a single new array element appended to an existing literal@(...)list (not a loop-based+=accumulation), so the §22 O(n2) accumulation rule doesn't apply here. - Gap or disposition: None found.
- Action: None.
⚪ Not applicable: Concurrency & lifecycle, Security & protocol, API & compatibility, Performance, Localization, Tests, Analyzers — no code paths, public API, tests, or user-facing/localizable strings are touched by this infra/CI/docs-only change.
There was a problem hiding this comment.
Copilot review overview
🟢 Approval recommended
The rollback, validation guard, and documentation consistently address the reported SDK failure.
Review effort: Balanced
Findings: None
What changed in this PR
Disables affected-test selection for the problematic SDK while preserving the configuration for later reactivation.
Changes:
- Restores full-test execution in Windows CI.
- Denylists the failing SDK version.
- Documents the temporary rollback.
🟢 Confidence at a glance
Pipeline behavior, validation guard, and documentation are consistent.
| File | Description |
|---|---|
azure-pipelines.yml |
Disables affected-test execution. |
eng/validate-affected-tests.ps1 |
Prevents reactivation with the failing SDK. |
docs/affected-test-selection.md |
Documents the failure and rollback. |
💡 Configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
|
Preliminary test-triage analysis — Azure Pipelines build 1617559 Failing leg: Failure: Assessment: This exactly matches the signature already tracked in open issue #11631 ("Flaky: Confidence: High that this is the known #11631 flake (identical assertion strings/messages); not creating a duplicate issue. Next step: No new issue needed since #11631 already tracks the root cause and suggested fix. Re-run/retry the Windows Debug leg if this is the only failure; other build legs are still running and could still surface additional/different failures. Note: this is a preliminary assessment — other build legs may still change the conclusion since the aggregate build is still in progress.
|
Affected-test map collection is breaking public
mainbuilds because SDK11.0.100-rtm.26476.107reports successful child collection applications as handshake failures, causing the parentdotnet test --collect-test-mapcommand to exit1across all 45 test modules.This activates the existing one-switch rollback to restore the ordinary full-test path, documents the temporary disablement, and adds the failing SDK version to the validation denylist so affected tests cannot be accidentally re-enabled with the same configuration.