Skip to content

Disable affected tests after SDK handshake failures - #11651

Merged
Amaury Levé (Evangelink) merged 1 commit into
mainfrom
dev/amauryleve/fix-public-main-pipeline
Sep 30, 2026
Merged

Amaury Levé (Evangelink) merged 1 commit into
mainfrom
dev/amauryleve/fix-public-main-pipeline

Conversation

@Evangelink

Copy link
Copy Markdown
Member

Affected-test map collection is breaking public main builds because SDK 11.0.100-rtm.26476.107 reports successful child collection applications as handshake failures, causing the parent dotnet test --collect-test-map command to exit 1 across 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.

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>
Copilot AI balanced review requested due to automatic review settings September 30, 2026 08:02
@github-actions github-actions Bot added the state/needs-review Awaiting review from the team. label Sep 30, 2026

@github-actions github-actions Bot 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.

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: enableAffectedTests flipped from true to false in azure-pipelines.yml, disabling the collect/run affected-test steps in favor of the ordinary full-test command (verified against test-windows-configuration-tests.yml's parameter branching).
  • Guardrail script: eng/validate-affected-tests.ps1 adds SDK 11.0.100-rtm.26476.107 to the affectedTestsSdkVersionsWithCollectionHandshakeFailure denylist, so re-enabling affected tests with the currently-bootstrapped SDK now throws instead of silently reintroducing the handshake bug.
  • Documentation: docs/affected-test-selection.md updated to describe the dormant/rollback state, explain the root cause (child processes exit 0, parent dotnet test exits 1), 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.ps1 against the current global.json/azure-pipelines.yml — passes cleanly with enableAffectedTests: false. Locally flipped enableAffectedTests back to true and 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-checked test-windows-configuration-tests.yml: enableAffectedTests: false routes to the plain dotnet test step, 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) and azure-pipelines.yml (CI) are touched.
  • Evidence: No package version changes in this diff — Directory.Packages.props/Versions.props are 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.

@microsoft-github-policy-service microsoft-github-policy-service Bot added state/needs-review Awaiting review from the team. and removed state/needs-review Awaiting review from the team. labels Sep 30, 2026
@github-actions github-actions Bot added state/needs-review Awaiting review from the team. and removed state/needs-review Awaiting review from the team. labels Sep 30, 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.

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.

@microsoft-github-policy-service microsoft-github-policy-service Bot added state/needs-review Awaiting review from the team. and removed state/needs-review Awaiting review from the team. labels Sep 30, 2026
@github-actions github-actions Bot added state/approved Proposal approved; ready for implementation. and removed state/needs-review Awaiting review from the team. labels Sep 30, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Preliminary test-triage analysis — Azure Pipelines build 1617559

Failing leg: Build Windows Debug → Test (unit tests only) (net8.0)

Failure: Microsoft.Testing.Platform.ServerMode.Client.Sources.UnitTests.MtpServerProcessTests.StartAsyncTimeoutKillsProcessAndReleasesListener

Assertion failed. Expected string to contain the specified substring.
expected substring: "did not connect back within"
actual:             "The Microsoft.Testing.Platform application '...\NeverConnects.cmd' exited with code 0 before connecting back. "

Assessment: This exactly matches the signature already tracked in open issue #11631 ("Flaky: MtpServerProcessTests.StartAsyncTimeoutKillsProcessAndReleasesListener races between timeout and early-exit failure"), a known race between the 300ms ConnectionTimeout and process early-exit observation on loaded agents. This PR's changes are limited to azure-pipelines.yml, docs/affected-test-selection.md, and eng/validate-affected-tests.ps1 — unrelated to the server-mode client code exercised by this test — so this looks like a pre-existing flaky test surfacing on this PR's build rather than a regression introduced here.

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.

🤖 Automated content by GitHub Copilot. Generated by the Pipeline Test Triage workflow. · copilot · auto · 59.8 AIC · ⌖ 5.31 AIC · ⊞ 9.6K

@Evangelink
Amaury Levé (Evangelink) merged commit 09777e4 into main Sep 30, 2026
27 of 29 checks passed
@Evangelink
Amaury Levé (Evangelink) deleted the dev/amauryleve/fix-public-main-pipeline branch September 30, 2026 09:13
@github-actions github-actions Bot removed the state/approved Proposal approved; ready for implementation. label Sep 30, 2026
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