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

Fixes for .NET 6 linker #11739

Merged
merged 19 commits into from
Jun 15, 2021
Merged

Fixes for .NET 6 linker #11739

merged 19 commits into from
Jun 15, 2021

Conversation

sbomer
Copy link
Member

@sbomer sbomer commented May 29, 2021

  • Pass steps as separate --custom-step arguments
  • Use LinkContext as IMetadataResolver
  • Port CoreTypeMapStep to work with .NET6 linker
    • Track assemblies to work around non-public linker APIs
    • Only run for assemblies which transitively reference the product assembly

I was having some trouble running tests locally, so triggering CI to see what happens.

@vs-mobiletools-engineering-service2
Copy link
Collaborator

🔥 Tests failed catastrophically on Build (no summary found). 🔥

Result file $(TEST_SUMMARY_PATH) not found.

GitHub pages

Results can be found in the following github pages (it might take some time to publish):

Pipeline on Agent
Merge 9316807 into dc30bdf

Copy link
Contributor

@spouliot spouliot left a comment

Choose a reason for hiding this comment

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

Looks good

}

foreach (var reference in assembly.MainModule.AssemblyReferences) {
if (!Configuration.AssembliesByName.TryGetValue (reference.Name, out AssemblyDefinition resolvedReference))
Copy link
Contributor

Choose a reason for hiding this comment

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

That works because you enforced the (assembly) weak name to be unique earlier.
Not sure it will work, unless everything was resolved (to latest version) before the linker is given the list (but then that check would not be needed)

Copy link
Member Author

Choose a reason for hiding this comment

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

The linker also expects weak assembly names to be unique. You're right that the check was unnecessary - I forgot that GetLoadedAssembly is available.

This still relies on the workaround to load assemblies up-front: https://github.com/xamarin/xamarin-macios/blob/882dde132a0b893c1e929969d7472e93ec7745c8/tools/dotnet-linker/Steps/CollectAssembliesStep.cs#L19

I thought there was a way to get rid of this by resolving assemblies ourselves, but that doesn't appear to be the case - I filed dotnet/linker#2073 about it.

@rolfbjarne rolfbjarne added the not-notes-worthy Ignore for release notes label May 31, 2021
- Avoid unnecessary tracking of loaded assemblies
   (Use GetLoadedAssembly instead)
- Create extension method on LinkContext
   to avoid conditional code
- Rename dispatchers to reflect when they run
@vs-mobiletools-engineering-service2
Copy link
Collaborator

❌ [PR Build] Tests failed on Build ❌

Tests failed on Build.

API & Generator diff

API Diff (from PR only) (no change)
Generator Diff (no change)

GitHub pages

Results can be found in the following github pages (it might take some time to publish):

Test results

29 tests failed, 81 tests passed.

Failed tests

  • monotouch-test/Mac [dotnet]/Debug [dotnet]: HarnessException (Harness exception for 'monotouch-test': System.ComponentModel.Win32Exception (0x80004005): ApplicationName='/Users/builder/azdo/_work/1/s/xamarin-macios/tests/xharness/tmp-test-dir/monotouch-test92/bin/Debug/net6.0-macos/osx-x64/monotouchtest.app/Contents/MacOS/monotouchtest', CommandLine='-transport:FILE --logfile:/Users/builder/azdo/work/1/s/xamarin-macios/jenkins-results/tests/monotouch-test/357/test-Mac-20210601_194813.xml --enablexml --xmlmode=wrapped --xmlversion=nunitv3 --autostart --autoexit', CurrentDirectory='', Native error= Cannot find the specified file
    at System.Diagnostics.Process.StartWithCreateProcess (System.Diagnostics.ProcessStartInfo startInfo) [0x0029f] in /Users/builder/jenkins/workspace/build-package-osx-mono/2020-02/external/bockbuild/builds/mono-x64/mcs/class/System/System.Diagnostics/Process.cs:778
    at System.Diagnostics.Process.Start () [0x0003a] in /Users/builder/jenkins/workspace/build-package-osx-mono/2020-02/external/bockbuild/builds/mono-x64/mcs/class/referencesource/System/services/monitoring/system/diagnosticts/Process.cs:2006
    at (wrapper remoting-invoke-with-check) System.Diagnostics.Process.Start()
    at Microsoft.DotNet.XHarness.Common.Execution.ProcessManager.RunAsyncInternal (System.Diagnostics.Process process, Microsoft.DotNet.XHarness.Common.Logging.ILog log, Microsoft.DotNet.XHarness.Common.Logging.ILog stdout, Microsoft.DotNet.XHarness.Common.Logging.ILog stderr, System.Action2[T1,T2] kill, System.Func3[T1,T2,TResult] getChildProcessIds, System.Nullable1[T] timeout, System.Collections.Generic.Dictionary2[TKey,TValue] environmentVariables, System.Nullable1[T] cancellationToken, System.Nullable1[T] diagnostics) [0x003a0] in /
    /src/Microsoft.DotNet.XHarness.Common/Execution/ProcessManager.cs:277
    at Xharness.Jenkins.TestTasks.MacExecuteTask.RunTestAsync () [0x008ee] in /Users/builder/azdo/_work/1/s/xamarin-macios/tests/xharness/Jenkins/TestTasks/MacExecuteTask.cs:134
    at Xharness.Jenkins.TestTasks.MacExecuteTask.RunTestAsync () [0x00b06] in /Users/builder/azdo/_work/1/s/xamarin-macios/tests/xharness/Jenkins/TestTasks/MacExecuteTask.cs:148
    at Xharness.Jenkins.TestTasks.RunTest.ExecuteAsync () [0x001b9] in /Users/builder/azdo/_work/1/s/xamarin-macios/tests/xharness/Jenkins/TestTasks/RunTest.cs:109
    at Xharness.Jenkins.TestTasks.TestTasks.RunInternalAsync () [0x00226] in /Users/builder/azdo/_work/1/s/xamarin-macios/tests/xharness/Jenkins/TestTasks/TestTask.cs:283 )
  • monotouch-test/Mac [dotnet]/Debug (CoreCLR) [dotnet]: HarnessException (Harness exception for 'monotouch-test': System.ComponentModel.Win32Exception (0x80004005): ApplicationName='/Users/builder/azdo/_work/1/s/xamarin-macios/tests/xharness/tmp-test-dir/monotouch-test3538/bin/Debug/net6.0-macos/osx-x64/monotouchtest.app/Contents/MacOS/monotouchtest', CommandLine='-transport:FILE --logfile:/Users/builder/azdo/work/1/s/xamarin-macios/jenkins-results/tests/monotouch-test/359/test-Mac-20210601_194821.xml --enablexml --xmlmode=wrapped --xmlversion=nunitv3 --autostart --autoexit', CurrentDirectory='', Native error= Cannot find the specified file
    at System.Diagnostics.Process.StartWithCreateProcess (System.Diagnostics.ProcessStartInfo startInfo) [0x0029f] in /Users/builder/jenkins/workspace/build-package-osx-mono/2020-02/external/bockbuild/builds/mono-x64/mcs/class/System/System.Diagnostics/Process.cs:778
    at System.Diagnostics.Process.Start () [0x0003a] in /Users/builder/jenkins/workspace/build-package-osx-mono/2020-02/external/bockbuild/builds/mono-x64/mcs/class/referencesource/System/services/monitoring/system/diagnosticts/Process.cs:2006
    at (wrapper remoting-invoke-with-check) System.Diagnostics.Process.Start()
    at Microsoft.DotNet.XHarness.Common.Execution.ProcessManager.RunAsyncInternal (System.Diagnostics.Process process, Microsoft.DotNet.XHarness.Common.Logging.ILog log, Microsoft.DotNet.XHarness.Common.Logging.ILog stdout, Microsoft.DotNet.XHarness.Common.Logging.ILog stderr, System.Action2[T1,T2] kill, System.Func3[T1,T2,TResult] getChildProcessIds, System.Nullable1[T] timeout, System.Collections.Generic.Dictionary2[TKey,TValue] environmentVariables, System.Nullable1[T] cancellationToken, System.Nullable1[T] diagnostics) [0x003a0] in /
    /src/Microsoft.DotNet.XHarness.Common/Execution/ProcessManager.cs:277
    at Xharness.Jenkins.TestTasks.MacExecuteTask.RunTestAsync () [0x008ee] in /Users/builder/azdo/_work/1/s/xamarin-macios/tests/xharness/Jenkins/TestTasks/MacExecuteTask.cs:134
    at Xharness.Jenkins.TestTasks.MacExecuteTask.RunTestAsync () [0x00b06] in /Users/builder/azdo/_work/1/s/xamarin-macios/tests/xharness/Jenkins/TestTasks/MacExecuteTask.cs:148
    at Xharness.Jenkins.TestTasks.RunTest.ExecuteAsync () [0x001b9] in /Users/builder/azdo/_work/1/s/xamarin-macios/tests/xharness/Jenkins/TestTasks/RunTest.cs:109
    at Xharness.Jenkins.TestTasks.TestTasks.RunInternalAsync () [0x00226] in /Users/builder/azdo/_work/1/s/xamarin-macios/tests/xharness/Jenkins/TestTasks/TestTask.cs:283 )
  • monotouch-test/Mac [dotnet]/Debug (CoreCLR, static registrar) [dotnet]: HarnessException (Harness exception for 'monotouch-test': System.ComponentModel.Win32Exception (0x80004005): ApplicationName='/Users/builder/azdo/_work/1/s/xamarin-macios/tests/xharness/tmp-test-dir/monotouch-test3535/bin/Debug/net6.0-macos/osx-x64/monotouchtest.app/Contents/MacOS/monotouchtest', CommandLine='-transport:FILE --logfile:/Users/builder/azdo/work/1/s/xamarin-macios/jenkins-results/tests/monotouch-test/365/test-Mac-20210601_194827.xml --enablexml --xmlmode=wrapped --xmlversion=nunitv3 --autostart --autoexit', CurrentDirectory='', Native error= Cannot find the specified file
    at System.Diagnostics.Process.StartWithCreateProcess (System.Diagnostics.ProcessStartInfo startInfo) [0x0029f] in /Users/builder/jenkins/workspace/build-package-osx-mono/2020-02/external/bockbuild/builds/mono-x64/mcs/class/System/System.Diagnostics/Process.cs:778
    at System.Diagnostics.Process.Start () [0x0003a] in /Users/builder/jenkins/workspace/build-package-osx-mono/2020-02/external/bockbuild/builds/mono-x64/mcs/class/referencesource/System/services/monitoring/system/diagnosticts/Process.cs:2006
    at (wrapper remoting-invoke-with-check) System.Diagnostics.Process.Start()
    at Microsoft.DotNet.XHarness.Common.Execution.ProcessManager.RunAsyncInternal (System.Diagnostics.Process process, Microsoft.DotNet.XHarness.Common.Logging.ILog log, Microsoft.DotNet.XHarness.Common.Logging.ILog stdout, Microsoft.DotNet.XHarness.Common.Logging.ILog stderr, System.Action2[T1,T2] kill, System.Func3[T1,T2,TResult] getChildProcessIds, System.Nullable1[T] timeout, System.Collections.Generic.Dictionary2[TKey,TValue] environmentVariables, System.Nullable1[T] cancellationToken, System.Nullable1[T] diagnostics) [0x003a0] in /
    /src/Microsoft.DotNet.XHarness.Common/Execution/ProcessManager.cs:277
    at Xharness.Jenkins.TestTasks.MacExecuteTask.RunTestAsync () [0x008ee] in /Users/builder/azdo/_work/1/s/xamarin-macios/tests/xharness/Jenkins/TestTasks/MacExecuteTask.cs:134
    at Xharness.Jenkins.TestTasks.MacExecuteTask.RunTestAsync () [0x00b06] in /Users/builder/azdo/_work/1/s/xamarin-macios/tests/xharness/Jenkins/TestTasks/MacExecuteTask.cs:148
    at Xharness.Jenkins.TestTasks.RunTest.ExecuteAsync () [0x001b9] in /Users/builder/azdo/_work/1/s/xamarin-macios/tests/xharness/Jenkins/TestTasks/RunTest.cs:109
    at Xharness.Jenkins.TestTasks.TestTasks.RunInternalAsync () [0x00226] in /Users/builder/azdo/_work/1/s/xamarin-macios/tests/xharness/Jenkins/TestTasks/TestTask.cs:283 )
  • monotouch-test/Mac Catalyst/Debug [dotnet]: HarnessException (Harness exception for 'monotouch-test': System.ComponentModel.Win32Exception (0x80004005): ApplicationName='/Users/builder/azdo/_work/1/s/xamarin-macios/tests/xharness/tmp-test-dir/monotouch-test93/bin/Debug/net6.0-maccatalyst/maccatalyst-x64/monotouchtest.app/Contents/MacOS/monotouchtest', CommandLine='-transport:FILE --logfile:/Users/builder/azdo/work/1/s/xamarin-macios/jenkins-results/tests/monotouch-test/369/test-MacCatalyst-20210601_194832.xml --enablexml --xmlmode=wrapped --xmlversion=nunitv3 --autostart --autoexit', CurrentDirectory='', Native error= Cannot find the specified file
    at System.Diagnostics.Process.StartWithCreateProcess (System.Diagnostics.ProcessStartInfo startInfo) [0x0029f] in /Users/builder/jenkins/workspace/build-package-osx-mono/2020-02/external/bockbuild/builds/mono-x64/mcs/class/System/System.Diagnostics/Process.cs:778
    at System.Diagnostics.Process.Start () [0x0003a] in /Users/builder/jenkins/workspace/build-package-osx-mono/2020-02/external/bockbuild/builds/mono-x64/mcs/class/referencesource/System/services/monitoring/system/diagnosticts/Process.cs:2006
    at (wrapper remoting-invoke-with-check) System.Diagnostics.Process.Start()
    at Microsoft.DotNet.XHarness.Common.Execution.ProcessManager.RunAsyncInternal (System.Diagnostics.Process process, Microsoft.DotNet.XHarness.Common.Logging.ILog log, Microsoft.DotNet.XHarness.Common.Logging.ILog stdout, Microsoft.DotNet.XHarness.Common.Logging.ILog stderr, System.Action2[T1,T2] kill, System.Func3[T1,T2,TResult] getChildProcessIds, System.Nullable1[T] timeout, System.Collections.Generic.Dictionary2[TKey,TValue] environmentVariables, System.Nullable1[T] cancellationToken, System.Nullable1[T] diagnostics) [0x003a0] in /
    /src/Microsoft.DotNet.XHarness.Common/Execution/ProcessManager.cs:277
    at Xharness.Jenkins.TestTasks.MacExecuteTask.RunTestAsync () [0x008ee] in /Users/builder/azdo/_work/1/s/xamarin-macios/tests/xharness/Jenkins/TestTasks/MacExecuteTask.cs:134
    at Xharness.Jenkins.TestTasks.MacExecuteTask.RunTestAsync () [0x00b06] in /Users/builder/azdo/_work/1/s/xamarin-macios/tests/xharness/Jenkins/TestTasks/MacExecuteTask.cs:148
    at Xharness.Jenkins.TestTasks.RunTest.ExecuteAsync () [0x001b9] in /Users/builder/azdo/_work/1/s/xamarin-macios/tests/xharness/Jenkins/TestTasks/RunTest.cs:109
    at Xharness.Jenkins.TestTasks.TestTasks.RunInternalAsync () [0x00226] in /Users/builder/azdo/_work/1/s/xamarin-macios/tests/xharness/Jenkins/TestTasks/TestTask.cs:283 )
  • monotouch-test/iOS Unified 64-bits - simulator/Debug [dotnet]: LaunchFailure
  • monotouch-test/iOS Unified 64-bits - simulator/Debug (LinkSdk) [dotnet]: BuildFailure
  • monotouch-test/iOS Unified 64-bits - simulator/Debug (static registrar) [dotnet]: LaunchFailure
  • monotouch-test/iOS Unified 64-bits - simulator/Release (all optimizations) [dotnet]: BuildFailure
  • monotouch-test/tvOS - simulator/Debug [dotnet]: LaunchFailure
  • monotouch-test/tvOS - simulator/Debug (LinkSdk) [dotnet]: BuildFailure
  • monotouch-test/tvOS - simulator/Debug (static registrar) [dotnet]: LaunchFailure
  • monotouch-test/tvOS - simulator/Release (all optimizations) [dotnet]: BuildFailure
  • interdependent-binding-projects/iOS Unified 64-bits - simulator/Debug [dotnet]: LaunchFailure
  • introspection/iOS Unified 64-bits - simulator/Debug [dotnet]: LaunchFailure
  • introspection/tvOS - simulator/Debug [dotnet]: LaunchFailure
  • dont link/iOS Unified 64-bits - simulator/Debug [dotnet]: LaunchFailure
  • dont link/iOS Unified 64-bits - simulator/Release [dotnet]: LaunchFailure
  • dont link/tvOS - simulator/Debug [dotnet]: LaunchFailure
  • dont link/tvOS - simulator/Release [dotnet]: LaunchFailure
  • link all/iOS Unified 64-bits - simulator/Debug [dotnet]: BuildFailure
  • link all/iOS Unified 64-bits - simulator/Release [dotnet]: BuildFailure
  • link all/tvOS - simulator/Debug [dotnet]: BuildFailure
  • link all/tvOS - simulator/Release [dotnet]: BuildFailure
  • link sdk/iOS Unified 64-bits - simulator/Debug [dotnet]: BuildFailure
  • link sdk/iOS Unified 64-bits - simulator/Release [dotnet]: BuildFailure
  • link sdk/tvOS - simulator/Debug [dotnet]: BuildFailure
  • link sdk/tvOS - simulator/Release [dotnet]: BuildFailure
  • MSBuild tests/Integration: Failed (Execution failed with exit code 32)
  • DotNet tests: Failed (Execution failed with exit code 1)

Pipeline on Agent XAMBOT-1100.BigSur
Merge 84a5531 into f3b46b9

@vs-mobiletools-engineering-service2
Copy link
Collaborator

❌ [PR Build] Tests failed on Build ❌

Tests failed on Build.

API & Generator diff

API Diff (from PR only) (no change)
Generator Diff (no change)

GitHub pages

Results can be found in the following github pages (it might take some time to publish):

Test results

29 tests failed, 81 tests passed.

Failed tests

  • monotouch-test/Mac [dotnet]/Debug [dotnet]: HarnessException (Harness exception for 'monotouch-test': System.ComponentModel.Win32Exception (0x80004005): ApplicationName='/Users/builder/azdo/_work/1/s/xamarin-macios/tests/xharness/tmp-test-dir/monotouch-test92/bin/Debug/net6.0-macos/osx-x64/monotouchtest.app/Contents/MacOS/monotouchtest', CommandLine='-transport:FILE --logfile:/Users/builder/azdo/work/1/s/xamarin-macios/jenkins-results/tests/monotouch-test/357/test-Mac-20210602_170244.xml --enablexml --xmlmode=wrapped --xmlversion=nunitv3 --autostart --autoexit', CurrentDirectory='', Native error= Cannot find the specified file
    at System.Diagnostics.Process.StartWithCreateProcess (System.Diagnostics.ProcessStartInfo startInfo) [0x0029f] in /Users/builder/jenkins/workspace/build-package-osx-mono/2020-02/external/bockbuild/builds/mono-x64/mcs/class/System/System.Diagnostics/Process.cs:778
    at System.Diagnostics.Process.Start () [0x0003a] in /Users/builder/jenkins/workspace/build-package-osx-mono/2020-02/external/bockbuild/builds/mono-x64/mcs/class/referencesource/System/services/monitoring/system/diagnosticts/Process.cs:2006
    at (wrapper remoting-invoke-with-check) System.Diagnostics.Process.Start()
    at Microsoft.DotNet.XHarness.Common.Execution.ProcessManager.RunAsyncInternal (System.Diagnostics.Process process, Microsoft.DotNet.XHarness.Common.Logging.ILog log, Microsoft.DotNet.XHarness.Common.Logging.ILog stdout, Microsoft.DotNet.XHarness.Common.Logging.ILog stderr, System.Action2[T1,T2] kill, System.Func3[T1,T2,TResult] getChildProcessIds, System.Nullable1[T] timeout, System.Collections.Generic.Dictionary2[TKey,TValue] environmentVariables, System.Nullable1[T] cancellationToken, System.Nullable1[T] diagnostics) [0x003a0] in /
    /src/Microsoft.DotNet.XHarness.Common/Execution/ProcessManager.cs:277
    at Xharness.Jenkins.TestTasks.MacExecuteTask.RunTestAsync () [0x008ee] in /Users/builder/azdo/_work/1/s/xamarin-macios/tests/xharness/Jenkins/TestTasks/MacExecuteTask.cs:134
    at Xharness.Jenkins.TestTasks.MacExecuteTask.RunTestAsync () [0x00b06] in /Users/builder/azdo/_work/1/s/xamarin-macios/tests/xharness/Jenkins/TestTasks/MacExecuteTask.cs:148
    at Xharness.Jenkins.TestTasks.RunTest.ExecuteAsync () [0x001b9] in /Users/builder/azdo/_work/1/s/xamarin-macios/tests/xharness/Jenkins/TestTasks/RunTest.cs:109
    at Xharness.Jenkins.TestTasks.TestTasks.RunInternalAsync () [0x00226] in /Users/builder/azdo/_work/1/s/xamarin-macios/tests/xharness/Jenkins/TestTasks/TestTask.cs:283 )
  • monotouch-test/Mac [dotnet]/Debug (CoreCLR) [dotnet]: HarnessException (Harness exception for 'monotouch-test': System.ComponentModel.Win32Exception (0x80004005): ApplicationName='/Users/builder/azdo/_work/1/s/xamarin-macios/tests/xharness/tmp-test-dir/monotouch-test3498/bin/Debug/net6.0-macos/osx-x64/monotouchtest.app/Contents/MacOS/monotouchtest', CommandLine='-transport:FILE --logfile:/Users/builder/azdo/work/1/s/xamarin-macios/jenkins-results/tests/monotouch-test/359/test-Mac-20210602_170250.xml --enablexml --xmlmode=wrapped --xmlversion=nunitv3 --autostart --autoexit', CurrentDirectory='', Native error= Cannot find the specified file
    at System.Diagnostics.Process.StartWithCreateProcess (System.Diagnostics.ProcessStartInfo startInfo) [0x0029f] in /Users/builder/jenkins/workspace/build-package-osx-mono/2020-02/external/bockbuild/builds/mono-x64/mcs/class/System/System.Diagnostics/Process.cs:778
    at System.Diagnostics.Process.Start () [0x0003a] in /Users/builder/jenkins/workspace/build-package-osx-mono/2020-02/external/bockbuild/builds/mono-x64/mcs/class/referencesource/System/services/monitoring/system/diagnosticts/Process.cs:2006
    at (wrapper remoting-invoke-with-check) System.Diagnostics.Process.Start()
    at Microsoft.DotNet.XHarness.Common.Execution.ProcessManager.RunAsyncInternal (System.Diagnostics.Process process, Microsoft.DotNet.XHarness.Common.Logging.ILog log, Microsoft.DotNet.XHarness.Common.Logging.ILog stdout, Microsoft.DotNet.XHarness.Common.Logging.ILog stderr, System.Action2[T1,T2] kill, System.Func3[T1,T2,TResult] getChildProcessIds, System.Nullable1[T] timeout, System.Collections.Generic.Dictionary2[TKey,TValue] environmentVariables, System.Nullable1[T] cancellationToken, System.Nullable1[T] diagnostics) [0x003a0] in /
    /src/Microsoft.DotNet.XHarness.Common/Execution/ProcessManager.cs:277
    at Xharness.Jenkins.TestTasks.MacExecuteTask.RunTestAsync () [0x008ee] in /Users/builder/azdo/_work/1/s/xamarin-macios/tests/xharness/Jenkins/TestTasks/MacExecuteTask.cs:134
    at Xharness.Jenkins.TestTasks.MacExecuteTask.RunTestAsync () [0x00b06] in /Users/builder/azdo/_work/1/s/xamarin-macios/tests/xharness/Jenkins/TestTasks/MacExecuteTask.cs:148
    at Xharness.Jenkins.TestTasks.RunTest.ExecuteAsync () [0x001b9] in /Users/builder/azdo/_work/1/s/xamarin-macios/tests/xharness/Jenkins/TestTasks/RunTest.cs:109
    at Xharness.Jenkins.TestTasks.TestTasks.RunInternalAsync () [0x00226] in /Users/builder/azdo/_work/1/s/xamarin-macios/tests/xharness/Jenkins/TestTasks/TestTask.cs:283 )
  • monotouch-test/Mac [dotnet]/Debug (CoreCLR, static registrar) [dotnet]: HarnessException (Harness exception for 'monotouch-test': System.ComponentModel.Win32Exception (0x80004005): ApplicationName='/Users/builder/azdo/_work/1/s/xamarin-macios/tests/xharness/tmp-test-dir/monotouch-test3495/bin/Debug/net6.0-macos/osx-x64/monotouchtest.app/Contents/MacOS/monotouchtest', CommandLine='-transport:FILE --logfile:/Users/builder/azdo/work/1/s/xamarin-macios/jenkins-results/tests/monotouch-test/365/test-Mac-20210602_170256.xml --enablexml --xmlmode=wrapped --xmlversion=nunitv3 --autostart --autoexit', CurrentDirectory='', Native error= Cannot find the specified file
    at System.Diagnostics.Process.StartWithCreateProcess (System.Diagnostics.ProcessStartInfo startInfo) [0x0029f] in /Users/builder/jenkins/workspace/build-package-osx-mono/2020-02/external/bockbuild/builds/mono-x64/mcs/class/System/System.Diagnostics/Process.cs:778
    at System.Diagnostics.Process.Start () [0x0003a] in /Users/builder/jenkins/workspace/build-package-osx-mono/2020-02/external/bockbuild/builds/mono-x64/mcs/class/referencesource/System/services/monitoring/system/diagnosticts/Process.cs:2006
    at (wrapper remoting-invoke-with-check) System.Diagnostics.Process.Start()
    at Microsoft.DotNet.XHarness.Common.Execution.ProcessManager.RunAsyncInternal (System.Diagnostics.Process process, Microsoft.DotNet.XHarness.Common.Logging.ILog log, Microsoft.DotNet.XHarness.Common.Logging.ILog stdout, Microsoft.DotNet.XHarness.Common.Logging.ILog stderr, System.Action2[T1,T2] kill, System.Func3[T1,T2,TResult] getChildProcessIds, System.Nullable1[T] timeout, System.Collections.Generic.Dictionary2[TKey,TValue] environmentVariables, System.Nullable1[T] cancellationToken, System.Nullable1[T] diagnostics) [0x003a0] in /
    /src/Microsoft.DotNet.XHarness.Common/Execution/ProcessManager.cs:277
    at Xharness.Jenkins.TestTasks.MacExecuteTask.RunTestAsync () [0x008ee] in /Users/builder/azdo/_work/1/s/xamarin-macios/tests/xharness/Jenkins/TestTasks/MacExecuteTask.cs:134
    at Xharness.Jenkins.TestTasks.MacExecuteTask.RunTestAsync () [0x00b06] in /Users/builder/azdo/_work/1/s/xamarin-macios/tests/xharness/Jenkins/TestTasks/MacExecuteTask.cs:148
    at Xharness.Jenkins.TestTasks.RunTest.ExecuteAsync () [0x001b9] in /Users/builder/azdo/_work/1/s/xamarin-macios/tests/xharness/Jenkins/TestTasks/RunTest.cs:109
    at Xharness.Jenkins.TestTasks.TestTasks.RunInternalAsync () [0x00226] in /Users/builder/azdo/_work/1/s/xamarin-macios/tests/xharness/Jenkins/TestTasks/TestTask.cs:283 )
  • monotouch-test/Mac Catalyst/Debug [dotnet]: HarnessException (Harness exception for 'monotouch-test': System.ComponentModel.Win32Exception (0x80004005): ApplicationName='/Users/builder/azdo/_work/1/s/xamarin-macios/tests/xharness/tmp-test-dir/monotouch-test93/bin/Debug/net6.0-maccatalyst/maccatalyst-x64/monotouchtest.app/Contents/MacOS/monotouchtest', CommandLine='-transport:FILE --logfile:/Users/builder/azdo/work/1/s/xamarin-macios/jenkins-results/tests/monotouch-test/369/test-MacCatalyst-20210602_170301.xml --enablexml --xmlmode=wrapped --xmlversion=nunitv3 --autostart --autoexit', CurrentDirectory='', Native error= Cannot find the specified file
    at System.Diagnostics.Process.StartWithCreateProcess (System.Diagnostics.ProcessStartInfo startInfo) [0x0029f] in /Users/builder/jenkins/workspace/build-package-osx-mono/2020-02/external/bockbuild/builds/mono-x64/mcs/class/System/System.Diagnostics/Process.cs:778
    at System.Diagnostics.Process.Start () [0x0003a] in /Users/builder/jenkins/workspace/build-package-osx-mono/2020-02/external/bockbuild/builds/mono-x64/mcs/class/referencesource/System/services/monitoring/system/diagnosticts/Process.cs:2006
    at (wrapper remoting-invoke-with-check) System.Diagnostics.Process.Start()
    at Microsoft.DotNet.XHarness.Common.Execution.ProcessManager.RunAsyncInternal (System.Diagnostics.Process process, Microsoft.DotNet.XHarness.Common.Logging.ILog log, Microsoft.DotNet.XHarness.Common.Logging.ILog stdout, Microsoft.DotNet.XHarness.Common.Logging.ILog stderr, System.Action2[T1,T2] kill, System.Func3[T1,T2,TResult] getChildProcessIds, System.Nullable1[T] timeout, System.Collections.Generic.Dictionary2[TKey,TValue] environmentVariables, System.Nullable1[T] cancellationToken, System.Nullable1[T] diagnostics) [0x003a0] in /
    /src/Microsoft.DotNet.XHarness.Common/Execution/ProcessManager.cs:277
    at Xharness.Jenkins.TestTasks.MacExecuteTask.RunTestAsync () [0x008ee] in /Users/builder/azdo/_work/1/s/xamarin-macios/tests/xharness/Jenkins/TestTasks/MacExecuteTask.cs:134
    at Xharness.Jenkins.TestTasks.MacExecuteTask.RunTestAsync () [0x00b06] in /Users/builder/azdo/_work/1/s/xamarin-macios/tests/xharness/Jenkins/TestTasks/MacExecuteTask.cs:148
    at Xharness.Jenkins.TestTasks.RunTest.ExecuteAsync () [0x001b9] in /Users/builder/azdo/_work/1/s/xamarin-macios/tests/xharness/Jenkins/TestTasks/RunTest.cs:109
    at Xharness.Jenkins.TestTasks.TestTasks.RunInternalAsync () [0x00226] in /Users/builder/azdo/_work/1/s/xamarin-macios/tests/xharness/Jenkins/TestTasks/TestTask.cs:283 )
  • monotouch-test/iOS Unified 64-bits - simulator/Debug [dotnet]: LaunchFailure
  • monotouch-test/iOS Unified 64-bits - simulator/Debug (LinkSdk) [dotnet]: LaunchFailure
  • monotouch-test/iOS Unified 64-bits - simulator/Debug (static registrar) [dotnet]: LaunchFailure
  • monotouch-test/iOS Unified 64-bits - simulator/Release (all optimizations) [dotnet]: LaunchFailure
  • monotouch-test/tvOS - simulator/Debug [dotnet]: LaunchFailure
  • monotouch-test/tvOS - simulator/Debug (LinkSdk) [dotnet]: LaunchFailure
  • monotouch-test/tvOS - simulator/Debug (static registrar) [dotnet]: LaunchFailure
  • monotouch-test/tvOS - simulator/Release (all optimizations) [dotnet]: LaunchFailure
  • interdependent-binding-projects/iOS Unified 64-bits - simulator/Debug [dotnet]: LaunchFailure
  • introspection/iOS Unified 64-bits - simulator/Debug [dotnet]: LaunchFailure
  • introspection/tvOS - simulator/Debug [dotnet]: LaunchFailure
  • dont link/iOS Unified 64-bits - simulator/Debug [dotnet]: LaunchFailure
  • dont link/iOS Unified 64-bits - simulator/Release [dotnet]: LaunchFailure
  • dont link/tvOS - simulator/Debug [dotnet]: LaunchFailure
  • dont link/tvOS - simulator/Release [dotnet]: LaunchFailure
  • link all/iOS Unified 64-bits - simulator/Debug [dotnet]: LaunchFailure
  • link all/iOS Unified 64-bits - simulator/Release [dotnet]: LaunchFailure
  • link all/tvOS - simulator/Debug [dotnet]: LaunchFailure
  • link all/tvOS - simulator/Release [dotnet]: LaunchFailure
  • link sdk/iOS Unified 64-bits - simulator/Debug [dotnet]: LaunchFailure
  • link sdk/iOS Unified 64-bits - simulator/Release [dotnet]: LaunchFailure
  • link sdk/tvOS - simulator/Debug [dotnet]: LaunchFailure
  • link sdk/tvOS - simulator/Release [dotnet]: LaunchFailure
  • MSBuild tests/Integration: Failed (Execution failed with exit code 32)
  • DotNet tests: Failed (Execution failed with exit code 1)

Pipeline on Agent XAMBOT-1100.BigSur'
Merge c66e9fc into 4dd95f5

@vs-mobiletools-engineering-service2
Copy link
Collaborator

❌ [PR Build] Tests failed on Build ❌

Tests failed on Build.

API diff

✅ API Diff from stable

View API diff

API & Generator diff

API Diff (from PR only) (no change)
Generator Diff (no change)

GitHub pages

Results can be found in the following github pages (it might take some time to publish):

Test results

24 tests failed, 86 tests passed.

Failed tests

  • monotouch-test/Mac [dotnet]/Debug [dotnet]: BuildFailure
  • monotouch-test/Mac [dotnet]/Debug (CoreCLR) [dotnet]: BuildFailure
  • monotouch-test/Mac [dotnet]/Debug (CoreCLR, static registrar) [dotnet]: BuildFailure
  • monotouch-test/Mac Catalyst/Debug [dotnet]: BuildFailure
  • monotouch-test/iOS Unified 64-bits - simulator/Debug [dotnet]: BuildFailure
  • monotouch-test/iOS Unified 64-bits - simulator/Debug (LinkSdk) [dotnet]: BuildFailure
  • monotouch-test/iOS Unified 64-bits - simulator/Debug (static registrar) [dotnet]: BuildFailure
  • monotouch-test/iOS Unified 64-bits - simulator/Release (all optimizations) [dotnet]: BuildFailure
  • monotouch-test/tvOS - simulator/Debug [dotnet]: BuildFailure
  • monotouch-test/tvOS - simulator/Debug (LinkSdk) [dotnet]: BuildFailure
  • monotouch-test/tvOS - simulator/Debug (static registrar) [dotnet]: BuildFailure
  • monotouch-test/tvOS - simulator/Release (all optimizations) [dotnet]: BuildFailure
  • dont link/Mac Catalyst/Debug: TimedOut (Execution timed out after 1200 seconds.
    No test log file was produced)
  • interdependent-binding-projects/iOS Unified 64-bits - simulator/Debug [dotnet]: BuildFailure
  • link all/iOS Unified 64-bits - simulator/Debug [dotnet]: BuildFailure
  • link all/iOS Unified 64-bits - simulator/Release [dotnet]: BuildFailure
  • link all/tvOS - simulator/Debug [dotnet]: BuildFailure
  • link all/tvOS - simulator/Release [dotnet]: BuildFailure
  • link sdk/iOS Unified 64-bits - simulator/Debug [dotnet]: BuildFailure
  • link sdk/iOS Unified 64-bits - simulator/Release [dotnet]: BuildFailure
  • link sdk/tvOS - simulator/Debug [dotnet]: BuildFailure
  • link sdk/tvOS - simulator/Release [dotnet]: BuildFailure
  • MSBuild tests/Integration: Failed (Execution failed with exit code 2)
  • DotNet tests: Failed (Execution failed with exit code 1)

Pipeline on Agent XAMBOT-1094.BigSur
Merge 39b4087 into ba43cba

@vs-mobiletools-engineering-service2
Copy link
Collaborator

❌ [PR Build] Tests failed on Build ❌

Tests failed on Build.

API diff

✅ API Diff from stable

View API diff

API & Generator diff

API Diff (from PR only) (no change)
Generator Diff (no change)

GitHub pages

Results can be found in the following github pages (it might take some time to publish):

Test results

1 tests failed, 109 tests passed.

Failed tests

  • MSBuild tests/Integration: Failed (Execution failed with exit code 2)

Pipeline on Agent XAMBOT-1101.BigSur
Merge a40f5df into c527784

@vs-mobiletools-engineering-service2
Copy link
Collaborator

❌ [PR Build] Tests failed on Build ❌

Tests failed on Build.

API diff

✅ API Diff from stable

View API diff

API & Generator diff

API Diff (from PR only) (no change)
Generator Diff (no change)

GitHub pages

Results can be found in the following github pages (it might take some time to publish):

Test results

2 tests failed, 108 tests passed.

Failed tests

  • xammac tests/Mac Modern/Release (all optimizations): Failed (Test run failed.
    Tests run: 2451 Passed: 2393 Inconclusive: 10 Failed: 1 Ignored: 57)
  • MSBuild tests/Integration: Failed (Execution failed with exit code 2)

Pipeline on Agent XAMBOT-1101.BigSur'
Merge e83a246 into 7916e74

@vs-mobiletools-engineering-service2
Copy link
Collaborator

❌ [PR Build] Tests failed on Build ❌

Tests failed on Build.

API diff

✅ API Diff from stable

View API diff

API & Generator diff

API Diff (from PR only) (no change)
Generator Diff (no change)

GitHub pages

Results can be found in the following github pages (it might take some time to publish):

Test results

1 tests failed, 109 tests passed.

Failed tests

  • monotouch-test/Mac Catalyst/Debug [dotnet]: Failed (Tests run: 2621 Passed: 2461 Inconclusive: 32 Failed: 1 Ignored: 159)

Pipeline on Agent XAMBOT-1100.BigSur'
Merge 10c3fe7 into 233497d

sbomer added 2 commits June 10, 2021 09:57
By using the already-loaded Assembly closure
@vs-mobiletools-engineering-service2
Copy link
Collaborator

❌ [PR Build] Tests failed on Build ❌

Tests failed on Build.

API diff

✅ API Diff from stable

View API diff

API & Generator diff

API Diff (from PR only) (no change)
Generator Diff (no change)

GitHub pages

Results can be found in the following github pages (it might take some time to publish):

Test results

1 tests failed, 109 tests passed.

Failed tests

  • monotouch-test/iOS Unified 64-bits - simulator/Debug (static registrar): Failed

Pipeline on Agent XAMBOT-1097.BigSur'
Merge 802bbcb into 0a65331

@sbomer sbomer marked this pull request as ready for review June 11, 2021 17:13
@sbomer sbomer changed the title [WIP] Fixes for .NET 6 linker Fixes for .NET 6 linker Jun 11, 2021
@sbomer
Copy link
Member Author

sbomer commented Jun 11, 2021

Remaining work depends on dependency updates:

@sbomer sbomer requested review from rolfbjarne and spouliot June 11, 2021 17:25
@vs-mobiletools-engineering-service2
Copy link
Collaborator

❌ [PR Build] Tests failed on Build ❌

Tests failed on Build.

API diff

✅ API Diff from stable

View API diff

API & Generator diff

API Diff (from PR only) (no change)
Generator Diff (no change)

GitHub pages

Results can be found in the following github pages (it might take some time to publish):

Test results

2 tests failed, 113 tests passed.

Failed tests

  • xcframework-test/Mac Catalyst/Debug: TimedOut (Execution timed out after 1200 seconds.
    No test log file was produced)
  • introspection/watchOS 32-bits - simulator/Debug (watchOS 5.0): Failed

Pipeline on Agent XAMBOT-1094.BigSur'
Merge 6713311 into f4fae43

Co-authored-by: Rolf Bjarne Kvinge <rolf@xamarin.com>
@spouliot
Copy link
Contributor

I'm testing this locally.
At first look it seems IsDirectBinding is doing the right thing :-)

