Skip to content

Fix main pipeline: MTP opt-in for repo test hosts and unmirrored Playwright 1.65.2 - #12727

Merged
Amaury Levé (Evangelink) merged 1 commit into
mainfrom
evangelink-fix-broken-pipelines
Dec 4, 2026
Merged

Amaury Levé (Evangelink) merged 1 commit into
mainfrom
evangelink-fix-broken-pipelines

Conversation

@Evangelink

Copy link
Copy Markdown
Member

Agent assessment

Self-reported assessment, not an independent review.

Assessed revision: 1add0297536ca9c470273517dcaac25817a58541

Dimension Assessment Rationale
Change confidence 8.5/10 ↑ Local dotnet test reproduces the exact CI error without the fix and passes runner validation with it.
↑ Outer-build evaluation shows IsTestingPlatformApplication=true for affected projects.
↓ No full CI run or acceptance run (PlaywrightSdkTests) performed locally.
Diagnosis confidence 9.5/10 ↑ Regression window 0ddfcf6..dfa2b28 contains e1bfb27 (removed outer-build default) and 256fdc5 (Playwright 1.65.2).
↑ dotnet-public flat2 index lists 1.65.1 as latest.
Evidence fit 9.5/10 ↑ Errors in builds 1704820, 1705678, 1707794 and internal 3150927 match exactly: VSTest-runner rejection and NU1102 for 1.65.2.

Pull request

Summary

Fixes the broken main runs internal 20261202.7 and public 20261203.4. There were two independent regressions:

  1. dotnet test rejects repo test projects as VSTest (public Linux/macOS/Windows Test, Windows app-model contracts, and the Coverage merge cascade). Stop defaulting MTP application status transitively #12667 (e1bfb27) stopped buildMultiTargeting/Microsoft.Testing.Platform.targets from defaulting IsTestingPlatformApplication. Repository test hosts import those targets from source in test/Directory.Build.targets, so their outer build no longer declared MTP. The SDK then failed with "global.json defines test runner to be Microsoft.Testing.Platform … using VSTest test runner". Fix: set IsTestingPlatformApplication=true (when unset) for EnableMSTestRunner/UseInternalTestFramework test hosts.
  2. NU1102 for Microsoft.Playwright.MSTest.v4 >= 1.65.2 (internal Test jobs; public CTS comparison/AffectedTests). Update bundled Playwright for .NET to 1.65.2 #12694 bumped to 1.65.2, which exists on nuget.org but isn't mirrored on dotnet-public, so CI can't restore generated PlaywrightProject. Fix: revert to 1.65.1. update_bundled_playwright.py now only picks stable versions present on both nuget.org and dotnet-public, so this can't recur.

Design and decision record

Small CI fix; no separate record needed. The product change in #12667 is intentional (packages should not default MTP transitively), so the opt-in moves to repository test infrastructure instead of being reverted.

Demonstration

Text transcript (see below); there's no UI surface.

Validation and regression proof

  • python .github/scripts/update_bundled_playwright.py check → OK: bundled Playwright is 1.65.1.
  • Script with stubbed feeds (nuget.org = {1.65.2, 1.65.1, 1.66.0-beta}, dotnet-public = {1.65.1, 1.65.0}) → selects 1.65.1. A live dotnet-public query also returns 1.65.1.
  • dotnet msbuild <proj> -getProperty:IsTestingPlatformApplication (outer build) for MSTest.Analyzers.UnitTests, TestFramework.UnitTests and MSTest.Acceptance.IntegrationTests → true with the fix, empty without it.
  • Not run: full CI, and the PlaywrightSdkTests acceptance test (needs -pack).

Test-value evidence

Revision 1add029, using the repo-local SDK 12.0.100-alpha.1.26570.125 and dotnet test --project test\UnitTests\MSTest.SourceGeneration.UnitTests\MSTest.SourceGeneration.UnitTests.csproj --no-build:

  • Without the test/Directory.Build.targets change (red): global.json defines test runner to be Microsoft.Testing.Platform. All projects must use that test runner. The following test projects are using VSTest test runner: MSTest.SourceGeneration.UnitTests.csproj. This is the same error as CI.
  • With the change (green for this contract): the runner check passes, and dotnet test goes on to launch the MTP executable. It then fails only because --no-build had no binary locally. Test execution itself is not proven here.
  • Playwright: the counterfactual is the CI NU1102 failure itself. Restoring 1.65.1, which the feed lists, wasn't executed locally.

…unmirrored Playwright bump

- e1bfb27 stopped defaulting IsTestingPlatformApplication in the platform's
  buildMultiTargeting targets. Repository test hosts import those targets from
  source, so 'dotnet test' (MTP mode) classified them as VSTest and failed.
  Set the property explicitly for EnableMSTestRunner/UseInternalTestFramework.
- Revert bundled Playwright to 1.65.1: 1.65.2 is not mirrored on dotnet-public,
  so generated PlaywrightProject restores failed with NU1102.
- Make update_bundled_playwright.py only pick versions available on both
  nuget.org and dotnet-public.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot AI balanced review requested due to automatic review settings December 4, 2026 09:51
@github-actions github-actions Bot added the state/needs-review Awaiting review from the team. label Dec 4, 2026
@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 Dec 4, 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.

🟢 Approval recommended

No active review issues remain for the repository test-host and Playwright regression fixes.

No open issues 🎉

What changed in this PR

Addresses two main-pipeline regressions while preserving the intentional removal of transitive MTP defaults in #12667.

Changes:

  • Explicitly opts repository test hosts into MTP when the application property is unset.
  • Reverts both bundled Playwright version declarations to 1.65.1.
  • Restricts automated Playwright updates to stable versions available on both feeds.

Confidence at a glance

🟡 Build and update automation — validation remains partial

The reported checks support runner recognition and feed selection. Full CI and Playwright acceptance execution remain unverified.

Test-value evidence: For revision 1add0297536ca9c470273517dcaac25817a58541, the author reports that runner validation succeeds with the fix, but execution stops because the test binary is missing. Feed-selection checks are also reported; no independent execution was performed here.

File Description
test/​Directory.Build.targets Defaults eligible repository test hosts to MTP without overriding explicit values.
Directory.Packages.props Keeps both Playwright declarations synchronized at 1.65.1.
.github/​scripts/​update_bundled_playwright.py Selects stable versions shared by nuget.org and dotnet-public.

Review effort: Balanced

@github-actions github-actions Bot added state/approved Proposal approved; ready for implementation. and removed state/needs-review Awaiting review from the team. labels Dec 4, 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.

🧪 Test quality review — PR #12727

Compared merge base 7d6618f42377bd6fb5215076e76d089fac21ef9d with head 1add0297536ca9c470273517dcaac25817a58541. Evidence applies to this head, not every intermediate commit.

Scope: 3 changed files, 0 changed test methods, 0 changed product source files, 2 parallelization configuration candidates. This analysis is static. Nothing was built or executed.

Test-value evidence

Contract / test case Counterfactual Without behavior Correct implementation Evidence / gap
Repo test hosts are MTP applications in the outer build (test/Directory.Build.targets) / existing repo dotnet test jobs Remove the new IsTestingPlatformApplication block Static: predicts dotnet test rejects the repo host as a VSTest project, the CI failure quoted in the PR Static: predicts the runner check passes Existing repo test jobs exercise this outer build and are the protection. The author reports a local reproduction and a -getProperty check (true with the change, empty without). Not reproduced here. CI was still running when this review was prepared. Executed: unverified.
Playwright coupled values stay in sync (Directory.Packages.props) / update workflow check self-test Change only one of the two coupled values Static: predicts check fails Static: predicts check passes The self-test check run on this head reports success. It covers check mode only, not paired red/green.
Pin is 1.65.1 rather than 1.65.2, avoiding NU1102 restore failures / CI restore jobs Restore the 1.65.2 pin Author reports NU1102 in internal and public CI Static: restore succeeds only when the feed mirrors the pinned version The author's live query of dotnet-public lists 1.65.1 as latest. Restore jobs were still running when this review was prepared. Executed: unverified.
Update script selects the highest stable version present on both feeds (latest_stable_version) / none Revert to nuget.org-only selection Static: predicts the script selects 1.65.2 again, reintroducing NU1102 Static: predicts it selects 1.65.1 No automated test calls latest_stable_version, and the check self-test is offline. The author's stubbed-feed run is manual and not in the repo. Static: predicts survival of this fault.

