Repository navigation
[main] Update dependencies from microsoft/testfx - #56993
Conversation
…261106.8 On relative base path root Microsoft.Testing.Platform From Version 2.6.0-preview.26531.5 -> To Version 3.0.0-preview.26556.8 MSTest , MSTest.Sdk From Version 4.6.0-preview.26531.5 -> To Version 5.0.0-preview.26556.8
|
Azure Pipelines: Successfully started running 1 pipeline(s). 2 pipeline(s) were filtered out due to trigger conditions. There may be pipelines that require an authorized user to comment /azp run to run. |
|
Warning Threat Detection Engine Failure — The analysis engine could not complete. This is a tooling failure, not a security finding. What happenedThe threat detection engine failed to produce results. Review the workflow run logs for details. 🔍 Build Failure AnalysisSummary — The CI build fails in all 10 legs with the identical compiler error Root cause:
|
| Code | Project | File:Line | Message |
|---|---|---|---|
CS4014 |
dotnet-watch.Tests |
InProcTestWatcher.cs:49 |
Because this call is not awaited, execution of the current method continues before the call is completed. |
| (none) | (build) | — | Build failed. (summary record emitted by MSBuild) |
🤖 Generated by the Build Failure Analysis workflow using (a href="(dev.azure.com/redacted) · commit bbd0fc6
🤖 Automated content by GitHub Copilot. Generated by the Build Failure Analysis workflow. · copilot · sonnet50 · 207.9 AIC · ⊞ 7.6K · [◷]( · ◷)
Discard the synchronous assertion result so watcher shutdown still requests cancellation before awaiting completion. Document why awaiting the null assertion is not a safe fix. Co-authored-by: Copilot App <[email protected]>
|
Fixed the MSTest 5's The fix explicitly discards that return value: _ = Assert.IsNotNull(_lazyTask);This preserves the existing null assertion, shutdown cancellation, and subsequent Validation
The passing cases were .\.dotnet\dotnet.exe scripts\RunTests.cs -- --project test\dotnet-watch.Tests\dotnet-watch.Tests.csproj --filter 'FullyQualifiedName~CtrlRTests' --test-binlogsThe test binaries resolve The harness used Limits and separate failures: The full local redist build was blocked by the missing NativeAOT linker. A broader Hot Reload run reached |
Update MSTest and MSTest.Sdk to 5.0.0-preview.26559.7 and Microsoft.Testing.Platform to 3.0.0-preview.26559.7 from the same upstream commit. Restore the ordinary Assert.IsNotNull statement and remove the obsolete return-value guidance. Co-authored-by: Copilot App <[email protected]>
This pull request updates the following dependencies.
From https://github.com/microsoft/testfx
MSTest).Assert.IsNotNull compatibility
These packages contain microsoft/testfx#12273, which restores the synchronous, void-returning
Assert.IsNotNullAPI. All three published nupkgs embed the same source commit above.The temporary
_ = Assert.IsNotNull(_lazyTask);workaround and its return-value guidance have been removed. The original assertion statement now compiles withoutCS4014, and watcher teardown still requests cancellation before awaiting the original task. Relative to the PR base, onlyeng/Version.Details.xml, generatedeng/Version.Details.props, andglobal.jsonremain changed.Validation
Windows x64, Debug, bootstrap SDK
12.0.100-alpha.1.26480.102; source-built SDK12.0.100-dev, runtime12.0.0-alpha.1.26528.111.0; zero warnings and errorsdotnet-watch.Tests,CtrlRTests0; 2 executed, 2 passed, 0 failed, 0 skippedMSTest.TestFramework/MSTest.TestAdapter5.0.0-preview.26559.7;Microsoft.Testing.Platform3.0.0-preview.26559.7The two passing tests are
RestartsBuildandCancelsWaitForFileChange. Both exerciseInProcTestWatcher.DisposeAsync, including its cancellation-before-await ordering, against the source-built SDK. The TRX was checked for those exact identities and outcomes.The build used the installed C++ environment in the same process, without changing machine-wide settings:
Both commands used
DOTNET_ADD_GLOBAL_TOOLS_TO_PATH=0, an isolatedDOTNET_CLI_HOME, and task-ownedTEMP/TMP. The test run also setDOTNET_SDK_TEST_EXECUTION_DIRECTORYoutside the checkout so the repository'sglobal.jsoncould not redirect child commands to the bootstrap SDK; the product host resolved12.0.100-devthere.Retained local evidence:
artifacts\log\Debug\testfx-update-native-env.binlogartifacts\log\test-runs\dotnet-watch.Tests\20261110-103848-362448\build.binlogartifacts\log\test-runs\dotnet-watch.Tests\20261110-103848-362448\test-results.trxThe full test suite and all-platform CI results are not claimed.