Repository navigation
Fix main pipeline: MTP opt-in for repo test hosts and unmirrored Playwright 1.65.2 - #12727
Conversation
…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>
There was a problem hiding this comment.
🟢 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
There was a problem hiding this comment.
🧪 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
Agent assessment
Self-reported assessment, not an independent review.
Assessed revision:
1add0297536ca9c470273517dcaac25817a58541dotnet testreproduces the exact CI error without the fix and passes runner validation with it.↑ Outer-build evaluation shows
IsTestingPlatformApplication=truefor affected projects.↓ No full CI run or acceptance run (PlaywrightSdkTests) performed locally.
↑ dotnet-public flat2 index lists 1.65.1 as latest.
Pull request
Summary
Fixes the broken main runs internal 20261202.7 and public 20261203.4. There were two independent regressions:
dotnet testrejects 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) stoppedbuildMultiTargeting/Microsoft.Testing.Platform.targetsfrom defaultingIsTestingPlatformApplication. Repository test hosts import those targets from source intest/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: setIsTestingPlatformApplication=true(when unset) forEnableMSTestRunner/UseInternalTestFrameworktest hosts.NU1102forMicrosoft.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.pynow 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.1.65.1. A live dotnet-public query also returns1.65.1.dotnet msbuild <proj> -getProperty:IsTestingPlatformApplication(outer build) for MSTest.Analyzers.UnitTests, TestFramework.UnitTests and MSTest.Acceptance.IntegrationTests →truewith the fix, empty without it.-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:test/Directory.Build.targetschange (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.dotnet testgoes on to launch the MTP executable. It then fails only because--no-buildhad no binary locally. Test execution itself is not proven here.