Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[msbuild] Fix issue referencing static libraries from compressed xcframeworks. #20585

Merged

Conversation

rolfbjarne
Copy link
Member

The code incorrectly assumed that the contents of a compressed xcframework would
always be a framework, but this is incorrect (it can be a dynamic library (.dylib),
static library (.a) or a framework (.framework).

Fix this by:

  • Change variable and parameter names to clearly indicate that the output from
    an xcframework is a native library.
  • Unify code to handle metadata for native libraries from xcframeworks, so that
    the code isn't duplicated (or even worse, different) between compressed and non-compressed
    xcframeworks.

The latter point fixes a problem where we'd compute the incorrect path to the static
library inside a compressed xcframework.

PR #20546 contains a test case that triggers this.

…ameworks.

The code incorrectly assumed that the contents of a compressed xcframework would
always be a framework, but this is incorrect (it can be a dynamic library (.dylib),
static library (.a) or a framework (.framework).

Fix this by:

* Change variable and parameter names to clearly indicate that the output from
  an xcframework is a native library.
* Unify code to handle metadata for native libraries from xcframeworks, so that
  the code isn't duplicated (or even worse, different) between compressed and non-compressed
  xcframeworks.

The latter point fixes a problem where we'd compute the incorrect path to the static
library inside a compressed xcframework.

PR xamarin#20546 contains a test case that triggers this.
@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2

This comment has been minimized.

Comment on lines +279 to +288
if (item.ItemSpec.EndsWith (".a", StringComparison.OrdinalIgnoreCase)) {
item.SetMetadata ("Kind", "Static");
item.SetMetadata ("PublishFolderType", "StaticLibrary");
} else if (item.ItemSpec.EndsWith (".dylib", StringComparison.OrdinalIgnoreCase)) {
item.SetMetadata ("Kind", "Dynamic");
item.SetMetadata ("PublishFolderType", "DynamicLibrary");
} else {
item.SetMetadata ("Kind", "Framework");
item.SetMetadata ("PublishFolderType", "AppleFramework");
}
Copy link
Member

Choose a reason for hiding this comment

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

we could simplify that a little:

Suggested change
if (item.ItemSpec.EndsWith (".a", StringComparison.OrdinalIgnoreCase)) {
item.SetMetadata ("Kind", "Static");
item.SetMetadata ("PublishFolderType", "StaticLibrary");
} else if (item.ItemSpec.EndsWith (".dylib", StringComparison.OrdinalIgnoreCase)) {
item.SetMetadata ("Kind", "Dynamic");
item.SetMetadata ("PublishFolderType", "DynamicLibrary");
} else {
item.SetMetadata ("Kind", "Framework");
item.SetMetadata ("PublishFolderType", "AppleFramework");
}
// defaults
var kind = "Framework";
var folderType = "AppleFramework";
if (item.ItemSpec.EndsWith (".a", StringComparison.OrdinalIgnoreCase)) {
kind = "Static";
folderType = "StaticLibrary);
}
if (item.ItemSpec.EndsWith (".dylib", StringComparison.OrdinalIgnoreCase)) {
kind = "Dynamic";
folderType = "DynamicLibrary";
}
item.SetMetadata ("Kind", kind);
item.SetMetadata ("PublishFolderType", folderType);

Not a blocker to land, just a proposal.

@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2
Copy link
Collaborator

🔥 [CI Build] Test results 🔥

Test results

❌ Tests failed on VSTS: test results

0 tests crashed, 48 tests failed, 121 tests passed.

Failures

❌ framework tests

5 tests failed, 3 tests passed.
  • framework-test/iOS Unified 64-bits - simulator/Debug [dotnet]: Crashed
  • framework-test/iOS Unified 64-bits - simulator/Debug: Crashed
  • framework-test/tvOS - simulator/Debug [dotnet]: Crashed
  • 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/1/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/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)
  • 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/1/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/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

❌ 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/2/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/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)
  • 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/2/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/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

❌ 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/2/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/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)
  • 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/2/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/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

❌ linker tests

12 tests failed, 53 tests passed.
  • dont link/tvOS - simulator/Debug: BuildFailure (Harness exception for 'dont link': System.IO.DirectoryNotFoundException: Could not find a part of the path '/Users/builder/azdo/_work/1/s/xamarin-macios/tests/linker/ios/dont link/generated-projects/tvos/dont link-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)
  • dont link/tvOS - simulator/Release: BuildFailure (Harness exception for 'dont link': System.IO.DirectoryNotFoundException: Could not find a part of the path '/Users/builder/azdo/_work/1/s/xamarin-macios/tests/linker/ios/dont link/generated-projects/tvos/dont link-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)
  • dont link/watchOS 32-bits - simulator/Debug: BuildFailure (Harness exception for 'dont link': System.IO.DirectoryNotFoundException: Could not find a part of the path '/Users/builder/azdo/_work/1/s/xamarin-macios/tests/linker/ios/dont link/generated-projects/watchos/dont link-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)
  • dont link/watchOS 32-bits - simulator/Release: BuildFailure (Harness exception for 'dont link': System.IO.DirectoryNotFoundException: Could not find a part of the path '/Users/builder/azdo/_work/1/s/xamarin-macios/tests/linker/ios/dont link/generated-projects/watchos/dont link-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)
  • link all/tvOS - simulator/Debug: BuildFailure (Harness exception for 'link all': System.IO.DirectoryNotFoundException: Could not find a part of the path '/Users/builder/azdo/_work/1/s/xamarin-macios/tests/linker/ios/link all/generated-projects/tvos/link all-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)
  • link all/tvOS - simulator/Release: BuildFailure (Harness exception for 'link all': System.IO.DirectoryNotFoundException: Could not find a part of the path '/Users/builder/azdo/_work/1/s/xamarin-macios/tests/linker/ios/link all/generated-projects/tvos/link all-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)
  • link all/watchOS 32-bits - simulator/Debug: BuildFailure (Harness exception for 'link all': System.IO.DirectoryNotFoundException: Could not find a part of the path '/Users/builder/azdo/_work/1/s/xamarin-macios/tests/linker/ios/link all/generated-projects/watchos/link all-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)
  • link all/watchOS 32-bits - simulator/Release: BuildFailure (Harness exception for 'link all': System.IO.DirectoryNotFoundException: Could not find a part of the path '/Users/builder/azdo/_work/1/s/xamarin-macios/tests/linker/ios/link all/generated-projects/watchos/link all-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)
  • link sdk/tvOS - simulator/Debug: BuildFailure (Harness exception for 'link sdk': System.IO.DirectoryNotFoundException: Could not find a part of the path '/Users/builder/azdo/_work/1/s/xamarin-macios/tests/linker/ios/link sdk/generated-projects/tvos/link sdk-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)
  • link sdk/tvOS - simulator/Release: BuildFailure (Harness exception for 'link sdk': System.IO.DirectoryNotFoundException: Could not find a part of the path '/Users/builder/azdo/_work/1/s/xamarin-macios/tests/linker/ios/link sdk/generated-projects/tvos/link sdk-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, Nullable`1 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(ILo\n\nThe message from CI is too large for the GitHub comments. You can find the full results here.

@vs-mobiletools-engineering-service2
Copy link
Collaborator

💻 [PR Build] Tests on macOS X64 - Mac Sonoma (14) passed 💻

All tests on macOS X64 - Mac Sonoma (14) passed.

Pipeline on Agent
Hash: [PR build]

@vs-mobiletools-engineering-service2
Copy link
Collaborator

💻 [PR Build] Tests on macOS M1 - Mac Monterey (12) passed 💻

All tests on macOS M1 - Mac Monterey (12) passed.

Pipeline on Agent
Hash: [PR build]

@vs-mobiletools-engineering-service2
Copy link
Collaborator

💻 [PR Build] Tests on macOS M1 - Mac Ventura (13) passed 💻

All tests on macOS M1 - Mac Ventura (13) passed.

Pipeline on Agent
Hash: [PR build]

@vs-mobiletools-engineering-service2
Copy link
Collaborator

💻 [PR Build] Tests on macOS M1 - Mac Big Sur (11) passed 💻

All tests on macOS M1 - Mac Big Sur (11) passed.

Pipeline on Agent
Hash: [PR build]

@vs-mobiletools-engineering-service2
Copy link
Collaborator

📚 [PR Build] Artifacts 📚

Packages generated

View packages

Pipeline on Agent
Hash: [PR build]

@vs-mobiletools-engineering-service2
Copy link
Collaborator

💻 [CI Build] Windows Integration Tests passed 💻

All Windows Integration Tests passed.

Pipeline on Agent
Hash: 730eda355cf794e3f2491e74c871c11115789791 [PR build]

@vs-mobiletools-engineering-service2
Copy link
Collaborator

✅ API diff for current PR / commit

Legacy Xamarin (No breaking changes)
  • iOS (no change detected)
  • tvOS (no change detected)
  • watchOS (no change detected)
  • macOS (no change detected)
NET (empty diffs)
  • iOS: (empty diff detected)
  • tvOS: (empty diff detected)
  • MacCatalyst: (empty diff detected)
  • macOS: (empty diff detected)

✅ API diff vs stable

Legacy Xamarin (No breaking changes)
.NET (No breaking changes)
Legacy Xamarin (stable) vs .NET

ℹ️ Generator diff

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

Pipeline on Agent
Hash: 730eda355cf794e3f2491e74c871c11115789791 [PR build]

@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2
Copy link
Collaborator

🚀 [CI Build] Test results 🚀

Test results

✅ All tests passed on VSTS: test results.

🎉 All 170 tests passed 🎉

Tests counts

✅ cecil: All 1 tests passed. Html Report (VSDrops) Download
✅ dotnettests (iOS): All 1 tests passed. Html Report (VSDrops) Download
✅ dotnettests (MacCatalyst): All 1 tests passed. Html Report (VSDrops) Download
✅ dotnettests (macOS): All 1 tests passed. Html Report (VSDrops) Download
✅ dotnettests (Multiple platforms): All 1 tests passed. Html Report (VSDrops) Download
✅ dotnettests (tvOS): All 1 tests passed. Html Report (VSDrops) Download
✅ framework: All 8 tests passed. Html Report (VSDrops) Download
✅ fsharp: All 7 tests passed. Html Report (VSDrops) Download
✅ generator: All 2 tests passed. Html Report (VSDrops) Download
✅ install-source: All 1 tests passed. Html Report (VSDrops) Download
✅ interdependent-binding-projects: All 7 tests passed. Html Report (VSDrops) Download
✅ introspection: All 8 tests passed. Html Report (VSDrops) Download
✅ linker: All 65 tests passed. Html Report (VSDrops) Download
✅ mac-binding-project: All 1 tests passed. Html Report (VSDrops) Download
✅ mmp: All 2 tests passed. Html Report (VSDrops) Download
✅ mononative: All 6 tests passed. Html Report (VSDrops) Download
✅ monotouch (iOS): All 11 tests passed. Html Report (VSDrops) Download
✅ monotouch (MacCatalyst): All 7 tests passed. Html Report (VSDrops) Download
✅ monotouch (macOS): All 8 tests passed. [attempt 3] Html Report (VSDrops) Download
✅ monotouch (tvOS): All 11 tests passed. Html Report (VSDrops) Download
✅ monotouch (watchOS): All 4 tests passed. Html Report (VSDrops) Download
✅ msbuild: All 2 tests passed. Html Report (VSDrops) Download
✅ mtouch: All 1 tests passed. Html Report (VSDrops) Download
✅ xammac: All 3 tests passed. Html Report (VSDrops) Download
✅ xcframework: All 8 tests passed. [attempt 2] Html Report (VSDrops) Download
✅ xtro: All 2 tests passed. Html Report (VSDrops) Download

Pipeline on Agent
Hash: [PR build]

@mandel-macaque mandel-macaque merged commit ff9acb9 into xamarin:main May 13, 2024
64 checks passed
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.

None yet

5 participants