- Undo whitespace changes
- Move comment to a more appropriate place
@sbomer
Copy link
Member Author

sbomer commented Jun 14, 2021

Thanks a lot!

@spouliot
Copy link
Contributor

Looking at Xamarin.iOS.dll content there's two major differences between legacy and dotnet

  • dotnet does not mark protocol correctly (something is not backported) which means several types/members are not included in the app example
  • The synchronization context code is marking different methods (needs investigation) example

None are blockers (or regressions from current) so the PR can be merged (once bots complete the current build).

@vs-mobiletools-engineering-service2
Copy link
Collaborator

❌ [PR Build] Tests failed on Build ❌

Tests failed on Build.

API diff

✅ API Diff from stable

View API diff

API & Generator diff

API Diff (from PR only) (no change)
Generator Diff (no change)

GitHub pages

Results can be found in the following github pages (it might take some time to publish):

Test results

1 tests failed, 114 tests passed.

Failed tests

  • introspection/watchOS 32-bits - simulator/Debug (watchOS 5.0): Failed

Pipeline on Agent XAMBOT-1098.BigSur'
Merge a906f47 into 51f0651

@spouliot
Copy link
Contributor

introspection/watchOS 32-bits - simulator/Debug (watchOS 5.0): Failed

unrelated, known failure -> https://github.com/xamarin/maccore/issues/2454

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
not-notes-worthy Ignore for release notes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants