Skip to content

Commit

Permalink
[dotnet] Throw an exception if the developer tries to use server garb…
Browse files Browse the repository at this point in the history
…age collection. Fixes #16853. (#20569)

Our runtime doesn't support server garbage collection:

https://github.com/xamarin/xamarin-macios/blob/main/runtime/coreclr-bridge.m#L203-L210

Fixes #16853.
  • Loading branch information
rolfbjarne committed May 8, 2024
1 parent d1f577f commit 2535769
Show file tree
Hide file tree
Showing 4 changed files with 42 additions and 0 deletions.
6 changes: 6 additions & 0 deletions dotnet/targets/Xamarin.Shared.Sdk.targets
Original file line number Diff line number Diff line change
Expand Up @@ -2124,6 +2124,12 @@
<Error Condition="'$(_IsValidRuntimeIdentifier)' != 'true'" Text="The RuntimeIdentifier '$(RuntimeIdentifier)' is invalid." />
</Target>

<Target Name="_ValidateGarbageCollector"
Condition="'$(ServerGarbageCollection)' == 'true'"
BeforeTargets="Build;ResolvedFrameworkReference;ResolveRuntimePackAssets">
<Error Text=".NET for $(_PlatformName) does not support server garbage collection. Please don't set the 'ServerGarbageCollection' property." />
</Target>

<!-- This target can be removed in .NET 9 (when we stop supporting the compat logic to make the invalid TPV just a warning instead of an error) -->
<Target Name="_XamarinValidateTargetPlatformVersion"
BeforeTargets="Build;ResolvedFrameworkReference;ResolveRuntimePackAssets"
Expand Down
22 changes: 22 additions & 0 deletions src/ObjCRuntime/Runtime.cs
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,20 @@ internal unsafe struct MTRegistrationMap {
}
#pragma warning restore 649

#if __TVOS__
internal const string PlatformName = "tvOS";
#elif __WATCHOS__
internal const string PlatformName = "watchOS";
#elif __MACCATALYST__
internal const string PlatformName = "Mac Catalyst";
#elif __IOS__
internal const string PlatformName = "iOS";
#elif __MACOS__
internal const string PlatformName = "macOS";
#else
#error Undetermined platform name
#endif

[Flags]
internal enum MTTypeFlags : uint {
None = 0,
Expand Down Expand Up @@ -359,6 +373,14 @@ unsafe static void Initialize (InitializationOptions* options)
throw ErrorHelper.CreateError (8010, msg);
}

#if NET
if (System.Runtime.GCSettings.IsServerGC) {
var msg = $".NET for {PlatformName} does not support server garbage collection.";
NSLog (msg);
throw ErrorHelper.CreateError (8057, msg);
}
#endif

