Skip to content

[src] Enable DisableRuntimeMarshalling and fix remaining non-blittable P/Invokes - #27123

Open
rolfbjarne wants to merge 3 commits into
mainfrom
dev/rolf/fix-blittablepinvokes-test
Open

rolfbjarne wants to merge 3 commits into
mainfrom
dev/rolf/fix-blittablepinvokes-test

Conversation

@rolfbjarne

Copy link
Copy Markdown
Member

Description

This PR enables [assembly: DisableRuntimeMarshalling] across the platform assemblies (Microsoft.iOS.dll, Microsoft.tvOS.dll, Microsoft.macOS.dll, Microsoft.MacCatalyst.dll), strengthens the BlittablePInvokes Cecil test to catch all non-blittable P/Invoke patterns, and updates the remaining P/Invokes to be blittable.

Changes

  • src/AssemblyInfo.cs.in:
    • Added [assembly: DisableRuntimeMarshalling].
  • tests/cecil-tests/BlittablePInvokes.cs:
    • Added HasDisableRuntimeMarshallingAttribute to verify that all platform implementation assemblies have [DisableRuntimeMarshalling].
    • Fixed IsBlittableValueType to check type.IsArray before calling type.Resolve () (since ArrayType.Resolve () in Mono.Cecil resolves to the element type, which caused arrays of value types like byte[] to be treated as blittable).
    • Rejected non-blittable primitives (bool, char) in IsBlittableValueType (which previously slipped through the struct field recursion check because their BCL struct definitions contain a single self-referential m_value field).
    • Rejected P/Invokes that specify a CharSet (!method.PInvokeInfo.IsCharSetNotSpec).
    • Removed "System.Runtime.InteropServices.NFloat&" from typesWeLike so out/ref nfloat is rejected like all other ByReference types.
    • Validated parameter and return types of FunctionPointerType (delegate* unmanaged<...>), and rejected IsAutoLayout structs, IsGenericInstance, and IsRequiredModifier/IsOptionalModifier.
    • Keyed blitCache by type.FullName instead of type.Name and cleared localResult per parameter in IsMethodBlittable.
  • P/Invoke and struct updates:
    • Converted 38 array-based P/Invokes in Accelerate, CoreFoundation, CoreGraphics, CoreText, Foundation, ObjCRuntime, and Security to use pointers and fixed / stackalloc.
    • Removed unnecessary CharSet (and redundant CallingConvention = CallingConvention.Cdecl) from P/Invokes in CoreFoundation, CoreText, Network, and ObjCRuntime, and changed char* in CFString P/Invokes to ushort*.
    • Replaced out nfloat in CTLine and CTRun with nfloat*.
    • Updated CGEventTapInformation and MPSImageHistogramInfo to use private fields (byte for boolean fields) and public property accessors under XAMCORE_5_0, added *_Blittable structs under !XAMCORE_5_0, and updated bgen to honor [NativeName] on value types when generating P/Invoke names.
    • Added/updated XML documentation for all modified public APIs and updated tests/cecil-tests/Documentation.KnownFailures.txt.

Fixes #15684.

Note

This pull request was generated with the assistance of GitHub Copilot.

rolfbjarne and others added 3 commits October 28, 2026 17:31
…kes blittable

In Mono.Cecil, ArrayType.Resolve () resolves to the array's element type.
Because IsBlittableValueType did not check type.IsArray before calling
type.Resolve (), arrays of value types were mistakenly treated as blittable
value types.

- Reject array types in IsBlittableValueType.
- Key blitCache by type.FullName instead of type.Name.
- Clear localResult between parameter checks in IsMethodBlittable.
- Convert the 38 discovered array-based P/Invokes across Accelerate,
  CoreFoundation, CoreGraphics, CoreText, Foundation, ObjCRuntime, and
  Security to use pointers and fixed blocks.

Co-authored-by: Copilot App <[email protected]>
…ning P/Invokes

- Add [assembly: DisableRuntimeMarshalling] to src/AssemblyInfo.cs.in and a
  Cecil test (HasDisableRuntimeMarshallingAttribute) verifying it is present.
- Strengthen BlittablePInvokes test to reject:
  - P/Invokes specifying a CharSet.
  - Non-blittable primitives (bool, char), including inside structs or pointers.
  - ByRef NFloat (out/ref nfloat).
  - Non-blittable parameter/return types inside function pointers.
  - Auto-layout structs, generic instances, and required/optional modifiers.
- Remove unnecessary CharSet attributes from P/Invokes in CoreFoundation,
  CoreText, Network, and ObjCRuntime, and change char* in CFString P/Invokes
  to ushort*.
