Skip to content

Use reflection for deterministic disposed-mask test

0dcd181
Select commit
Loading
Failed to load commit list.
Open

[iOS] Fix ObjectDisposedException in ContentView.RemoveContentMask #34680

Use reflection for deterministic disposed-mask test
0dcd181
Select commit
Loading
Failed to load commit list.
Build Analysis / Build Analysis failed Mar 31, 2026 in 0s

.NET Result Analysis

Details

Tip

To unconditionally bypass the build analysis check (turn it green), you can use the escape mechanism feature. The completion time may vary, potentially taking several minutes, depending on the build analysis workload at the moment.

Known Repository Errors

Build Failures

maui-pr-uitests / macOS UITests / Controls / Controls Editor,Effects,FlyoutPage,Focus,Fonts,Frame,Gestures,GraphicsView / Controls Editor,Effects,FlyoutPage,Focus,Fonts,Frame,Gestures,GraphicsView

[ 🚧 Report infrastructure issue] [ 📄 Report repository issue]
    ❌PowerShell exited with code '1'.

maui-pr-uitests / macOS UITests / Controls / Controls Editor,Effects,FlyoutPage,Focus,Fonts,Frame,Gestures,GraphicsView / Publish the mac_ui_tests_controls test results

[ 🚧 Report infrastructure issue] [ 📄 Report repository issue]
    ❌There are one or more test failures detected in result files. Detailed summary of published test results can be viewed in the Tests tab.

maui-pr-uitests / macOS UITests / Controls / Controls WebView / Publish the mac_ui_tests_controls test results

[ 🚧 Report infrastructure issue] [ 📄 Report repository issue]
    ❌There are one or more test failures detected in result files. Detailed summary of published test results can be viewed in the Tests tab.

1 other jobs are failing and were not displayed due to space limitations.
Builds with failures: [maui-pr-uitests] [maui-pr-devicetests]

Known test errors

Test Failures (4 tests failed)