#if NET
if (options->RegistrationMap is not null && options->RegistrationMap->classHandles is not null) {
ClassHandles.InitializeClassHandles (options->RegistrationMap->classHandles);
Expand Down
9 changes: 9 additions & 0 deletions tools/mtouch/Errors.designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions tools/mtouch/Errors.resx
Original file line number Diff line number Diff line change
Expand Up @@ -2266,4 +2266,9 @@
<data name="MX8056" xml:space="preserve">
<value>Failed to marshal the Objective-C object 0x{0} (type: {1}). Could not find an existing managed instance for this object, nor was it possible to create a new managed instance of generic type {2}.</value>
</data>

<data name="MX8057" xml:space="preserve">
<value>.NET for {0} does not support server garbage collection.</value>
<comment>{0}: the platform (iOS, macOS, etc.)</comment>
</data>
</root>

12 comments on commit 2535769

@vs-mobiletools-engineering-service2

This comment was marked as outdated.

@vs-mobiletools-engineering-service2

This comment was marked as outdated.

@vs-mobiletools-engineering-service2

This comment was marked as outdated.

@vs-mobiletools-engineering-service2

This comment was marked as outdated.

@vs-mobiletools-engineering-service2

This comment was marked as outdated.

@vs-mobiletools-engineering-service2

This comment was marked as outdated.

@vs-mobiletools-engineering-service2

This comment was marked as outdated.

@vs-mobiletools-engineering-service2

This comment was marked as outdated.

@vs-mobiletools-engineering-service2

This comment was marked as outdated.

@vs-mobiletools-engineering-service2

This comment was marked as outdated.

@vs-mobiletools-engineering-service2
Copy link
Collaborator

Choose a reason for hiding this comment

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

🔥 [CI Build] Test results 🔥

Test results

❌ Tests failed on VSTS: test results

6 tests crashed, 32 tests failed, 56 tests passed.

Failures

❌ framework tests

4 tests failed, 4 tests passed.
  • framework-test/Mac Modern/Debug: BuildFailure
  • framework-test/iOS Unified 64-bits - simulator/Debug: BuildFailure
  • framework-test/tvOS - simulator/Debug: BuildFailure (Harness exception for 'framework-test': System.IO.DirectoryNotFoundException: Could not find a part of the path '/Users/builder/azdo/_work/2/s/xamarin-macios/tests/framework-test/iOS/generated-projects/tvos/framework-test-ios-tvos.csproj'.
    at Interop.ThrowExceptionForIoErrno(ErrorInfo errorInfo, String path, Boolean isDirError)
    at Microsoft.Win32.SafeHandles.SafeFileHandle.Open(String path, OpenFlags flags, Int32 mode, Boolean failForSymlink, Boolean& wasSymlink, Func4 createOpenException) at Microsoft.Win32.SafeHandles.SafeFileHandle.Open(String fullPath, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize, UnixFileMode openPermissions, Int64& fileLength, UnixFileMode& filePermissions, Boolean failForSymlink, Boolean& wasSymlink, Func4 createOpenException)
    at System.IO.Strategies.OSFileStreamStrategy..ctor(String path, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize, Nullable1 unixCreateMode) at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access) at Microsoft.DotNet.XHarness.iOS.Shared.Utilities.PListExtensions.LoadWithoutNetworkAccess(XmlDocument doc, String filename) at Xharness.TestProject.CreateCopyAsync(ILog log, IProcessManager processManager, ITestTask test, String rootDirectory, Dictionary2 allProjectReferences) in /Users/builder/azdo/_work/2/s/xamarin-macios/tests/xharness/TestProject.cs:line 98
    at Xharness.Jenkins.TestTasks.TestTasks.RunInternalAsync() in /Users/builder/azdo/_work/2/s/xamarin-macios/tests/xharness/Jenkins/TestTasks/TestTask.cs:line 260)
  • framework-test/watchOS 32-bits - simulator/Debug: BuildFailure (Harness exception for 'framework-test': System.IO.DirectoryNotFoundException: Could not find a part of the path '/Users/builder/azdo/_work/2/s/xamarin-macios/tests/framework-test/iOS/generated-projects/watchos/framework-test-ios-watchos.csproj'.
    at Interop.ThrowExceptionForIoErrno(ErrorInfo errorInfo, String path, Boolean isDirError)
    at Microsoft.Win32.SafeHandles.SafeFileHandle.Open(String path, OpenFlags flags, Int32 mode, Boolean failForSymlink, Boolean& wasSymlink, Func4 createOpenException) at Microsoft.Win32.SafeHandles.SafeFileHandle.Open(String fullPath, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize, UnixFileMode openPermissions, Int64& fileLength, UnixFileMode& filePermissions, Boolean failForSymlink, Boolean& wasSymlink, Func4 createOpenException)
    at System.IO.Strategies.OSFileStreamStrategy..ctor(String path, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize, Nullable1 unixCreateMode) at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access) at Microsoft.DotNet.XHarness.iOS.Shared.Utilities.PListExtensions.LoadWithoutNetworkAccess(XmlDocument doc, String filename) at Xharness.TestProject.CreateCopyAsync(ILog log, IProcessManager processManager, ITestTask test, String rootDirectory, Dictionary2 allProjectReferences) in /Users/builder/azdo/_work/2/s/xamarin-macios/tests/xharness/TestProject.cs:line 98
    at Xharness.Jenkins.TestTasks.TestTasks.RunInternalAsync() in /Users/builder/azdo/_work/2/s/xamarin-macios/tests/xharness/Jenkins/TestTasks/TestTask.cs:line 260)

Html Report (VSDrops) Download

❌ fsharp tests