- Replace out nfloat in CoreText (CTLine, CTRun) with nfloat* and fixed blocks.
- Add blittable wrapper structs (CGEventTapInformation_Blittable and
  MPSImageHistogramInfo_Blittable) for structs with bool fields, and teach bgen
  to use [NativeName] when generating P/Invoke names for value types.

Fixes #15684.

Co-authored-by: Copilot App <[email protected]>
- Update CGEventTapInformation and MPSImageHistogramInfo under XAMCORE_5_0 to
  use private fields with public property accessors (and byte backing fields
  for bool properties), and guard the *_Blittable structs and consuming
  workarounds with !XAMCORE_5_0.
- Remove redundant CallingConvention = CallingConvention.Cdecl from the
  modified Network P/Invokes.
- Add and improve XML documentation for all modified public APIs, inline
  referenced external XML docs, and update Documentation.KnownFailures.txt.

Co-authored-by: Copilot App <[email protected]>
Copilot AI balanced review requested due to automatic review settings October 28, 2026 16:32
@rolfbjarne
rolfbjarne requested a review from dalexsoto as a code owner October 28, 2026 16:32

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

Unresolved interop regressions can cause missing native SIMD symbols and vnode file-opening failures, while empty-array stream calls pass null buffers that break managed overrides.

4 open issues
What changed in this PR

This PR enables disabled runtime marshalling in the Apple platform assemblies, advancing #15684’s goal of reducing reliance on runtime marshalling support.

Changes:

  • Converts remaining array-based and by-reference P/Invokes to pointers with explicit buffer pinning.
  • Adds blittable struct adapters and updates binding-generator naming.
  • Strengthens Cecil validation and updates public API documentation.
File Description
tests/​cecil-tests/​Documentation.KnownFailures.txt Removes entries for newly documented APIs.
tests/​cecil-tests/​BlittablePInvokes.cs Expands interop checks and verifies the assembly attribute.
src/​Security/​Items.cs Pins password buffers for pointer-based imports.
src/​ObjCRuntime/​Runtime.cs Pins UTF-8 buffers for native logging.
src/​ObjCRuntime/​Class.cs Removes unnecessary charset metadata.
src/​Network/​NWWebSocketResponse.cs Simplifies imports and documents response APIs.
src/​Network/​NWWebSocketOptions.cs Simplifies imports and documents configuration methods.
src/​Network/​NWEndpoint.cs Simplifies URL imports and adds documentation.
src/​Network/​NWBrowserDescriptor.cs Simplifies Bonjour imports and documents properties.
src/​MetalPerformanceShaders/​MPSDefs.cs Adds blittable histogram storage and conversions.
src/​metalperformanceshaders.cs Routes histogram bindings through compatibility adapters.
src/​Foundation/​NSOutputStream.cs Pins array buffers for native writes.
src/​Foundation/​NSInputStream.cs Pins array buffers for native reads.
src/​CoreText/​CTRun.cs Converts glyph buffers and metric outputs to pointers.
src/​CoreText/​CTParagraphStyle.cs Pins paragraph settings during native creation.
src/​CoreText/​CTLine.cs Uses pointers for metric outputs.
src/​CoreText/​CTFrame.cs Pins line-origin output buffers.
src/​CoreText/​CTFont.cs Converts glyph operations to pointer-based imports.
src/​CoreGraphics/​CGPath.cs Pins rectangle and point arrays.
src/​CoreGraphics/​CGEvent.cs Adds blittable event-tap information storage.
src/​CoreGraphics/​CGContext.cs Pins drawing buffers and expands documentation.
src/​CoreGraphics/​CGColorSpace.cs Pins color tables and inlines documentation.
src/​CoreGraphics/​CGBitmapContext.cs Passes retained pinned-buffer addresses directly.
src/​CoreFoundation/​CFString.cs Uses UTF-16 pointers without charset metadata.
src/​CoreFoundation/​CFMutableString.cs Removes charset metadata and documents append behavior.
src/​CoreFoundation/​CFDictionary.cs Uses pointers for dictionary key/value buffers.
src/​bgen/​Generator.cs Applies native names to generated interop signatures.
src/​AssemblyInfo.cs.in Enables DisableRuntimeMarshalling.
src/​Accelerate/​vImageTypes.cs Uses pinned buffers and stack-allocated pointer arrays.
docs/​api/​CoreGraphics/​CGContext.xml Removes the external AddLines documentation block.
docs/​api/​CoreGraphics/​CGColorSpace.xml Removes documentation moved into source comments.

