Repository navigation
[release/9.0-staging] Backport test-only fixes for Process MainWindow and NFloat tensor tests - #137308
Merged
Conversation
…tic RemoteExecutor helper (#125907) Co-authored-by: copilot-swe-agent[bot] <[email protected]> Co-authored-by: danmoseley <[email protected]> Co-authored-by: adamsitnik <[email protected]> (cherry picked from commit a4bfa0d)
Minimal backport of the DetermineTolerance fix from #127868: use NFloat.Size and return floatTolerance (not doubleTolerance, which is null) when NFloat is 4 bytes. Co-authored-by: Copilot App <[email protected]>
|
Azure Pipelines: Successfully started running 3 pipeline(s). 12 pipeline(s) were filtered out due to trigger conditions. There may be pipelines that require an authorized user to comment /azp run to run. |
Contributor
|
Tagging subscribers to this area: @dotnet/area-system-diagnostics-process |
akoeplinger
approved these changes
Nov 11, 2026
lewing
temporarily deployed
to
copilot-pat-pool
November 11, 2026 17:32 — with
GitHub Actions
Inactive
lewing
temporarily deployed
to
copilot-pat-pool
November 11, 2026 17:33 — with
GitHub Actions
Inactive
Contributor
|
Tagging subscribers to this area: @dotnet/runtime-infrastructure |
Member
Author
|
/ba-g mono device crashes are known |
3 tasks
This branch was previously deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes Issue N/A (CI test reliability)
main PR #125907, #127868 (partial; see below)
Description
Backports two test-only fixes from
mainfor tests that fail in release/9.0 rolling CI but not onmain.ProcessTests.MainWindowHandle_GetWithGui_ShouldRefresh_WindowsandMainWindowTitle_GetWithGui_ShouldRefresh_Windows, which launchnotepad.exeand poll for a window, with a singleMainWindowHandle_And_Title_GetWithGui_ShouldRefresh_Windows. That test shows aMessageBoxWin a RemoteExecutor child and waits for a "ready" signal. It is cherry-picked as-is; the only conflict was theusingblock inProcessTests.Windows.cs.Helpers.DetermineToleranceNFloat change is taken: useNFloat.Sizeand returnfloatToleranceinstead ofdoubleTolerancein the 4-byte case. Before this change, on 32-bit platformsdoubleToleranceisnullthere, so casting it toNFloatthrowsInvalidOperationException: Nullable object must have a valuein everyNFloatGenericTensorPrimitivestest that uses the default tolerance. The rest of Fix tensor EqualWithTolerance test helper #127868 is not taken: theAssertEqualWithTolerancerewrite, the newAssertExtensions.Equal(NFloat, ...)overloads and the call-site changes. It conflicts on this branch, touches shared TestUtilities, and tightens NaN, ±inf and ±0 comparisons for all types, which could expose new, unrelated mismatches on 9.0.Evidence
Source: Kusto
engsrvprod/engineeringdataAzureDevOpsTests, non-PR CI, last 21 days. Neither test fails onmain.ProcessTests.MainWindowTitle_GetWithGui_ShouldRefresh_WindowsandMainWindowHandle_GetWithGui_ShouldRefresh_Windowsfail onWindows.11.Amd64.Client.Openwith an empty title or handle, on 10.0, 9.0 and 8.0.NFloatGenericTensorPrimitives.*fail on 32-bit (x86, arm32) withNullable object must have a valueon 10.0 and 9.0.Customer Impact
None; this changes test code only. It reduces noise in release/9.0 CI.
Regression
No. These are pre-existing test bugs and flakiness.
Testing
ProcessTests.Windows.csis compiled only for the-windowsTFM, and thatProcessTestBase.CreateProcess(Func<int>)exists on this branch.[OuterLoop]and runs on Windows; the NFloat fix only takes effect on 32-bit platforms.Risk
Low. The change is limited to two test projects. The Process change matches
main. The tensor change is a 3-line fix to how the default tolerance is chosen for NFloat on 32-bit; 64-bit behavior is unchanged.Package authoring no longer needed in .NET 9
IMPORTANT: Starting with .NET 9, you no longer need to edit a NuGet package's csproj to enable building and bump the version.
Keep in mind that we still need package authoring in .NET 8 and older versions.
Note
This PR was AI-generated (GitHub Copilot) and reviewed by the submitter.