2 tests failed, 5 tests passed.
  • fsharp/tvOS - simulator/Debug: BuildFailure (Harness exception for 'fsharp': System.IO.DirectoryNotFoundException: Could not find a part of the path '/Users/builder/azdo/_work/2/s/xamarin-macios/tests/fsharp/generated-projects/tvos/fsharp-tvos.fsproj'.
    at Interop.ThrowExceptionForIoErrno(ErrorInfo errorInfo, String path, Boolean isDirError)
    at Microsoft.Win32.SafeHandles.SafeFileHandle.Open(String path, OpenFlags flags, Int32 mode, Boolean failForSymlink, Boolean& wasSymlink, Func4 createOpenException) at Microsoft.Win32.SafeHandles.SafeFileHandle.Open(String fullPath, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize, UnixFileMode openPermissions, Int64& fileLength, UnixFileMode& filePermissions, Boolean failForSymlink, Boolean& wasSymlink, Func4 createOpenException)
    at System.IO.Strategies.OSFileStreamStrategy..ctor(String path, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize, Nullable1 unixCreateMode) at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access) at Microsoft.DotNet.XHarness.iOS.Shared.Utilities.PListExtensions.LoadWithoutNetworkAccess(XmlDocument doc, String filename) at Xharness.TestProject.CreateCopyAsync(ILog log, IProcessManager processManager, ITestTask test, String rootDirectory, Dictionary2 allProjectReferences) in /Users/builder/azdo/_work/2/s/xamarin-macios/tests/xharness/TestProject.cs:line 98
    at Xharness.Jenkins.TestTasks.TestTasks.RunInternalAsync() in /Users/builder/azdo/_work/2/s/xamarin-macios/tests/xharness/Jenkins/TestTasks/TestTask.cs:line 260)
  • fsharp/watchOS 32-bits - simulator/Debug: BuildFailure (Harness exception for 'fsharp': System.IO.DirectoryNotFoundException: Could not find a part of the path '/Users/builder/azdo/_work/2/s/xamarin-macios/tests/fsharp/generated-projects/watchos/fsharp-watchos.fsproj'.
    at Interop.ThrowExceptionForIoErrno(ErrorInfo errorInfo, String path, Boolean isDirError)
    at Microsoft.Win32.SafeHandles.SafeFileHandle.Open(String path, OpenFlags flags, Int32 mode, Boolean failForSymlink, Boolean& wasSymlink, Func4 createOpenException) at Microsoft.Win32.SafeHandles.SafeFileHandle.Open(String fullPath, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize, UnixFileMode openPermissions, Int64& fileLength, UnixFileMode& filePermissions, Boolean failForSymlink, Boolean& wasSymlink, Func4 createOpenException)
    at System.IO.Strategies.OSFileStreamStrategy..ctor(String path, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize, Nullable1 unixCreateMode) at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access) at Microsoft.DotNet.XHarness.iOS.Shared.Utilities.PListExtensions.LoadWithoutNetworkAccess(XmlDocument doc, String filename) at Xharness.TestProject.CreateCopyAsync(ILog log, IProcessManager processManager, ITestTask test, String rootDirectory, Dictionary2 allProjectReferences) in /Users/builder/azdo/_work/2/s/xamarin-macios/tests/xharness/TestProject.cs:line 98
    at Xharness.Jenkins.TestTasks.TestTasks.RunInternalAsync() in /Users/builder/azdo/_work/2/s/xamarin-macios/tests/xharness/Jenkins/TestTasks/TestTask.cs:line 260)

Html Report (VSDrops) Download

❌ interdependent-binding-projects tests

