Skip to content

[tests] Add infrastructure to run monotouch-test inside app extensions - #26265

Draft
rolfbjarne wants to merge 7 commits into
mainfrom
dev/rolf/static-registrar-appextensions
Draft

[tests] Add infrastructure to run monotouch-test inside app extensions#26265
rolfbjarne wants to merge 7 commits into
mainfrom
dev/rolf/static-registrar-appextensions

Merge branch 'main' into dev/rolf/static-registrar-appextensions

82f6494
Select commit
Loading
Failed to load commit list.
Azure Pipelines / xamarin-macios-sim-pr-tests failed Aug 4, 2026 in 1h 56m 31s

Build #20260804.21 had test failures

Details

Tests

  • Failed: 88 (2.85%)
  • Passed: 2,843 (91.92%)
  • Other: 162 (5.24%)
  • Total: 3,093

Annotations

Check failure on line 44999 in Build log

See this annotation in the file changed.

@azure-pipelines azure-pipelines / xamarin-macios-sim-pr-tests

Build log #L44999

Bash exited with code '2'.

Check failure on line 43737 in Build log

See this annotation in the file changed.

@azure-pipelines azure-pipelines / xamarin-macios-sim-pr-tests

Build log #L43737

Bash exited with code '2'.

Check failure on line 13 in Build log

See this annotation in the file changed.

@azure-pipelines azure-pipelines / xamarin-macios-sim-pr-tests

Build log #L13

PowerShell exited with code '1'.

Check failure on line 43095 in Build log

See this annotation in the file changed.

@azure-pipelines azure-pipelines / xamarin-macios-sim-pr-tests

Build log #L43095

Bash exited with code '2'.

Check failure on line 1 in LinkAllTests.LinkAllTest.EnsureUIThreadException

See this annotation in the file changed.

@azure-pipelines azure-pipelines / xamarin-macios-sim-pr-tests

LinkAllTests.LinkAllTest.EnsureUIThreadException

AppKit.AppKitThreadAccessException : AppKit Consistency error: you are calling a method that can only be invoked from the UI thread.
Raw output
   at ObjCRuntime.Runtime.EnsureUIThread() in /Users/builder/azdo/_work/1/s/macios/src/ObjCRuntime/Runtime.cs:line 424
   at AppKit.NSApplication.EnsureUIThread() in /Users/builder/azdo/_work/1/s/macios/src/AppKit/NSApplication.cs:line 93
   at LinkAllTests.LinkAllTest.EnsureUIThreadException() in /Users/cloudtest/vss/_work/1/s/macios/tests/linker/link all/LinkAllMacTest.cs:line 19
   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.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor)
   at System.Reflection.MethodBaseInvoker.InterpretedInvoke_Method(Object obj, IntPtr* args)
   at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr)

Check failure on line 1 in LinkAllTests.LinkAllTest.PrintPreview_NSGraphicsContextCurrentContext

See this annotation in the file changed.

@azure-pipelines azure-pipelines / xamarin-macios-sim-pr-tests

LinkAllTests.LinkAllTest.PrintPreview_NSGraphicsContextCurrentContext

AppKit.AppKitThreadAccessException : AppKit Consistency error: you are calling a method that can only be invoked from the UI thread.
Raw output
   at ObjCRuntime.Runtime.EnsureUIThread() in /Users/builder/azdo/_work/1/s/macios/src/ObjCRuntime/Runtime.cs:line 424
   at AppKit.NSApplication.EnsureUIThread() in /Users/builder/azdo/_work/1/s/macios/src/AppKit/NSApplication.cs:line 93
   at AppKit.NSView..ctor(CGRect frameRect) in /Users/builder/azdo/_work/1/s/macios/src/build/dotnet/macos/generated-sources/AppKit/NSView.g.cs:line 2050
   at LinkAllTests.PrintableView..ctor(CGRect frame) in /Users/cloudtest/vss/_work/1/s/macios/tests/linker/link all/LinkAllMacTest.cs:line 120
   at LinkAllTests.LinkAllTest.PrintPreview_NSGraphicsContextCurrentContext() in /Users/cloudtest/vss/_work/1/s/macios/tests/linker/link all/LinkAllMacTest.cs:line 86
   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.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor)
   at System.Reflection.MethodBaseInvoker.InterpretedInvoke_Method(Object obj, IntPtr* args)
   at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr)

Check failure on line 1 in LinkAllTests.LinkAllTest.EnsureUIThreadException

See this annotation in the file changed.

@azure-pipelines azure-pipelines / xamarin-macios-sim-pr-tests

LinkAllTests.LinkAllTest.EnsureUIThreadException

AppKit.AppKitThreadAccessException : AppKit Consistency error: you are calling a method that can only be invoked from the UI thread.
Raw output
   at ObjCRuntime.Runtime.EnsureUIThread()
   at AppKit.NSApplication.EnsureUIThread()
   at LinkAllTests.LinkAllTest.EnsureUIThreadException()
   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.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor)
   at System.Reflection.MethodBaseInvoker.InterpretedInvoke_Method(Object obj, IntPtr* args)
   at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr)

Check failure on line 1 in LinkAnyTest.CommonLinkAnyTest.BackingFieldInGenericType

See this annotation in the file changed.

@azure-pipelines azure-pipelines / xamarin-macios-sim-pr-tests

LinkAnyTest.CommonLinkAnyTest.BackingFieldInGenericType

AppKit.AppKitThreadAccessException : AppKit Consistency error: you are calling a method that can only be invoked from the UI thread.
Raw output
   at ObjCRuntime.Runtime.EnsureUIThread() in /Users/builder/azdo/_work/1/s/macios/src/ObjCRuntime/Runtime.cs:line 424
   at AppKit.NSApplication.EnsureUIThread() in /Users/builder/azdo/_work/1/s/macios/src/AppKit/NSApplication.cs:line 93
   at AppKit.NSView..ctor() in /Users/builder/azdo/_work/1/s/macios/src/build/dotnet/macos/generated-sources/AppKit/NSView.g.cs:line 1937
   at LinkAnyTest.CommonLinkAnyTest.BackingFieldInGenericType() in /Users/cloudtest/vss/_work/1/s/macios/tests/linker/CommonLinkAnyTest.cs:line 60
   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.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor)
   at System.Reflection.MethodBaseInvoker.InterpretedInvoke_Method(Object obj, IntPtr* args)
   at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr)