@@ -18,6 +18,8 @@ It builds on the merged [#12412](https://github.com/microsoft/testfx/pull/12412)
1818- Modern UWP/WinUI tests with method/class ` DeploymentItemAttribute ` , including
1919 inherited attributes, return an ordinary failed-test result before any test
2020 body, through reflection, Rooting and ReflectionFree metadata providers.
21+ Ignored data sources and rows remain ignored for both folding strategies;
22+ unsupported deployment is rejected only for rows that would execute.
2123 Classic UWP uses netstandard core without that attribute.
2224- No new handshake, launcher, cancellation or cleanup policy is introduced.
2325 Existing MTP result/exit aggregation handles the failure; unaffected tests
@@ -166,6 +168,100 @@ owns the composed activation/release-branch evidence. No CI result is credited
166168for this head. The comparison source is restored and the primary worktree was
167169never mutated for the counterfactual.
168170
171+ ## Review corrections: 2026-11-16
172+
173+ The layer was rebased onto freshly fetched main
174+ ` ddb33a558d5200030053e571dba7a65de476f317 ` , preserving the new ordinary
175+ Extensions deployment forwarder and all four real-UWP localization cases.
176+ The originally observed remote head was
177+ ` 7b382c059ea63629db1f53d72632399af60c74ed ` .
178+
179+ The two live review findings concern separate boundaries:
180+
181+ - The Modern UWP helper invokes desktop MSBuild's ` InvokeTestingPlatform `
182+ target. Its returned exit is MSBuild's failure code (1), not the direct
183+ host's ` ExitCode.AtLeastOneTestFailed ` (2). Keep 1 and name/document that
184+ boundary; the direct WinUI host still correctly asserts 2.
185+ - Checking deployment at ` RunTestMethodAsync ` entry bypasses both unfolded
186+ ` TestDataSourceIgnoreMessage ` and folded ` ITestDataSourceIgnoreCapability ` .
187+ The shared ` ExecuteTestAsync ` entry is after those decisions and the
188+ ` ITestDataRow ` ignore decision, but still before initialization or test bodies.
189+ Moving the existing check there preserves aggregation and per-row context
190+ ownership without adding another ignore implementation.
191+
192+ The existing three packed WinUI metadata-provider cases now include a folded
193+ method-level deployment source and an unfolded class-level deployment source.
194+ Each has one ignored and one active row. The TRX oracle binds each identity to
195+ its expected outcome, preserves the ignored reason, and checks that all six
196+ active deployment cases fail without the body marker. The metadata-provider
197+ control still passes. Each child should return 2 with six failed, one passed
198+ and two skipped results; the outer acceptance cases should pass.
199+
200+ The first rebased build exposed missing forwarded API declarations: all six
201+ directory getters on the three UI Extensions targets, plus five internal
202+ directory labels on classic UWP. These exact additions are recorded in the
203+ unshipped baselines; no shipped API, forwarder or diagnostic was removed.
204+ The corrected 37-project shipping/fixture closure packs successfully on all
205+ declared TFMs with zero warnings and passes package content/metadata verification.
206+
207+ The same three metadata-provider regressions executed in a separately packed
208+ pre-fix worktree and failed at the intended identity/outcome assertion:
209+ ` FoldedDeployment ` and ` UnfoldedIgnoredRow ` were failed, not ignored, and the
210+ folded active row was lost. All three execute and pass with the fix, alongside
211+ 23 controls: ** 26 passed, 0 failed, 0 skipped** , outer exit 0. The independent
212+ execution plan and fresh TRX were reconciled. The same five ` TestContextTests `
213+ also pass on net48, net10.0, net11.0 and WinUI: ** 20 passed, 0 failed, 0 skipped** .
214+
215+ The real app-model preflight passed without changing Developer Mode or removing
216+ existing registrations. An additional three-row Modern UWP activation attempt
217+ was blocked before activation: the packaged app-model controller could not load
218+ ` Microsoft.Testing.Extensions.CodeCoverage ` 18.13.0.0 and produced no child TRX.
219+ All three outer rows failed; this is a launch/provenance gap, not regression
220+ sensitivity or proof of the failed-deployment exit. The attempted plain WinUI
221+ MSBuild wrapper probe also lacked the ` InvokeTestingPlatform ` import and is not
222+ credited as execution proof. The wrapper's exit mapping is established by the
223+ helper and ` InvokeTestingPlatformTask ` source, not by those setup failures.
224+
225+ ### Test-value evidence for the review correction
226+
227+ The tested executable delta is based on
228+ ` 0cf6e3b3dd85faa223ddd321d989bb49716ad9bb ` ; its source/test/API patch SHA-256 is
229+ ` A49183C031816E90BFF56BF0D26DDBB8D9ACC10A0C2B8DF7237BF8B64C7A9866 ` .
230+ The isolated comparison retains the selected WinUI assertions, with test patch
231+ ` 20C2EDCC5F29F6E22AA4C1D45B9E00FBDDB2A91E3C45733EB9D33F7A328914EA `
232+ and API-only build support patch
233+ ` BFDFD170690A64A2D3B38EBC2301E2EC71D55FDE08B1F527A997AF506A566A10 ` ,
234+ but keeps the original early deployment guard. Its three selected cases all
235+ execute and fail at the intended assertion, outer exit 2, with no skipped cases.
236+ The final-source three-case rerun passes, outer exit 0.
237+
238+ Both variants use SDK ` 12.0.100-alpha.1.26562.108 ` , desktop MSBuild from
239+ Visual Studio ` 18.13.12409.143 ` , Release packages, and separate generated consumer
240+ caches. Each of the three copied WinUI runtimes matches its own packed runtime:
241+ SHA-256 ` 0E61177155B3844288F980C8F5184F3FCD4E69E101A9D8F903E9AB1FB4FA1007 `
242+ before the fix and
243+ ` 4A801AA246303C6F550AAC6D11FDC464927313C697353B4B8A841D625C544E0E `
244+ with it. The adapter/framework package version is ` 5.0.0-dev ` , MTP is ` 3.0.0-dev ` .
245+
246+ Commands executed from the respective worktree roots:
247+
248+ ``` powershell
249+ .\build.cmd -pack -c Release -msbuildEngine vs -projects artifacts\validation\pr12446-pack.slnf -bl
250+ .\build.cmd -c Release -msbuildEngine vs -projects artifacts\validation\pr12446-tests.slnf -bl
251+ .\.dotnet\dotnet.exe test --project test\IntegrationTests\MSTest.Acceptance.IntegrationTests\MSTest.Acceptance.IntegrationTests.csproj -c Release --no-build --filter "FullyQualifiedName~MSTest.Acceptance.IntegrationTests.WinUITests.|FullyQualifiedName~MSTest.Acceptance.IntegrationTests.CoreFrameworkAssemblyTests.|FullyQualifiedName~WindowsApplicationModelPackageTests.PackedMSTestTestFramework_DeploymentItemAvailability|FullyQualifiedName~IgnoreTests.WhenSpecificDataSourceIsIgnoredViaIgnoreMessageProperty" -p:UsingDotNetTest=true -p:ArtifactsTestResultsDir=artifacts\TestResults\Release\review-green -bl:artifacts\log\Release\review-green.binlog --show-test-results all
252+ .\.dotnet\dotnet.exe test --project test\IntegrationTests\MSTest.Acceptance.IntegrationTests\MSTest.Acceptance.IntegrationTests.csproj -c Release --no-build --filter "FullyQualifiedName~WinUITests.DeploymentItemsFailBeforeBodiesIncludingInheritedAttributes" -p:UsingDotNetTest=true -p:ArtifactsTestResultsDir=artifacts\TestResults\Release\review-final-regressions -bl:artifacts\log\Release\review-final-regressions.binlog --show-test-results all
253+ ```
254+
255+ These four commands exit 0. The pack filter includes the eight package-shape
256+ owners, the pack-time global-config generator, and all acceptance fixture package
257+ owners with their source dependencies (37 projects); the test filter includes
258+ the acceptance and framework-unit owners. The comparison uses the same pack
259+ filter, builds the acceptance project, and runs the same three-case selector
260+ into ` review-red ` instead of ` review-final-regressions ` (exit 2).
261+ The four framework unit hosts use
262+ ` --treenode-filter "/*/*/TestContextTests/*" ` with distinct TRX files; each exits 0.
263+ No historical CI result is credited for the rebased head.
264+
169265## Delivery boundary
170266
171267This layer targets main only. The series coordinator owns the subsequent package
0 commit comments