2 tests failed, 5 tests passed.
  • interdependent-binding-projects/tvOS - simulator/Debug: BuildFailure (Harness exception for 'interdependent-binding-projects': System.IO.DirectoryNotFoundException: Could not find a part of the path '/Users/builder/azdo/_work/1/s/xamarin-macios/tests/interdependent-binding-projects/generated-projects/tvos/interdependent-binding-projects-tvos.csproj'.
    at Interop.ThrowExceptionForIoErrno(ErrorInfo errorInfo, String path, Boolean isDirError)
    at Microsoft.Win32.SafeHandles.SafeFileHandle.Open(String path, OpenFlags flags, Int32 mode, Boolean failForSymlink, Boolean& wasSymlink, Func4 createOpenException) at Microsoft.Win32.SafeHandles.SafeFileHandle.Open(String fullPath, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize, UnixFileMode openPermissions, Int64& fileLength, UnixFileMode& filePermissions, Boolean failForSymlink, Boolean& wasSymlink, Func4 createOpenException)
    at System.IO.Strategies.OSFileStreamStrategy..ctor(String path, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize, Nullable1 unixCreateMode) at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access) at Microsoft.DotNet.XHarness.iOS.Shared.Utilities.PListExtensions.LoadWithoutNetworkAccess(XmlDocument doc, String filename) at Xharness.TestProject.CreateCopyAsync(ILog log, IProcessManager processManager, ITestTask test, String rootDirectory, Dictionary2 allProjectReferences) in /Users/builder/azdo/_work/1/s/xamarin-macios/tests/xharness/TestProject.cs:line 98
    at Xharness.Jenkins.TestTasks.TestTasks.RunInternalAsync() in /Users/builder/azdo/_work/1/s/xamarin-macios/tests/xharness/Jenkins/TestTasks/TestTask.cs:line 260)
  • interdependent-binding-projects/watchOS 32-bits - simulator/Debug: BuildFailure (Harness exception for 'interdependent-binding-projects': System.IO.DirectoryNotFoundException: Could not find a part of the path '/Users/builder/azdo/_work/1/s/xamarin-macios/tests/interdependent-binding-projects/generated-projects/watchos/interdependent-binding-projects-watchos.csproj'.
    at Interop.ThrowExceptionForIoErrno(ErrorInfo errorInfo, String path, Boolean isDirError)
    at Microsoft.Win32.SafeHandles.SafeFileHandle.Open(String path, OpenFlags flags, Int32 mode, Boolean failForSymlink, Boolean& wasSymlink, Func4 createOpenException) at Microsoft.Win32.SafeHandles.SafeFileHandle.Open(String fullPath, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize, UnixFileMode openPermissions, Int64& fileLength, UnixFileMode& filePermissions, Boolean failForSymlink, Boolean& wasSymlink, Func4 createOpenException)
    at System.IO.Strategies.OSFileStreamStrategy..ctor(String path, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize, Nullable1 unixCreateMode) at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access) at Microsoft.DotNet.XHarness.iOS.Shared.Utilities.PListExtensions.LoadWithoutNetworkAccess(XmlDocument doc, String filename) at Xharness.TestProject.CreateCopyAsync(ILog log, IProcessManager processManager, ITestTask test, String rootDirectory, Dictionary2 allProjectReferences) in /Users/builder/azdo/_work/1/s/xamarin-macios/tests/xharness/TestProject.cs:line 98
    at Xharness.Jenkins.TestTasks.TestTasks.RunInternalAsync() in /Users/builder/azdo/_work/1/s/xamarin-macios/tests/xharness/Jenkins/TestTasks/TestTask.cs:line 260)

Html Report (VSDrops) Download

❌ introspection tests