Review effort: Balanced

Comment thread src/AssemblyInfo.cs.in
[assembly: AssemblyCompany ("Microsoft Corp.")]

[assembly: AssemblyMetadata ("IsTrimmable", "True")]
[assembly: DisableRuntimeMarshalling]
Comment thread src/bgen/Generator.cs
Comment on lines +237 to +239
var nativeNameAttr = AttributeManager.GetCustomAttribute<ObjCRuntime.NativeNameAttribute> (mai.Type);
if (!string.IsNullOrEmpty (nativeNameAttr?.NativeName))
return nativeNameAttr.NativeName;
Comment on lines +45 to +46
fixed (byte* ptr = buffer) {
var result = objc_msgSend (Handle, Selector.GetHandle (selReadMaxLength), (IntPtr) ptr, len);
Comment on lines +33 to +34
fixed (byte* ptr = buffer) {
var result = objc_msgSend (Handle, Selector.GetHandle (selWriteMaxLength), (IntPtr) ptr, len);
@vs-mobiletools-engineering-service2

Copy link
Copy Markdown
Collaborator

✅ API diff for current PR / commit

NET (empty diffs)

✅ API diff vs stable

NET (empty diffs)

ℹ️ Generator diff

Generator Diff: vsdrops (html) vsdrops (raw diff) gist (raw diff) - Please review changes)

Pipeline on Agent
Hash: 45b07261b253146201a135c5fbcc2d1ae7de1271 [PR build]

@vs-mobiletools-engineering-service2

Copy link
Copy Markdown
Collaborator

🔥 [PR Build #45b0726] Build failed (Build macOS tests) 🔥

Build failed for the job 'Build macOS tests' (with job status 'Failed')

Pipeline on Agent
Hash: 45b07261b253146201a135c5fbcc2d1ae7de1271 [PR build]

@vs-mobiletools-engineering-service2

Copy link
Copy Markdown
Collaborator

🔥 [CI Build #45b0726] Test results 🔥

Test results

❌ Tests failed on VSTS: test results

5 tests crashed, 138 tests failed, 56 tests passed.

Failures

❌ dotnettests tests (iOS)

1 tests failed, 0 tests passed.

Failed tests

  • DotNet tests: Failed (Execution failed with exit code 1)
    • Xamarin.Tests.AppIconTest.AlternateAppIcon(iOS,"iossimulator-arm...: 'dotnet build' failed with exit code 1
      Full command: /Users/cloudtest/vss/_work/1/s/macios/builds/downloads/dotnet-sdk-12.0.100-...
    • Xamarin.Tests.AppIconTest.AlternateAppIcons(iOS,"iossimulator-ar...: 'dotnet build' failed with exit code 1
      Full command: /Users/cloudtest/vss/_work/1/s/macios/builds/downloads/dotnet-sdk-12.0.100-...
    • Xamarin.Tests.AppIconTest.AppIcon_1(iOS,"iossimulator-arm64"): 'dotnet build' failed with exit code 1
      Full command: /Users/cloudtest/vss/_work/1/s/macios/builds/downloads/dotnet-sdk-12.0.100-...
    • ... and 83 more

Html Report (VSDrops) Download

❌ dotnettests tests (MacCatalyst)

1 tests failed, 0 tests passed.

Failed tests

  • DotNet tests: Failed (Execution failed with exit code 1)
    • Xamarin.Tests.AppIconTest.AlternateAppIcon(MacCatalyst,"maccatal...: 'dotnet build' failed with exit code 1
      Full command: /Users/cloudtest/vss/_work/1/s/macios/builds/downloads/dotnet-sdk-12.0.100-...
    • Xamarin.Tests.AppIconTest.AlternateAppIcon(MacCatalyst,"maccatal...: 'dotnet build' failed with exit code 1
      Full command: /Users/cloudtest/vss/_work/1/s/macios/builds/downloads/dotnet-sdk-12.0.100-...
    • Xamarin.Tests.AppIconTest.AlternateAppIcons(MacCatalyst,"maccata...: 'dotnet build' failed with exit code 1
      Full command: /Users/cloudtest/vss/_work/1/s/macios/builds/downloads/dotnet-sdk-12.0.100-...
    • ... and 63 more

Html Report (VSDrops) Download

❌ dotnettests tests (macOS)

1 tests failed, 0 tests passed.

Failed tests

  • DotNet tests: Failed (Execution failed with exit code 1)
    • Xamarin.Tests.AppIconTest.AlternateAppIcon(MacOSX,"osx-arm64;osx...: 'dotnet build' failed with exit code 1
      Full command: /Users/cloudtest/vss/_work/1/s/macios/builds/downloads/dotnet-sdk-12.0.100-...
    • Xamarin.Tests.AppIconTest.AlternateAppIcon(MacOSX,"osx-x64"): 'dotnet build' failed with exit code 1
      Full command: /Users/cloudtest/vss/_work/1/s/macios/builds/downloads/dotnet-sdk-12.0.100-...
    • Xamarin.Tests.AppIconTest.AlternateAppIcons(MacOSX,"osx-arm64;os...: 'dotnet build' failed with exit code 1
      Full command: /Users/cloudtest/vss/_work/1/s/macios/builds/downloads/dotnet-sdk-12.0.100-...
    • ... and 137 more

Html Report (VSDrops) Download

❌ dotnettests tests (tvOS)

1 tests failed, 0 tests passed.

Failed tests

  • DotNet tests: Failed (Execution failed with exit code 1)
    • Xamarin.Tests.AppIconTest.AlternateAppIcon(TVOS,"tvossimulator-a...: 'dotnet build' failed with exit code 1
      Full command: /Users/cloudtest/vss/_work/1/s/macios/builds/downloads/dotnet-sdk-12.0.100-...
    • Xamarin.Tests.AppIconTest.AlternateAppIcons(TVOS,"tvossimulator-...: 'dotnet build' failed with exit code 1
      Full command: /Users/cloudtest/vss/_work/1/s/macios/builds/downloads/dotnet-sdk-12.0.100-...
    • Xamarin.Tests.AppIconTest.AppIcon_1(TVOS,"tvossimulator-arm64"): 'dotnet build' failed with exit code 1
      Full command: /Users/cloudtest/vss/_work/1/s/macios/builds/downloads/dotnet-sdk-12.0.100-...
    • ... and 48 more

Html Report (VSDrops) Download

❌ framework tests

1 tests failed, 1 tests passed.

Failed tests

  • framework-test/macOS/Debug: BuildFailure

Html Report (VSDrops) Download

❌ fsharp tests

3 tests failed, 1 tests passed.

Failed tests

  • fsharp/macOS/Debug: BuildFailure
  • fsharp/iOS - simulator/Debug: BuildFailure
  • fsharp/tvOS - simulator/Debug: BuildFailure ( (failed to parse the logs: The Writer is closed or in error state.))

Html Report (VSDrops) Download

❌ interdependent-binding-projects tests

3 tests failed, 1 tests passed.

Failed tests

  • interdependent-binding-projects/macOS/Debug: BuildFailure ( (failed to parse the logs: The Writer is closed or in error state.))
  • interdependent-binding-projects/iOS - simulator/Debug: BuildFailure
  • interdependent-binding-projects/tvOS - simulator/Debug: BuildFailure ( (failed to parse the logs: The Writer is closed or in error state.))

Html Report (VSDrops) Download

❌ introspection tests

4 tests failed, 0 tests passed.

Failed tests

  • introspection/macOS/Debug: BuildFailure
  • introspection/Mac Catalyst/Debug: BuildFailure ( (failed to parse the logs: The Writer is closed or in error state.))
  • introspection/iOS - simulator/Debug: BuildFailure
  • introspection/tvOS - simulator/Debug: BuildFailure

Html Report (VSDrops) Download

❌ linker tests (iOS)

10 tests failed, 11 tests passed.

Failed tests

  • dont link/iOS - simulator/Debug: BuildFailure
  • dont link/iOS - simulator/Release: BuildFailure
  • dont link/iOS - simulator/Debug (PrepareAssemblies, CoreCLR, Dynamic Registrar): BuildFailure
  • dont link/iOS - simulator/Debug (PrepareAssemblies, CoreCLR, Managed Static Registrar): BuildFailure
  • dont link/iOS - simulator/Debug (PrepareAssemblies, CoreCLR, Trimmable Static Registrar): BuildFailure ( (failed to parse the logs: The Writer is closed or in error state.))
  • dont link/iOS - simulator/Release (PrepareAssemblies, CoreCLR, Dynamic Registrar): BuildFailure
  • dont link/iOS - simulator/Release (PrepareAssemblies, CoreCLR, Managed Static Registrar): BuildFailure ( (failed to parse the logs: The Writer is closed or in error state.))
  • dont link/iOS - simulator/Release (PrepareAssemblies, CoreCLR, Trimmable Static Registrar): BuildFailure ( (failed to parse the logs: The Writer is closed or in error state.))
  • trimmode copy/iOS - simulator/Debug: BuildFailure
  • trimmode copy/iOS - simulator/Release: BuildFailure

Html Report (VSDrops) Download

❌ linker tests (MacCatalyst)

10 tests failed, 11 tests passed.

Failed tests

  • dont link/Mac Catalyst/Debug: BuildFailure
  • dont link/Mac Catalyst/Debug (PrepareAssemblies, CoreCLR, Dynamic Registrar): BuildFailure
  • dont link/Mac Catalyst/Debug (PrepareAssemblies, CoreCLR, Managed Static Registrar): BuildFailure ( (failed to parse the logs: The Writer is closed or in error state.))
  • dont link/Mac Catalyst/Debug (PrepareAssemblies, CoreCLR, Trimmable Static Registrar): BuildFailure
  • dont link/Mac Catalyst/Release: BuildFailure
  • dont link/Mac Catalyst/Release (PrepareAssemblies, CoreCLR, Dynamic Registrar): BuildFailure
  • dont link/Mac Catalyst/Release (PrepareAssemblies, CoreCLR, Managed Static Registrar): BuildFailure ( (failed to parse the logs: The Writer is closed or in error state.))
  • dont link/Mac Catalyst/Release (PrepareAssemblies, CoreCLR, Trimmable Static Registrar): BuildFailure
  • trimmode copy/Mac Catalyst/Debug: BuildFailure
  • trimmode copy/Mac Catalyst/Release: BuildFailure ( (failed to parse the logs: The Writer is closed or in error state.))

Html Report (VSDrops) Download

❌ linker tests (macOS)

10 tests failed, 11 tests passed.

Failed tests

  • dont link/macOS/Debug: BuildFailure
  • dont link/macOS/Debug (PrepareAssemblies, CoreCLR, Dynamic Registrar): BuildFailure ( (failed to parse the logs: The Writer is closed or in error state.))
  • dont link/macOS/Debug (PrepareAssemblies, CoreCLR, Managed Static Registrar): BuildFailure ( (failed to parse the logs: The Writer is closed or in error state.))
  • dont link/macOS/Debug (PrepareAssemblies, CoreCLR, Trimmable Static Registrar): BuildFailure
  • dont link/macOS/Release: BuildFailure ( (failed to parse the logs: The Writer is closed or in error state.))
  • dont link/macOS/Release (PrepareAssemblies, CoreCLR, Dynamic Registrar): BuildFailure ( (failed to parse the logs: The Writer is closed or in error state.))
  • dont link/macOS/Release (PrepareAssemblies, CoreCLR, Managed Static Registrar): BuildFailure ( (failed to parse the logs: The Writer is closed or in error state.))
  • dont link/macOS/Release (PrepareAssemblies, CoreCLR, Trimmable Static Registrar): BuildFailure ( (failed to parse the logs: The Writer is closed or in error state.))
  • trimmode copy/macOS/Debug: BuildFailure
  • trimmode copy/macOS/Release: BuildFailure ( (failed to parse the logs: The Writer is closed or in error state.))

Html Report (VSDrops) Download

❌ linker tests (tvOS)

10 tests failed, 11 tests passed.

Failed tests

  • dont link/tvOS - simulator/Debug: BuildFailure
  • dont link/tvOS - simulator/Release: BuildFailure
  • dont link/tvOS - simulator/Debug (PrepareAssemblies, CoreCLR, Dynamic Registrar): BuildFailure
  • dont link/tvOS - simulator/Debug (PrepareAssemblies, CoreCLR, Managed Static Registrar): BuildFailure ( (failed to parse the logs: The Writer is closed or in error state.))
  • dont link/tvOS - simulator/Debug (PrepareAssemblies, CoreCLR, Trimmable Static Registrar): BuildFailure ( (failed to parse the logs: The Writer is closed or in error state.))
  • dont link/tvOS - simulator/Release (PrepareAssemblies, CoreCLR, Dynamic Registrar): BuildFailure
  • dont link/tvOS - simulator/Release (PrepareAssemblies, CoreCLR, Managed Static Registrar): BuildFailure
  • dont link/tvOS - simulator/Release (PrepareAssemblies, CoreCLR, Trimmable Static Registrar): BuildFailure ( (failed to parse the logs: The Writer is closed or in error state.))
  • trimmode copy/tvOS - simulator/Debug: BuildFailure
  • trimmode copy/tvOS - simulator/Release: BuildFailure

Html Report (VSDrops) Download

❌ monotouch tests (iOS)

20 tests failed, 0 tests passed.

Failed tests

  • monotouch-test/iOS - simulator/Debug: BuildFailure
  • monotouch-test/iOS - simulator/Release (link sdk): BuildFailure
  • monotouch-test/iOS - simulator/Release (link all): BuildFailure
  • monotouch-test/iOS - simulator/Debug (PrepareAssemblies): BuildFailure
  • monotouch-test/iOS - simulator/Debug (PrepareAssemblies, Trimmable Static Registrar, link sdk): BuildFailure ( (failed to parse the logs: The Writer is closed or in error state.))
  • monotouch-test/iOS - simulator/Debug (LinkSdk): BuildFailure
  • monotouch-test/iOS - simulator/Debug (static registrar): BuildFailure ( (failed to parse the logs: The Writer is closed or in error state.))
  • monotouch-test/iOS - simulator/Release (all optimizations): BuildFailure ( (failed to parse the logs: The Writer is closed or in error state.))
  • monotouch-test/iOS - simulator/Release (NativeAOT): BuildFailure
  • monotouch-test/iOS - simulator/Release (trimmable static registrar, NativeAOT): BuildFailure
  • monotouch-test/iOS - simulator/Debug (managed static registrar): BuildFailure ( (failed to parse the logs: The Writer is closed or in error state.))
  • monotouch-test/iOS - simulator/Debug (trimmable static registrar): BuildFailure
  • monotouch-test/iOS - simulator/Release (managed static registrar, all optimizations): BuildFailure ( (failed to parse the logs: The Writer is closed or in error state.))
  • monotouch-test/iOS - simulator/Debug (trimmable static registrar, all optimizations): BuildFailure ( (failed to parse the logs: The Writer is closed or in error state.))
  • monotouch-test/iOS - simulator/Release (trimmable static registrar, all optimizations): BuildFailure ( (failed to parse the logs: The Writer is closed or in error state.))
  • monotouch-test/iOS - simulator/Release (compat inline Class.GetHandle): BuildFailure ( (failed to parse the logs: The Writer is closed or in error state.))
  • monotouch-test/iOS - simulator/Release (strict inline Class.GetHandle): BuildFailure ( (failed to parse the logs: The Writer is closed or in error state.))
  • monotouch-test/iOS - simulator/Release (compat inline dlfcn): BuildFailure
  • monotouch-test/iOS - simulator/Release (strict inline dlfcn, link sdk): BuildFailure
  • monotouch-test/iOS - simulator/Release (NativeAOT, .NET 11 defaults): BuildFailure ( (failed to parse the logs: The Writer is closed or in error state.))

Html Report (VSDrops) Download

❌ monotouch tests (MacCatalyst)

20 tests failed, 0 tests passed.

Failed tests

  • monotouch-test/Mac Catalyst/Debug: BuildFailure
  • monotouch-test/Mac Catalyst/Release (link sdk): BuildFailure ( (failed to parse the logs: The Writer is closed or in error state.))
  • monotouch-test/Mac Catalyst/Release (link all): BuildFailure ( (failed to parse the logs: The Writer is closed or in error state.))
  • monotouch-test/Mac Catalyst/Debug (PrepareAssemblies): BuildFailure ( (failed to parse the logs: The Writer is closed or in error state.))
  • monotouch-test/Mac Catalyst/Debug (PrepareAssemblies, Trimmable Static Registrar, link sdk): BuildFailure ( (failed to parse the logs: The Writer is closed or in error state.))
  • monotouch-test/Mac Catalyst/Debug (managed static registrar): BuildFailure ( (failed to parse the logs: The Writer is closed or in error state.))
  • monotouch-test/Mac Catalyst/Debug (trimmable static registrar): BuildFailure ( (failed to parse the logs: The Writer is closed or in error state.))
  • monotouch-test/Mac Catalyst/Debug (static registrar): BuildFailure
  • monotouch-test/Mac Catalyst/Release (managed static registrar): BuildFailure
  • monotouch-test/Mac Catalyst/Release (trimmable static registrar): BuildFailure
  • monotouch-test/Mac Catalyst/Release (managed static registrar, all optimizations): BuildFailure ( (failed to parse the logs: The Writer is closed or in error state.))
  • monotouch-test/Mac Catalyst/Debug (trimmable static registrar, all optimizations): BuildFailure ( (failed to parse the logs: The Writer is closed or in error state.))
  • monotouch-test/Mac Catalyst/Release (trimmable static registrar, all optimizations): BuildFailure
  • monotouch-test/Mac Catalyst/Release (NativeAOT): BuildFailure ( (failed to parse the logs: The Writer is closed or in error state.))
  • monotouch-test/Mac Catalyst/Release (NativeAOT, .NET 11 defaults): BuildFailure ( (failed to parse the logs: The Writer is closed or in error state.))
  • monotouch-test/Mac Catalyst/Release (trimmable static registrar, NativeAOT): BuildFailure
  • monotouch-test/Mac Catalyst/Release (static registrar): BuildFailure
  • monotouch-test/Mac Catalyst/Release (static registrar, all optimizations): BuildFailure
  • monotouch-test/Mac Catalyst/Release (compat inline dlfcn): BuildFailure ( (failed to parse the logs: The Writer is closed or in error state.))
  • monotouch-test/Mac Catalyst/Release (strict inline dlfcn, link sdk): BuildFailure ( (failed to parse the logs: The Writer is closed or in error state.))

Html Report (VSDrops) Download

❌ monotouch tests (macOS)

20 tests failed, 0 tests passed.

Failed tests

  • monotouch-test/macOS/Debug: BuildFailure
  • monotouch-test/macOS/Release (link sdk): BuildFailure
  • monotouch-test/macOS/Release (link all): BuildFailure ( (failed to parse the logs: The Writer is closed or in error state.))
  • monotouch-test/macOS/Debug (PrepareAssemblies): BuildFailure ( (failed to parse the logs: The Writer is closed or in error state.))
  • monotouch-test/macOS/Debug (PrepareAssemblies, Trimmable Static Registrar, link sdk): BuildFailure ( (failed to parse the logs: The Writer is closed or in error state.))
  • monotouch-test/macOS/Debug (managed static registrar): BuildFailure ( (failed to parse the logs: The Writer is closed or in error state.))
  • monotouch-test/macOS/Debug (trimmable static registrar): BuildFailure ( (failed to parse the logs: The Writer is closed or in error state.))
  • monotouch-test/macOS/Debug (static registrar): BuildFailure ( (failed to parse the logs: The Writer is closed or in error state.))
  • monotouch-test/macOS/Release (managed static registrar): BuildFailure ( (failed to parse the logs: The Writer is closed or in error state.))
  • monotouch-test/macOS/Release (trimmable static registrar): BuildFailure ( (failed to parse the logs: The Writer is closed or in error state.))
  • monotouch-test/macOS/Release (managed static registrar, all optimizations): BuildFailure ( (failed to parse the logs: The Writer is closed or in error state.))
  • monotouch-test/macOS/Debug (trimmable static registrar, all optimizations): BuildFailure ( (failed to parse the logs: The Writer is closed or in error state.))
  • monotouch-test/macOS/Release (trimmable static registrar, all optimizations): BuildFailure ( (failed to parse the logs: The Writer is closed or in error state.))
  • monotouch-test/macOS/Release (NativeAOT): BuildFailure
  • monotouch-test/macOS/Release (NativeAOT, .NET 11 defaults): BuildFailure ( (failed to parse the logs: The Writer is closed or in error state.))
  • monotouch-test/macOS/Release (trimmable static registrar, NativeAOT): BuildFailure
  • monotouch-test/macOS/Release (static registrar): BuildFailure ( (failed to parse the logs: The Writer is closed or in error state.))
  • monotouch-test/macOS/Release (static registrar, all optimizations): BuildFailure ( (failed to parse the logs: The Writer is closed or in error state.))
  • monotouch-test/macOS/Release (compat inline dlfcn): BuildFailure
  • monotouch-test/macOS/Release (strict inline dlfcn, link sdk): BuildFailure ( (failed to parse the logs: The Writer is closed or in error state.))

Html Report (VSDrops) Download

❌ monotouch tests (tvOS)

20 tests failed, 0 tests passed.

Failed tests

  • monotouch-test/tvOS - simulator/Debug: BuildFailure
  • monotouch-test/tvOS - simulator/Release (link sdk): BuildFailure
  • monotouch-test/tvOS - simulator/Release (link all): BuildFailure
  • monotouch-test/tvOS - simulator/Debug (PrepareAssemblies): BuildFailure
  • monotouch-test/tvOS - simulator/Debug (PrepareAssemblies, Trimmable Static Registrar, link sdk): BuildFailure
  • monotouch-test/tvOS - simulator/Debug (LinkSdk): BuildFailure
  • monotouch-test/tvOS - simulator/Debug (static registrar): BuildFailure
  • monotouch-test/tvOS - simulator/Release (all optimizations): BuildFailure ( (failed to parse the logs: The Writer is closed or in error state.))
  • monotouch-test/tvOS - simulator/Release (NativeAOT): BuildFailure
  • monotouch-test/tvOS - simulator/Release (trimmable static registrar, NativeAOT): BuildFailure ( (failed to parse the logs: The Writer is closed or in error state.))
  • monotouch-test/tvOS - simulator/Debug (managed static registrar): BuildFailure
  • monotouch-test/tvOS - simulator/Debug (trimmable static registrar): BuildFailure ( (failed to parse the logs: The Writer is closed or in error state.))
  • monotouch-test/tvOS - simulator/Release (managed static registrar, all optimizations): BuildFailure ( (failed to parse the logs: The Writer is closed or in error state.))
  • monotouch-test/tvOS - simulator/Debug (trimmable static registrar, all optimizations): BuildFailure
  • monotouch-test/tvOS - simulator/Release (trimmable static registrar, all optimizations): BuildFailure
  • monotouch-test/tvOS - simulator/Release (compat inline Class.GetHandle): BuildFailure
  • monotouch-test/tvOS - simulator/Release (strict inline Class.GetHandle): BuildFailure
  • monotouch-test/tvOS - simulator/Release (compat inline dlfcn): BuildFailure ( (failed to parse the logs: The Writer is closed or in error state.))
  • monotouch-test/tvOS - simulator/Release (strict inline dlfcn, link sdk): BuildFailure ( (failed to parse the logs: The Writer is closed or in error state.))
  • monotouch-test/tvOS - simulator/Release (NativeAOT, .NET 11 defaults): BuildFailure ( (failed to parse the logs: The Writer is closed or in error state.))

Html Report (VSDrops) Download

❌ windows tests

🔥 Failed catastrophically on VSTS: test results - windows (no summary found).

Html Report (VSDrops) Download

❌ xcframework tests

3 tests failed, 1 tests passed.

Failed tests

  • xcframework-test/macOS/Debug: BuildFailure ( (failed to parse the logs: The Writer is closed or in error state.))
  • xcframework-test/iOS - simulator/Debug: BuildFailure
  • xcframework-test/tvOS - simulator/Debug: BuildFailure ( (failed to parse the logs: The Writer is closed or in error state.))

Html Report (VSDrops) Download

❌ Tests on macOS Sonoma (14) tests

⚠️ Tests did not run because the Build macOS tests job failed.

Html Report (VSDrops) Download

❌ Tests on macOS Sequoia (15) tests

⚠️ Tests did not run because the Build macOS tests job failed.

Html Report (VSDrops) Download

❌ Tests on macOS Tahoe (26) tests

⚠️ Tests did not run because the Build macOS tests job failed.

Html Report (VSDrops) Download

❌ Tests on macOS Golden Gate (27) tests

⚠️ Tests did not run because the Build macOS tests job failed.

Html Report (VSDrops) Download

Successes

✅ assembly-processing: All 1 tests passed. Html Report (VSDrops) Download
✅ cecil: All 1 tests passed. Html Report (VSDrops) Download
✅ dotnettests (Multiple platforms): All 1 tests passed. Html Report (VSDrops) Download
✅ generator: All 1 tests passed. Html Report (VSDrops) Download
✅ msbuild: All 2 tests passed. Html Report (VSDrops) Download
✅ sharpie: All 1 tests passed. Html Report (VSDrops) Download
✅ xtro: All 1 tests passed. Html Report (VSDrops) Download

macOS tests

Linux Build Verification

✅ Linux build succeeded

Pipeline on Agent
Hash: 45b07261b253146201a135c5fbcc2d1ae7de1271 [PR build]

@vs-mobiletools-engineering-service2

Copy link
Copy Markdown
Collaborator

⚠️ AppSizeTest expected files changed ⚠️

The AppSizeTest detected changes in the expected app size files.

To update the expected files, add a comment with the following command:

/apply-gist https://gist.github.com/vs-mobiletools-engineering-service2/05c6b153d9e0b13bd0f8e31e6d377d87
Updated files
  • iOS-CoreCLR-Interpreter-preservedapis.txt
  • iOS-CoreCLR-R2R-preservedapis.txt
  • MacCatalyst-CoreCLR-Interpreter-preservedapis.txt
  • MacCatalyst-CoreCLR-R2R-preservedapis.txt
  • TVOS-CoreCLR-Interpreter-preservedapis.txt
  • TVOS-CoreCLR-R2R-preservedapis.txt

Pipeline on Agent
Hash: 45b07261b253146201a135c5fbcc2d1ae7de1271 [PR build]

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add support for DisableRuntimeMarshallingAttribute

3 participants