No changed contract is a bug fix or new feature with a new test. The build and CI contracts rely on existing jobs and the author's reported checks. There are no inline requests, because no test method is anchored by this PR.

🧵 Parallel safety

Status: CLEAN (specialist result, merge base versus head). No assembly's scope, worker count, or opt-out changes. The IsTestingPlatformApplication default only changes the runner choice for repo hosts. VSTest and MTP share the same parallel attribute and opt-out readers. Cross-process scheduling was not executed.

Test assembly Scope Workers Analyzer coverage
Microsoft.Testing.Platform.UnitTests MethodLevel CPU count attribute (analyzer-visible)
Microsoft.Testing.Platform.TerminalReporterContract.UnitTests MethodLevel CPU count attribute (analyzer-visible)
Microsoft.Testing.Platform.DotnetTestProtocolContract.UnitTests MethodLevel CPU count attribute (analyzer-visible)
Microsoft.Testing.Platform.MSBuild.UnitTests MethodLevel CPU count attribute (analyzer-visible)
Microsoft.Testing.Platform.ServerMode.Client.Sources.UnitTests MethodLevel CPU count attribute (analyzer-visible)
Microsoft.Testing.Extensions.UnitTests MethodLevel CPU count attribute (analyzer-visible)
Microsoft.Testing.Extensions.VSTestBridge.UnitTests MethodLevel CPU count attribute (analyzer-visible)
MSTest.Analyzers.UnitTests MethodLevel CPU count attribute (analyzer-visible)
MSTest.SourceGeneration.UnitTests MethodLevel 4 attribute (analyzer-visible)
MSTest.SelfRealExamples.UnitTests ClassLevel CPU count attribute (analyzer-visible)
MSTest.Acceptance.IntegrationTests MethodLevel CPU count attribute (analyzer-visible)
Microsoft.Testing.Platform.Acceptance.IntegrationTests MethodLevel CPU count attribute (analyzer-visible)
MSTestAdapter.UnitTests off (no opt-in; internal TestContainer engine) n/a n/a
MSTestAdapter.PlatformServices.UnitTests off (no opt-in; internal TestContainer engine) n/a n/a
TestFramework.UnitTests off (no opt-in; internal TestContainer engine) n/a n/a

Counts: Critical=0; High=0; Warning=0; Info=0. Findings: none.

Per-test assessment

Result: Not applicable. There are no changed test methods (test_count is 0), so there are no grading rows.

Inline comments: none. The changed contracts are build/CI configuration and a CI helper script. The evidence gaps above are non-blocking and have no test-method anchor. No existing review threads or prior reports exist for this head.

Follow-up (optional, non-blocking): add a small unit test for latest_stable_version with stubbed feeds, modeled on .github/scripts/test_check_unused_package_versions.py, to cover the intersection rule.

This advisory review is heuristic and non-blocking. Re-run the combined review with /review-tests, or only the parallel-safety check with /parallel-audit.

🤖 Automated content by GitHub Copilot. Generated by the Test Quality Review on PR (on open / sync) workflow. · copilot · routed: haiku55 xhigh · ~123 AIC · ⌖ ~2 AIC · ⊞ 15.9K

@microsoft-github-policy-service microsoft-github-policy-service Bot added the state/needs-review Awaiting review from the team. label Dec 4, 2026
@github-actions github-actions Bot added state/approved Proposal approved; ready for implementation. and removed state/needs-review Awaiting review from the team. state/approved Proposal approved; ready for implementation. labels Dec 4, 2026
@Evangelink
Amaury Levé (Evangelink) merged commit baec44c into main Dec 4, 2026
43 checks passed
@Evangelink
Amaury Levé (Evangelink) deleted the evangelink-fix-broken-pipelines branch December 4, 2026 11:53
@microsoft-github-policy-service microsoft-github-policy-service Bot removed the state/approved Proposal approved; ready for implementation. label Dec 4, 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