3 tests failed, 5 tests passed.
  • introspection/iOS Unified 64-bits - simulator/Debug: BuildFailure
  • introspection/tvOS - simulator/Debug: BuildFailure (Harness exception for 'introspection': System.IO.DirectoryNotFoundException: Could not find a part of the path '/Users/builder/azdo/_work/1/s/xamarin-macios/tests/introspection/iOS/generated-projects/tvos/introspection-ios-tvos.csproj'.
    at Interop.ThrowExceptionForIoErrno(ErrorInfo errorInfo, String path, Boolean isDirError)
    at Microsoft.Win32.SafeHandles.SafeFileHandle.Open(String path, OpenFlags flags, Int32 mode, Boolean failForSymlink, Boolean& wasSymlink, Func4 createOpenException) at Microsoft.Win32.SafeHandles.SafeFileHandle.Open(String fullPath, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize, UnixFileMode openPermissions, Int64& fileLength, UnixFileMode& filePermissions, Boolean failForSymlink, Boolean& wasSymlink, Func4 createOpenException)
    at System.IO.Strategies.OSFileStreamStrategy..ctor(String path, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize, Nullable1 unixCreateMode) at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access) at Microsoft.DotNet.XHarness.iOS.Shared.Utilities.PListExtensions.LoadWithoutNetworkAccess(XmlDocument doc, String filename) at Xharness.TestProject.CreateCopyAsync(ILog log, IProcessManager processManager, ITestTask test, String rootDirectory, Dictionary2 allProjectReferences) in /Users/builder/azdo/_work/1/s/xamarin-macios/tests/xharness/TestProject.cs:line 98
    at Xharness.Jenkins.TestTasks.TestTasks.RunInternalAsync() in /Users/builder/azdo/_work/1/s/xamarin-macios/tests/xharness/Jenkins/TestTasks/TestTask.cs:line 260)
  • introspection/watchOS 32-bits - simulator/Debug: BuildFailure (Harness exception for 'introspection': System.IO.DirectoryNotFoundException: Could not find a part of the path '/Users/builder/azdo/_work/1/s/xamarin-macios/tests/introspection/iOS/generated-projects/watchos/introspection-ios-watchos.csproj'.
    at Interop.ThrowExceptionForIoErrno(ErrorInfo errorInfo, String path, Boolean isDirError)
    at Microsoft.Win32.SafeHandles.SafeFileHandle.Open(String path, OpenFlags flags, Int32 mode, Boolean failForSymlink, Boolean& wasSymlink, Func4 createOpenException) at Microsoft.Win32.SafeHandles.SafeFileHandle.Open(String fullPath, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize, UnixFileMode openPermissions, Int64& fileLength, UnixFileMode& filePermissions, Boolean failForSymlink, Boolean& wasSymlink, Func4 createOpenException)
    at System.IO.Strategies.OSFileStreamStrategy..ctor(String path, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize, Nullable1 unixCreateMode) at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access) at Microsoft.DotNet.XHarness.iOS.Shared.Utilities.PListExtensions.LoadWithoutNetworkAccess(XmlDocument doc, String filename) at Xharness.TestProject.CreateCopyAsync(ILog log, IProcessManager processManager, ITestTask test, String rootDirectory, Dictionary2 allProjectReferences) in /Users/builder/azdo/_work/1/s/xamarin-macios/tests/xharness/TestProject.cs:line 98
    at Xharness.Jenkins.TestTasks.TestTasks.RunInternalAsync() in /Users/builder/azdo/_work/1/s/xamarin-macios/tests/xharness/Jenkins/TestTasks/TestTask.cs:line 260)

Html Report (VSDrops) Download

❌ linker tests

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

Html Report (VSDrops) Download

❌ mmp tests

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

Html Report (VSDrops) Download

❌ mononative tests