🔹 [All failing tests from maui-pr-devicetests]

    MauiBlazorWebView.DeviceTests-unpackaged.WorkItemExecution [Console] [Details] [Artifacts] [12.26% failure rate]
    [ 🚧 Report test infrastructure issue] [ 📄 Report test repository issue]
    This is a helix work item crash with status: BadExit. To investigate look the [Console log] / navigate to [Helix Artifacts]

    Failing Configuration

    RequestsCanBeInterceptedAndCaseInsensitiveHeadersRead(uriBase: \"https://echo.free.beeceptor.com/sample-request\") [Console] [Details] [Artifacts] [0.52% failure rate]
    [ 🚧 Report test infrastructure issue] [ 📄 Report test repository issue]

    Failing Configuration

    Exception Message
    Assert.NotEmpty() Failure: Collection was empty
    CallStack
       at Microsoft.Maui.MauiBlazorWebView.DeviceTests.Elements.BlazorWebViewTests.<>c__DisplayClass15_0.<<RequestsCanBeInterceptedAndCaseInsensitiveHeadersRead>b__0>d.MoveNext() in /_/src/BlazorWebView/tests/DeviceTests/Elements/BlazorWebViewTests.RequestInterception.cs:line 401
    --- End of stack trace from previous location ---
       at Microsoft.Maui.MauiBlazorWebView.DeviceTests.Elements.BlazorWebViewTests.<>c__DisplayClass16_0.<<RunTest>b__1>d.MoveNext() in /_/src/BlazorWebView/tests/DeviceTests/Elements/BlazorWebViewTests.RequestInterception.cs:line 440
    --- End of stack trace from previous location ---
       at Microsoft.Maui.DeviceTests.HandlerTestBasement.<>c__DisplayClass20_0.<<AttachAndRun>b__0>d.MoveNext() in /_/src/Core/tests/DeviceTests.Shared/HandlerTests/HandlerTestBasement.cs:line 226
    --- End of stack trace from previous location ---
       at Microsoft.Maui.DeviceTests.AssertionExtensions.<AttachAndRun>g__Run|53_0[T](Func`1 action) in /_/src/TestUtils/src/DeviceTests/AssertionExtensions.Windows.cs:line 278
       at Microsoft.Maui.DeviceTests.AssertionExtensions.AttachAndRun[T](FrameworkElement view, Func`2 action, IMauiContext mauiContext) in /_/src/TestUtils/src/DeviceTests/AssertionExtensions.Windows.cs:line 243
       at Microsoft.Maui.DeviceTests.AssertionExtensions.AttachAndRun[T](FrameworkElement view, Func`2 action, IMauiContext mauiContext) in /_/src/TestUtils/src/DeviceTests/AssertionExtensions.Windows.cs:line 256
       at Microsoft.Maui.DeviceTests.AssertionExtensions.<>c__DisplayClass12_0`2.<<AttachAndRun>g__Run|0>d.MoveNext() in /_/src/TestUtils/src/DeviceTests/AssertionExtensions.cs:line 190
    --- End of stack trace from previous location ---
       at Microsoft.Maui.MauiBlazorWebView.DeviceTests.Elements.BlazorWebViewTests.RunTest(Func`3 test) in /_/src/BlazorWebView/tests/DeviceTests/Elements/BlazorWebViewTests.RequestInterception.cs:line 430
    --- End of stack trace from previous location ---
    RequestsCanBeInterceptedAndCustomDataReturnedForDifferentHosts(uriBase: \"https://echo.free.beeceptor.com/sample-request\") [Console] [Details] [Artifacts] [2.73% failure rate]
    [ 🚧 Report test infrastructure issue] [ 📄 Report test repository issue]

    Failing Configuration

    Exception Message
    Assert.Equal() Failure: Strings differ
               ↓ (pos 0)
    Expected: "Hello Matthew (param1=value1, param2=valu"···
    Actual:   "Failed to fetch"
               ↑ (pos 0)
    CallStack
       at Microsoft.Maui.MauiBlazorWebView.DeviceTests.Elements.BlazorWebViewTests.<>c__DisplayClass12_0.<<RequestsCanBeInterceptedAndCustomDataReturnedForDifferentHosts>b__0>d.MoveNext() in /_/src/BlazorWebView/tests/DeviceTests/Elements/BlazorWebViewTests.RequestInterception.cs:line 154
    --- End of stack trace from previous location ---
       at Microsoft.Maui.MauiBlazorWebView.DeviceTests.Elements.BlazorWebViewTests.<>c__DisplayClass16_0.<<RunTest>b__1>d.MoveNext() in /_/src/BlazorWebView/tests/DeviceTests/Elements/BlazorWebViewTests.RequestInterception.cs:line 440
    --- End of stack trace from previous location ---
       at Microsoft.Maui.DeviceTests.HandlerTestBasement.<>c__DisplayClass20_0.<<AttachAndRun>b__0>d.MoveNext() in /_/src/Core/tests/DeviceTests.Shared/HandlerTests/HandlerTestBasement.cs:line 226
    --- End of stack trace from previous location ---
       at Microsoft.Maui.DeviceTests.AssertionExtensions.<AttachAndRun>g__Run|53_0[T](Func`1 action) in /_/src/TestUtils/src/DeviceTests/AssertionExtensions.Windows.cs:line 278
       at Microsoft.Maui.DeviceTests.AssertionExtensions.AttachAndRun[T](FrameworkElement view, Func`2 action, IMauiContext mauiContext) in /_/src/TestUtils/src/DeviceTests/AssertionExtensions.Windows.cs:line 243
       at Microsoft.Maui.DeviceTests.AssertionExtensions.AttachAndRun[T](FrameworkElement view, Func`2 action, IMauiContext mauiContext) in /_/src/TestUtils/src/DeviceTests/AssertionExtensions.Windows.cs:line 256
       at Microsoft.Maui.DeviceTests.AssertionExtensions.<>c__DisplayClass12_0`2.<<AttachAndRun>g__Run|0>d.MoveNext() in /_/src/TestUtils/src/DeviceTests/AssertionExtensions.cs:line 190
    --- End of stack trace from previous location ---
       at Microsoft.Maui.MauiBlazorWebView.DeviceTests.Elements.BlazorWebViewTests.RunTest(Func`3 test) in /_/src/BlazorWebView/tests/DeviceTests/Elements/BlazorWebViewTests.RequestInterception.cs:line 430
    --- End of stack trace from previous location ---

🔹 [All failing tests from maui-pr-uitests]

    Microsoft.Maui.TestCases.Tests.Issues.Issue32477(Mac).VerifyFlyoutVerticalScrollModeDisabledOnAndroid [Details] [1.30% failure rate]
    [ 🚧 Report test infrastructure issue] [ 📄 Report test repository issue]

    Failing Configuration

    Exception Message
    OpenQA.Selenium.StaleElementReferenceException : The element ""Item 5" Button" identified by "717075A1-FF74-4C0E-9449-5416EC4F1153" is not present on the current view (No matches found for Elements matching predicate '"Item 5" IN identifiers' from input {(
        Window, identifier: 'SceneWindow', title: 'Controls.TestCases.HostApp',
        Button, identifier: '_XCUI:FullScreenWindow',
        Group,
        Group
    )}). Make sure the current view is the expected one; For documentation on this error, please visit: https://www.selenium.dev/documentation/webdriver/troubleshooting/errors#stale-element-reference-exception
    CallStack
       at OpenQA.Selenium.WebDriver.UnpackAndThrowOnError(Response errorResponse, String commandToExecute)
       at OpenQA.Selenium.WebDriver.ExecuteAsync(String driverCommandToExecute, Dictionary`2 parameters)
       at OpenQA.Selenium.WebDriver.InternalExecute(String driverCommandToExecute, Dictionary`2 parameters)
       at OpenQA.Selenium.WebElement.get_Location()
       at OpenQA.Selenium.Appium.AppiumElement.get_Location()
       at UITest.Appium.AppiumScrollActions.ScrollToDown(AppiumDriver driver, AppiumElement element, ScrollStrategy strategy, Double swipePercentage, Int32 swipeSpeed, Boolean withInertia) in /_/src/TestUtils/src/UITest.Appium/Actions/AppiumScrollActions.cs:line 205
       at UITest.Appium.AppiumScrollActions.ScrollDown(IDictionary`2 parameters) in /_/src/TestUtils/src/UITest.Appium/Actions/AppiumScrollActions.cs:line 97
       at UITest.Appium.AppiumScrollActions.Execute(String commandName, IDictionary`2 parameters) in /_/src/TestUtils/src/UITest.Appium/Actions/AppiumScrollActions.cs:line 57
       at UITest.Appium.AppiumCommandExecutor.Execute(String commandName, IDictionary`2 parameters) in /_/src/TestUtils/src/UITest.Appium/Actions/AppiumCommandExecutor.cs:line 20
       at UITest.Appium.HelperExtensions.ScrollDown(IApp app, IUIElement element, ScrollStrategy strategy, Double swipePercentage, Int32 swipeSpeed, Boolean withInertia) in /_/src/TestUtils/src/UITest.Appium/HelperExtensions.cs:line 1379
       at UITest.Appium.HelperExtensions.ScrollDown(IApp app, String marked, ScrollStrategy strategy, Double swipePercentage, Int32 swipeSpeed, Boolean withInertia) in /_/src/TestUtils/src/UITest.Appium/HelperExtensions.cs:line 1356
       at Microsoft.Maui.TestCases.Tests.Issues.Issue32477.VerifyFlyoutVerticalScrollModeDisabledOnAndroid() in /_/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/Issue32477.cs:line 24
       at System.RuntimeMethodHandle.InvokeMethod(ObjectHandleOnStack target, Void** arguments, ObjectHandleOnStack sig, BOOL isConstructor, ObjectHandleOnStack result)
       at System.RuntimeMethodHandle.InvokeMethod(ObjectHandleOnStack target, Void** arguments, ObjectHandleOnStack sig, BOOL isConstructor, ObjectHandleOnStack result)
       at System.Reflection.MethodBaseInvoker.InterpretedInvoke_Method(Object obj, IntPtr* args)
       at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
    

Was this helpful? Yes No