5 tests failed, 0 tests passed.
  • mono-native-unified/Mac Modern/Debug: BuildFailure (Harness exception for 'mono-native-unified': System.IO.DirectoryNotFoundException: Could not find a part of the path '/Users/builder/azdo/_work/1/s/xamarin-macios/tests/mono-native/macOS/unified/mono-native-unified.csproj'.
    at Interop.ThrowExceptionForIoErrno(ErrorInfo errorInfo, String path, Boolean isDirError)
    at Microsoft.Win32.SafeHandles.SafeFileHandle.Open(String path, OpenFlags flags, Int32 mode, Boolean failForSymlink, Boolean& wasSymlink, Func4 createOpenException) at Microsoft.Win32.SafeHandles.SafeFileHandle.Open(String fullPath, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize, UnixFileMode openPermissions, Int64& fileLength, UnixFileMode& filePermissions, Boolean failForSymlink, Boolean& wasSymlink, Func4 createOpenException)
    at System.IO.Strategies.OSFileStreamStrategy..ctor(String path, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize, Nullable1 unixCreateMode) at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access) at Microsoft.DotNet.XHarness.iOS.Shared.Utilities.PListExtensions.LoadWithoutNetworkAccess(XmlDocument doc, String filename) at Xharness.TestProject.CreateCopyAsync(ILog log, IProcessManager processManager, ITestTask test, String rootDirectory, Dictionary2 allProjectReferences) in /Users/builder/azdo/_work/1/s/xamarin-macios/tests/xharness/TestProject.cs:line 98
    at Xharness.Jenkins.TestTasks.TestTasks.RunInternalAsync() in /Users/builder/azdo/_work/1/s/xamarin-macios/tests/xharness/Jenkins/TestTasks/TestTask.cs:line 260)
  • mono-native-unified/iOS Unified 64-bits - simulator/Debug: BuildFailure (Harness exception for 'mono-native-unified': System.IO.DirectoryNotFoundException: Could not find a part of the path '/Users/builder/azdo/_work/1/s/xamarin-macios/tests/mono-native/iOS/unified/mono-native-unified.csproj'.
    at Interop.ThrowExceptionForIoErrno(ErrorInfo errorInfo, String path, Boolean isDirError)
    at Microsoft.Win32.SafeHandles.SafeFileHandle.Open(String path, OpenFlags flags, Int32 mode, Boolean failForSymlink, Boolean& wasSymlink, Func4 createOpenException) at Microsoft.Win32.SafeHandles.SafeFileHandle.Open(String fullPath, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize, UnixFileMode openPermissions, Int64& fileLength, UnixFileMode& filePermissions, Boolean failForSymlink, Boolean& wasSymlink, Func4 createOpenException)
    at System.IO.Strategies.OSFileStreamStrategy..ctor(String path, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize, Nullable1 unixCreateMode) at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access) at Microsoft.DotNet.XHarness.iOS.Shared.Utilities.PListExtensions.LoadWithoutNetworkAccess(XmlDocument doc, String filename) at Xharness.TestProject.CreateCopyAsync(ILog log, IProcessManager processManager, ITestTask test, String rootDirectory, Dictionary2 allProjectReferences) in /Users/builder/azdo/_work/1/s/xamarin-macios/tests/xharness/TestProject.cs:line 98
    at Xharness.Jenkins.TestTasks.TestTasks.RunInternalAsync() in /Users/builder/azdo/_work/1/s/xamarin-macios/tests/xharness/Jenkins/TestTasks/TestTask.cs:line 260)
  • mono-native-unified/iOS Unified Today Extension 64-bits - simulator/Debug: BuildFailure (Harness exception for 'mono-native-unified': System.IO.DirectoryNotFoundException: Could not find a part of the path '/Users/builder/azdo/_work/1/s/xamarin-macios/tests/mono-native/iOS/unified/mono-native-unified.csproj'.
    at Interop.ThrowExceptionForIoErrno(ErrorInfo errorInfo, String path, Boolean isDirError)
    at Microsoft.Win32.SafeHandles.SafeFileHandle.Open(String path, OpenFlags flags, Int32 mode, Boolean failForSymlink, Boolean& wasSymlink, Func4 createOpenException) at Microsoft.Win32.SafeHandles.SafeFileHandle.Open(String fullPath, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize, UnixFileMode openPermissions, Int64& fileLength, UnixFileMode& filePermissions, Boolean failForSymlink, Boolean& wasSymlink, Func4 createOpenException)
    at System.IO.Strategies.OSFileStreamStrategy..ctor(String path, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize, Nullable1 unixCreateMode) at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access) at Microsoft.DotNet.XHarness.iOS.Shared.Utilities.PListExtensions.LoadWithoutNetworkAccess(XmlDocument doc, String filename) at Xharness.TestProject.CreateCopyAsync(ILog log, IProcessManager processManager, ITestTask test, String rootDirectory, Dictionary2 allProjectReferences) in /Users/builder/azdo/_work/1/s/xamarin-macios/tests/xharness/TestProject.cs:line 98
    at Xharness.Jenkins.TestTasks.TestTasks.RunInternalAsync() in /Users/builder/azdo/_work/1/s/xamarin-macios/tests/xharness/Jenkins/TestTasks/TestTask.cs:line 260)
  • mono-native-unified/tvOS - simulator/Debug: BuildFailure (Harness exception for 'mono-native-unified': System.IO.DirectoryNotFoundException: Could not find a part of the path '/Users/builder/azdo/_work/1/s/xamarin-macios/tests/mono-native/iOS/unified/generated-projects/tvos/mono-native-unified-tvos.csproj'.
    at Interop.ThrowExceptionForIoErrno(ErrorInfo errorInfo, String path, Boolean isDirError)
    at Microsoft.Win32.SafeHandles.SafeFileHandle.Open(String path, OpenFlags flags, Int32 mode, Boolean failForSymlink, Boolean& wasSymlink, Func4 createOpenException) at Microsoft.Win32.SafeHandles.SafeFileHandle.Open(String fullPath, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize, UnixFileMode openPermissions, Int64& fileLength, UnixFileMode& filePermissions, Boolean failForSymlink, Boolean& wasSymlink, Func4 createOpenException)
    at System.IO.Strategies.OSFileStreamStrategy..ctor(String path, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize, Nullable1 unixCreateMode) at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access) at Microsoft.DotNet.XHarness.iOS.Shared.Utilities.PListExtensions.LoadWithoutNetworkAccess(XmlDocument doc, String filename) at Xharness.TestProject.CreateCopyAsync(ILog log, IProcessManager processManager, ITestTask test, String rootDirectory, Dictionary2 allProjectReferences) in /Users/builder/azdo/_work/1/s/xamarin-macios/tests/xharness/TestProject.cs:line 98
    at Xharness.Jenkins.TestTasks.TestTasks.RunInternalAsync() in /Users/builder/azdo/_work/1/s/xamarin-macios/tests/xharness/Jenkins/TestTasks/TestTask.cs:line 260)
  • mono-native-unified/watchOS 32-bits - simulator/Debug: BuildFailure (Harness exception for 'mono-native-unified': System.IO.DirectoryNotFoundException: Could not find a part of the path '/Users/builder/azdo/_work/1/s/xamarin-macios/tests/mono-native/iOS/unified/generated-projects/watchos/mono-native-unified-watchos.csproj'.
    at Interop.ThrowExceptionForIoErrno(ErrorInfo errorInfo, String path, Boolean isDirError)
    at Microsoft.Win32.SafeHandles.SafeFileHandle.Open(String path, OpenFlags flags, Int32 mode, Boolean failForSymlink, Boolean& wasSymlink, Func4 createOpenException) at Microsoft.Win32.SafeHandles.SafeFileHandle.Open(String fullPath, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize, UnixFileMode openPermissions, Int64& fileLength, UnixFileMode& filePermissions, Boolean failForSymlink, Boolean& wasSymlink, Func4 createOpenException)
    at System.IO.Strategies.OSFileStreamStrategy..ctor(String path, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize, Nullable1 unixCreateMode) at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access) at Microsoft.DotNet.XHarness.iOS.Shared.Utilities.PListExtensions.LoadWithoutNetworkAccess(XmlDocument doc, String filename) at Xharness.TestProject.CreateCopyAsync(ILog log, IProcessManager processManager, ITestTask test, String rootDirectory, Dictionary2 allProjectReferences) in /Users/builder/azdo/_work/1/s/xamarin-macios/tests/xharness/TestProject.cs:line 98
    at Xharness.Jenkins.TestTasks.TestTasks.RunInternalAsync() in /Users/builder/azdo/_work/1/s/xamarin-macios/tests/xharness/Jenkins/TestTasks/TestTask.cs:line 260)

Html Report (VSDrops) Download

❌ monotouch tests (iOS)

4 tests failed, 7 tests passed.
  • monotouch-test/iOS Unified 64-bits - simulator/Debug: BuildFailure
  • monotouch-test/iOS Unified 64-bits - simulator/Debug (LinkSdk): BuildFailure
  • monotouch-test/iOS Unified 64-bits - simulator/Debug (static registrar): BuildFailure
  • monotouch-test/iOS Unified 64-bits - simulator/Release (all optimizations): BuildFailure

Html Report (VSDrops) Download

❌ monotouch tests (macOS)

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

Html Report (VSDrops) Download

❌ monotouch tests (tvOS)

4 tests failed, 7 tests passed.
  • monotouch-test/tvOS - simulator/Debug: BuildFailure (Harness exception for 'monotouch-test': System.IO.DirectoryNotFoundException: Could not find a part of the path '/Users/builder/azdo/_work/1/s/xamarin-macios/tests/monotouch-test/generated-projects/tvos/monotouch-test-tvos.csproj'.
    at Interop.ThrowExceptionForIoErrno(ErrorInfo errorInfo, String path, Boolean isDirError)
    at Microsoft.Win32.SafeHandles.SafeFileHandle.Open(String path, OpenFlags flags, Int32 mode, Boolean failForSymlink, Boolean& wasSymlink, Func4 createOpenException) at Microsoft.Win32.SafeHandles.SafeFileHandle.Open(String fullPath, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize, UnixFileMode openPermissions, Int64& fileLength, UnixFileMode& filePermissions, Boolean failForSymlink, Boolean& wasSymlink, Func4 createOpenException)
    at System.IO.Strategies.OSFileStreamStrategy..ctor(String path, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize, Nullable1 unixCreateMode) at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access) at Microsoft.DotNet.XHarness.iOS.Shared.Utilities.PListExtensions.LoadWithoutNetworkAccess(XmlDocument doc, String filename) at Xharness.TestProject.CreateCopyAsync(ILog log, IProcessManager processManager, ITestTask test, String rootDirectory, Dictionary2 allProjectReferences) in /Users/builder/azdo/_work/1/s/xamarin-macios/tests/xharness/TestProject.cs:line 98
    at Xharness.Jenkins.TestTasks.TestTasks.RunInternalAsync() in /Users/builder/azdo/_work/1/s/xamarin-macios/tests/xharness/Jenkins/TestTasks/TestTask.cs:line 260)
  • monotouch-test/tvOS - simulator/Debug (LinkSdk): BuildFailure (Harness exception for 'monotouch-test': System.IO.DirectoryNotFoundException: Could not find a part of the path '/Users/builder/azdo/_work/1/s/xamarin-macios/tests/monotouch-test/generated-projects/tvos/monotouch-test-tvos.csproj'.
    at Interop.ThrowExceptionForIoErrno(ErrorInfo errorInfo, String path, Boolean isDirError)
    at Microsoft.Win32.SafeHandles.SafeFileHandle.Open(String path, OpenFlags flags, Int32 mode, Boolean failForSymlink, Boolean& wasSymlink, Func4 createOpenException) at Microsoft.Win32.SafeHandles.SafeFileHandle.Open(String fullPath, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize, UnixFileMode openPermissions, Int64& fileLength, UnixFileMode& filePermissions, Boolean failForSymlink, Boolean& wasSymlink, Func4 createOpenException)
    at System.IO.Strategies.OSFileStreamStrategy..ctor(String path, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize, Nullable1 unixCreateMode) at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access) at Microsoft.DotNet.XHarness.iOS.Shared.Utilities.PListExtensions.LoadWithoutNetworkAccess(XmlDocument doc, String filename) at Xharness.TestProject.CreateCopyAsync(ILog log, IProcessManager processManager, ITestTask test, String rootDirectory, Dictionary2 allProjectReferences) in /Users/builder/azdo/_work/1/s/xamarin-macios/tests/xharness/TestProject.cs:line 98
    at Xharness.Jenkins.TestVariationsFactory.<>c__DisplayClass4_2`1.<b__0>d.MoveNext() in /Users/builder/azdo/_work/1/s/xamarin-macios/tests/xharness/Jenkins/TestVariationsFactory.cs:line 251
    --- End of stack trace from previous location ---
    at Xharness.Jenkins.TestTasks.TestTasks.RunInternalAsync() in /Users/builder/azdo/_work/1/s/xamarin-macios/tests/xharness/Jenkins/TestTasks/TestTask.cs:line 260)
  • monotouch-test/tvOS - simulator/Debug (static registrar): BuildFailure (Harness exception for 'monotouch-test': System.IO.DirectoryNotFoundException: Could not find a part of the path '/Users/builder/azdo/_work/1/s/xamarin-macios/tests/monotouch-test/generated-projects/tvos/monotouch-test-tvos.csproj'.
    at Interop.ThrowExceptionForIoErrno(ErrorInfo errorInfo, String path, Boolean isDirError)
    at Microsoft.Win32.SafeHandles.SafeFileHandle.Open(String path, OpenFlags flags, Int32 mode, Boolean failForSymlink, Boolean& wasSymlink, Func4 createOpenException) at Microsoft.Win32.SafeHandles.SafeFileHandle.Open(String fullPath, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize, UnixFileMode openPermissions, Int64& fileLength, UnixFileMode& filePermissions, Boolean failForSymlink, Boolean& wasSymlink, Func4 createOpenException)
    at System.IO.Strategies.OSFileStreamStrategy..ctor(String path, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize, Nullable1 unixCreateMode) at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access) at Microsoft.DotNet.XHarness.iOS.Shared.Utilities.PListExtensions.LoadWithoutNetworkAccess(XmlDocument doc, String filename) at Xharness.TestProject.CreateCopyAsync(ILog log, IProcessManager processManager, ITestTask test, String rootDirectory, Dictionary2 allProjectReferences) in /Users/builder/azdo/_work/1/s/xamarin-macios/tests/xharness/TestProject.cs:line 98
    at Xharness.Jenkins.TestVariationsFactory.<>c__DisplayClass4_2`1.<b__0>d.MoveNext() in /Users/builder/azdo/_work/1/s/xamarin-macios/tests/xharness/Jenkins/TestVariationsFactory.cs:line\n\nThe message from CI is too large for the GitHub comments. You can find the full results here.

@vs-mobiletools-engineering-service2

This comment was marked as outdated.

Please sign in to comment.