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

CreateXHarnessAppleWorkItems task failed unexpectedly when building iOS arm64 AllSubsets_Mono #67349

Closed
joperezr opened this issue Mar 30, 2022 · 22 comments
Labels
arch-arm64 area-Infrastructure-mono blocking-clean-ci Blocking PR or rolling runs of 'runtime' or 'runtime-extra-platforms' os-ios Apple iOS

Comments

@joperezr
Copy link
Member

Rolling Build failed this morning on the Build iOS arm64 Release AllSubsets_Mono job at the Send to Helix step, with a problem when trying to use the tool microsoft.dotnet.xharness.cli to run the CreateXHarnessAppleWorkItems task. The issue seems to be just a failure in the SSL handshake communication. To view more details, you can get to the log of the failing build here.

For convenience, I'm pasting the stack trace of the failure below:

##[error].packages/microsoft.dotnet.helix.sdk/7.0.0-beta.22171.2/tools/xharness-runner/XHarnessRunner.targets(122,5): error MSB4018: The "CreateXHarnessAppleWorkItems" task failed unexpectedly.
System.Net.Http.HttpRequestException: The SSL connection could not be established, see inner exception.
 ---> System.Security.Authentication.AuthenticationException: The remote certificate is invalid because of errors in the certificate chain: RevocationStatusUnknown
   at System.Net.Security.SslStream.SendAuthResetSignal(ProtocolToken message, ExceptionDispatchInfo exception)
   at System.Net.Security.SslStream.CompleteHandshake(SslAuthenticationOptions sslAuthenticationOptions)
   at System.Net.Security.SslStream.ForceAuthenticationAsync[TIOAdapter](TIOAdapter adapter, Boolean receiveFirst, Byte[] reAuthenticationData, Boolean isApm)
   at System.Net.Http.ConnectHelper.EstablishSslConnectionAsync(SslClientAuthenticationOptions sslOptions, HttpRequestMessage request, Boolean async, Stream stream, CancellationToken cancellationToken)
   --- End of inner exception stack trace ---
   at System.Net.Http.ConnectHelper.EstablishSslConnectionAsync(SslClientAuthenticationOptions sslOptions, HttpRequestMessage request, Boolean async, Stream stream, CancellationToken cancellationToken)
   at System.Net.Http.HttpConnectionPool.ConnectAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
   at System.Net.Http.HttpConnectionPool.CreateHttp11ConnectionAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
   at System.Net.Http.HttpConnectionPool.AddHttp11ConnectionAsync(HttpRequestMessage request)
   at System.Threading.Tasks.TaskCompletionSourceWithCancellation`1.WaitWithCancellationAsync(CancellationToken cancellationToken)
   at System.Net.Http.HttpConnectionPool.GetHttp11ConnectionAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
   at System.Net.Http.HttpConnectionPool.SendWithVersionDetectionAndRetryAsync(HttpRequestMessage request, Boolean async, Boolean doRequestAuth, CancellationToken cancellationToken)
   at System.Net.Http.RedirectHandler.SendAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
   at System.Net.Http.HttpClient.<SendAsync>g__Core|83_0(HttpRequestMessage request, HttpCompletionOption completionOption, CancellationTokenSource cts, Boolean disposeCts, CancellationTokenSource pendingRequestsCts, CancellationToken originalCancellationToken)
   at Microsoft.DotNet.Helix.Sdk.ProvisioningProfileProvider.<>c__DisplayClass14_0.<<DownloadProvisioningProfile>b__0>d.MoveNext() in /_/src/Microsoft.DotNet.Helix/Sdk/ProvisioningProfileProvider.cs:line 190
--- End of stack trace from previous location ---
   at Microsoft.Arcade.Common.Helpers.<>c__DisplayClass7_0.<DirectoryMutexExec>b__0() in /_/src/Common/Microsoft.Arcade.Common/Helpers.cs:line 71
   at Microsoft.Arcade.Common.Helpers.MutexExec[T](Func`1 function, String mutexName) in /_/src/Common/Microsoft.Arcade.Common/Helpers.cs:line 45
   at Microsoft.Arcade.Common.Helpers.DirectoryMutexExec[T](Func`1 function, String path) in /_/src/Common/Microsoft.Arcade.Common/Helpers.cs:line 64
   at Microsoft.Arcade.Common.Helpers.DirectoryMutexExec(Func`1 function, String path) in /_/src/Common/Microsoft.Arcade.Common/Helpers.cs:line 71
   at Microsoft.DotNet.Helix.Sdk.ProvisioningProfileProvider.DownloadProvisioningProfile(ApplePlatform platform) in /_/src/Microsoft.DotNet.Helix/Sdk/ProvisioningProfileProvider.cs:line 179
   at Microsoft.DotNet.Helix.Sdk.ProvisioningProfileProvider.AddProfileToPayload(String archivePath, String testTarget) in /_/src/Microsoft.DotNet.Helix/Sdk/ProvisioningProfileProvider.cs:line 99
   at Microsoft.DotNet.Helix.Sdk.CreateXHarnessAppleWorkItems.PrepareWorkItem(IZipArchiveManager zipArchiveManager, IFileSystem fileSystem, IProvisioningProfileProvider provisioningProfileProvider, ITaskItem appBundleItem) in /_/src/Microsoft.DotNet.Helix/Sdk/CreateXHarnessAppleWorkItems.cs:line 189
   at Microsoft.DotNet.Helix.Sdk.CreateXHarnessAppleWorkItems.ExecuteTask(IProvisioningProfileProvider provisioningProfileProvider, IZipArchiveManager zipArchiveManager, IFileSystem fileSystem) in /_/src/Microsoft.DotNet.Helix/Sdk/CreateXHarnessAppleWorkItems.cs:line 81

@radical do you mind tagging the right people that should be looking into this?

@joperezr joperezr added arch-arm64 blocking-clean-ci Blocking PR or rolling runs of 'runtime' or 'runtime-extra-platforms' area-Infrastructure-mono os-ios Apple iOS labels Mar 30, 2022
@ghost
Copy link

ghost commented Mar 30, 2022

Tagging subscribers to this area: @directhex
See info in area-owners.md if you want to be subscribed.

Issue Details

Rolling Build failed this morning on the Build iOS arm64 Release AllSubsets_Mono job at the Send to Helix step, with a problem when trying to use the tool microsoft.dotnet.xharness.cli to run the CreateXHarnessAppleWorkItems task. The issue seems to be just a failure in the SSL handshake communication. To view more details, you can get to the log of the failing build here.

For convenience, I'm pasting the stack trace of the failure below:

##[error].packages/microsoft.dotnet.helix.sdk/7.0.0-beta.22171.2/tools/xharness-runner/XHarnessRunner.targets(122,5): error MSB4018: The "CreateXHarnessAppleWorkItems" task failed unexpectedly.
System.Net.Http.HttpRequestException: The SSL connection could not be established, see inner exception.
 ---> System.Security.Authentication.AuthenticationException: The remote certificate is invalid because of errors in the certificate chain: RevocationStatusUnknown
   at System.Net.Security.SslStream.SendAuthResetSignal(ProtocolToken message, ExceptionDispatchInfo exception)
   at System.Net.Security.SslStream.CompleteHandshake(SslAuthenticationOptions sslAuthenticationOptions)
   at System.Net.Security.SslStream.ForceAuthenticationAsync[TIOAdapter](TIOAdapter adapter, Boolean receiveFirst, Byte[] reAuthenticationData, Boolean isApm)
   at System.Net.Http.ConnectHelper.EstablishSslConnectionAsync(SslClientAuthenticationOptions sslOptions, HttpRequestMessage request, Boolean async, Stream stream, CancellationToken cancellationToken)
   --- End of inner exception stack trace ---
   at System.Net.Http.ConnectHelper.EstablishSslConnectionAsync(SslClientAuthenticationOptions sslOptions, HttpRequestMessage request, Boolean async, Stream stream, CancellationToken cancellationToken)
   at System.Net.Http.HttpConnectionPool.ConnectAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
   at System.Net.Http.HttpConnectionPool.CreateHttp11ConnectionAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
   at System.Net.Http.HttpConnectionPool.AddHttp11ConnectionAsync(HttpRequestMessage request)
   at System.Threading.Tasks.TaskCompletionSourceWithCancellation`1.WaitWithCancellationAsync(CancellationToken cancellationToken)
   at System.Net.Http.HttpConnectionPool.GetHttp11ConnectionAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
   at System.Net.Http.HttpConnectionPool.SendWithVersionDetectionAndRetryAsync(HttpRequestMessage request, Boolean async, Boolean doRequestAuth, CancellationToken cancellationToken)
   at System.Net.Http.RedirectHandler.SendAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
   at System.Net.Http.HttpClient.<SendAsync>g__Core|83_0(HttpRequestMessage request, HttpCompletionOption completionOption, CancellationTokenSource cts, Boolean disposeCts, CancellationTokenSource pendingRequestsCts, CancellationToken originalCancellationToken)
   at Microsoft.DotNet.Helix.Sdk.ProvisioningProfileProvider.<>c__DisplayClass14_0.<<DownloadProvisioningProfile>b__0>d.MoveNext() in /_/src/Microsoft.DotNet.Helix/Sdk/ProvisioningProfileProvider.cs:line 190
--- End of stack trace from previous location ---
   at Microsoft.Arcade.Common.Helpers.<>c__DisplayClass7_0.<DirectoryMutexExec>b__0() in /_/src/Common/Microsoft.Arcade.Common/Helpers.cs:line 71
   at Microsoft.Arcade.Common.Helpers.MutexExec[T](Func`1 function, String mutexName) in /_/src/Common/Microsoft.Arcade.Common/Helpers.cs:line 45
   at Microsoft.Arcade.Common.Helpers.DirectoryMutexExec[T](Func`1 function, String path) in /_/src/Common/Microsoft.Arcade.Common/Helpers.cs:line 64
   at Microsoft.Arcade.Common.Helpers.DirectoryMutexExec(Func`1 function, String path) in /_/src/Common/Microsoft.Arcade.Common/Helpers.cs:line 71
   at Microsoft.DotNet.Helix.Sdk.ProvisioningProfileProvider.DownloadProvisioningProfile(ApplePlatform platform) in /_/src/Microsoft.DotNet.Helix/Sdk/ProvisioningProfileProvider.cs:line 179
   at Microsoft.DotNet.Helix.Sdk.ProvisioningProfileProvider.AddProfileToPayload(String archivePath, String testTarget) in /_/src/Microsoft.DotNet.Helix/Sdk/ProvisioningProfileProvider.cs:line 99
   at Microsoft.DotNet.Helix.Sdk.CreateXHarnessAppleWorkItems.PrepareWorkItem(IZipArchiveManager zipArchiveManager, IFileSystem fileSystem, IProvisioningProfileProvider provisioningProfileProvider, ITaskItem appBundleItem) in /_/src/Microsoft.DotNet.Helix/Sdk/CreateXHarnessAppleWorkItems.cs:line 189
   at Microsoft.DotNet.Helix.Sdk.CreateXHarnessAppleWorkItems.ExecuteTask(IProvisioningProfileProvider provisioningProfileProvider, IZipArchiveManager zipArchiveManager, IFileSystem fileSystem) in /_/src/Microsoft.DotNet.Helix/Sdk/CreateXHarnessAppleWorkItems.cs:line 81

@radical do you mind tagging the right people that should be looking into this?

Author: joperezr
Assignees: -
Labels:

arch-arm64, blocking-clean-ci, area-Infrastructure-mono, os-ios

Milestone: -

@dotnet-issue-labeler dotnet-issue-labeler bot added the untriaged New issue has not been triaged by the area owner label Mar 30, 2022
@radical
Copy link
Member

radical commented Mar 30, 2022

System.Security.Authentication.AuthenticationException: The remote certificate is invalid because of errors in the certificate chain: RevocationStatusUnknown

cc @steveisok

@steveisok
Copy link
Member

@premun looks like there might be a problem trying to grab the provisioning profile.

@premun
Copy link
Member

premun commented Mar 31, 2022

I guess this is a fluke? Or possibly something to do with the TLS 1.2 changes happening all around, maybe the agent didn't have this enabled somehow?

I tried to run this again and seems to work but I will add retries: dotnet/arcade#8703

@steveisok
Copy link
Member

Thanks, @premun.

@joperezr
Copy link
Member Author

joperezr commented Apr 1, 2022

This doesn't seem fixed, it failed again in today's build: https://dev.azure.com/dnceng/public/_build/results?buildId=1694490&view=logs&j=f4520fb1-1559-5885-1d9c-3cb3f6a85e23&t=6c7a8cfe-f92e-569a-eef9-b2ad3e13056d

It does seem flaky as we have had successful builds in between the two with the failure, but it does indeed happen some times so should be investigated as it is now twice this week where this is the only error keeping the rolling build from being green.

@steveisok steveisok reopened this Apr 1, 2022
@premun
Copy link
Member

premun commented Apr 4, 2022

I am prioritizing dotnet/arcade#8703 and will have a look. There was no code change in that area for many months so it might be actually related to TLS (for which retries won't help, I am afraid). But I will see what can be done.

@danmoseley
Copy link
Member

@wfurt @bartonjs is there a way to get more info from

System.Net.Http.HttpRequestException: The SSL connection could not be established, see inner exception.
 ---> System.Security.Authentication.AuthenticationException: The remote certificate is invalid because of errors in the certificate chain: RevocationStatusUnknown

should it log the name of the cert, or the endpoint?

@premun
Copy link
Member

premun commented Apr 6, 2022

@wfurt @bartonjs do you think this is an intermittent issue that will be resolved by retries or will it fail because of some OS state?

@bartonjs
Copy link
Member

bartonjs commented Apr 6, 2022

RevocationStatusUnknown means one of

  • The root certificate of the remote party could not be determined (should also say PartialChain)
  • The root certificate of the remote party was not trusted (should also say UnknownRootAuthority)
  • The client is running .NET 7 Preview 3 on Linux and some cert in the chain is expired (should also say NotTimeValid)
  • The cached revocation data didn't exist or was expired and new data couldn't be obtained:
    • Firewall prevented the connection
    • The revocation data host was down
    • Timeout
    • No available client sockets
    • Any other kind of networking problem

Since no other status code was reported (or the exception only prints one) it sounds like just intermittency (unless it's a firewall configuration problem). But for a revocation host problem it may take longer to recover than "try three times".

@premun
Copy link
Member

premun commented Apr 6, 2022

Thanks for the explanation!

I am adding 10 retries with exponential backoff here: dotnet/arcade#8747
And I will monitor Kusto for this error:

TimelineIssues
| where Type == "error" and Message contains "CreateXHarnessAppleWorkItems"
| join kind=inner TimelineBuilds on BuildId
| where StartTime > now() - 14d

@carlossanlop
Copy link
Member

Happened again in today's rolling build: https://dev.azure.com/dnceng/public/_build/results?buildId=1702530&view=results
Job: https://dev.azure.com/dnceng/public/_build/results?buildId=1702530&view=logs&j=a5078f86-b345-5a4a-85ee-f64916152c6f&t=b1d0531b-2b6c-5e64-cc59-e2e1ffcc72bf&l=76
Callstack:

Tool 'microsoft.dotnet.xharness.cli' (version '1.0.0-prerelease.22180.1') was successfully installed.
/Users/runner/work/1/s/.packages/microsoft.dotnet.helix.sdk/7.0.0-beta.22179.1/tools/xharness-runner/XHarnessRunner.targets(122,5): error MSB4018: The "CreateXHarnessAppleWorkItems" task failed unexpectedly. [/Users/runner/work/1/s/src/libraries/sendtohelixhelp.proj]
/Users/runner/work/1/s/.packages/microsoft.dotnet.helix.sdk/7.0.0-beta.22179.1/tools/xharness-runner/XHarnessRunner.targets(122,5): error MSB4018: System.Net.Http.HttpRequestException: The SSL connection could not be established, see inner exception. [/Users/runner/work/1/s/src/libraries/sendtohelixhelp.proj]
/Users/runner/work/1/s/.packages/microsoft.dotnet.helix.sdk/7.0.0-beta.22179.1/tools/xharness-runner/XHarnessRunner.targets(122,5): error MSB4018:  ---> System.Security.Authentication.AuthenticationException: The remote certificate is invalid because of errors in the certificate chain: RevocationStatusUnknown [/Users/runner/work/1/s/src/libraries/sendtohelixhelp.proj]
/Users/runner/work/1/s/.packages/microsoft.dotnet.helix.sdk/7.0.0-beta.22179.1/tools/xharness-runner/XHarnessRunner.targets(122,5): error MSB4018:    at System.Net.Security.SslStream.SendAuthResetSignal(ProtocolToken message, ExceptionDispatchInfo exception) [/Users/runner/work/1/s/src/libraries/sendtohelixhelp.proj]
/Users/runner/work/1/s/.packages/microsoft.dotnet.helix.sdk/7.0.0-beta.22179.1/tools/xharness-runner/XHarnessRunner.targets(122,5): error MSB4018:    at System.Net.Security.SslStream.CompleteHandshake(SslAuthenticationOptions sslAuthenticationOptions) [/Users/runner/work/1/s/src/libraries/sendtohelixhelp.proj]
/Users/runner/work/1/s/.packages/microsoft.dotnet.helix.sdk/7.0.0-beta.22179.1/tools/xharness-runner/XHarnessRunner.targets(122,5): error MSB4018:    at System.Net.Security.SslStream.ForceAuthenticationAsync[TIOAdapter](TIOAdapter adapter, Boolean receiveFirst, Byte[] reAuthenticationData, Boolean isApm) [/Users/runner/work/1/s/src/libraries/sendtohelixhelp.proj]
/Users/runner/work/1/s/.packages/microsoft.dotnet.helix.sdk/7.0.0-beta.22179.1/tools/xharness-runner/XHarnessRunner.targets(122,5): error MSB4018:    at System.Net.Http.ConnectHelper.EstablishSslConnectionAsync(SslClientAuthenticationOptions sslOptions, HttpRequestMessage request, Boolean async, Stream stream, CancellationToken cancellationToken) [/Users/runner/work/1/s/src/libraries/sendtohelixhelp.proj]
/Users/runner/work/1/s/.packages/microsoft.dotnet.helix.sdk/7.0.0-beta.22179.1/tools/xharness-runner/XHarnessRunner.targets(122,5): error MSB4018:    --- End of inner exception stack trace --- [/Users/runner/work/1/s/src/libraries/sendtohelixhelp.proj]
/Users/runner/work/1/s/.packages/microsoft.dotnet.helix.sdk/7.0.0-beta.22179.1/tools/xharness-runner/XHarnessRunner.targets(122,5): error MSB4018:    at System.Net.Http.ConnectHelper.EstablishSslConnectionAsync(SslClientAuthenticationOptions sslOptions, HttpRequestMessage request, Boolean async, Stream stream, CancellationToken cancellationToken) [/Users/runner/work/1/s/src/libraries/sendtohelixhelp.proj]
/Users/runner/work/1/s/.packages/microsoft.dotnet.helix.sdk/7.0.0-beta.22179.1/tools/xharness-runner/XHarnessRunner.targets(122,5): error MSB4018:    at System.Net.Http.HttpConnectionPool.ConnectAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken) [/Users/runner/work/1/s/src/libraries/sendtohelixhelp.proj]
/Users/runner/work/1/s/.packages/microsoft.dotnet.helix.sdk/7.0.0-beta.22179.1/tools/xharness-runner/XHarnessRunner.targets(122,5): error MSB4018:    at System.Net.Http.HttpConnectionPool.CreateHttp11ConnectionAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken) [/Users/runner/work/1/s/src/libraries/sendtohelixhelp.proj]
/Users/runner/work/1/s/.packages/microsoft.dotnet.helix.sdk/7.0.0-beta.22179.1/tools/xharness-runner/XHarnessRunner.targets(122,5): error MSB4018:    at System.Net.Http.HttpConnectionPool.AddHttp11ConnectionAsync(HttpRequestMessage request) [/Users/runner/work/1/s/src/libraries/sendtohelixhelp.proj]
/Users/runner/work/1/s/.packages/microsoft.dotnet.helix.sdk/7.0.0-beta.22179.1/tools/xharness-runner/XHarnessRunner.targets(122,5): error MSB4018:    at System.Threading.Tasks.TaskCompletionSourceWithCancellation`1.WaitWithCancellationAsync(CancellationToken cancellationToken) [/Users/runner/work/1/s/src/libraries/sendtohelixhelp.proj]
/Users/runner/work/1/s/.packages/microsoft.dotnet.helix.sdk/7.0.0-beta.22179.1/tools/xharness-runner/XHarnessRunner.targets(122,5): error MSB4018:    at System.Net.Http.HttpConnectionPool.GetHttp11ConnectionAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken) [/Users/runner/work/1/s/src/libraries/sendtohelixhelp.proj]
/Users/runner/work/1/s/.packages/microsoft.dotnet.helix.sdk/7.0.0-beta.22179.1/tools/xharness-runner/XHarnessRunner.targets(122,5): error MSB4018:    at System.Net.Http.HttpConnectionPool.SendWithVersionDetectionAndRetryAsync(HttpRequestMessage request, Boolean async, Boolean doRequestAuth, CancellationToken cancellationToken) [/Users/runner/work/1/s/src/libraries/sendtohelixhelp.proj]
/Users/runner/work/1/s/.packages/microsoft.dotnet.helix.sdk/7.0.0-beta.22179.1/tools/xharness-runner/XHarnessRunner.targets(122,5): error MSB4018:    at System.Net.Http.RedirectHandler.SendAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken) [/Users/runner/work/1/s/src/libraries/sendtohelixhelp.proj]
/Users/runner/work/1/s/.packages/microsoft.dotnet.helix.sdk/7.0.0-beta.22179.1/tools/xharness-runner/XHarnessRunner.targets(122,5): error MSB4018:    at System.Net.Http.HttpClient.<SendAsync>g__Core|83_0(HttpRequestMessage request, HttpCompletionOption completionOption, CancellationTokenSource cts, Boolean disposeCts, CancellationTokenSource pendingRequestsCts, CancellationToken originalCancellationToken) [/Users/runner/work/1/s/src/libraries/sendtohelixhelp.proj]
/Users/runner/work/1/s/.packages/microsoft.dotnet.helix.sdk/7.0.0-beta.22179.1/tools/xharness-runner/XHarnessRunner.targets(122,5): error MSB4018:    at Microsoft.DotNet.Helix.Sdk.ProvisioningProfileProvider.<>c__DisplayClass14_0.<<DownloadProvisioningProfile>b__0>d.MoveNext() in /_/src/Microsoft.DotNet.Helix/Sdk/ProvisioningProfileProvider.cs:line 190 [/Users/runner/work/1/s/src/libraries/sendtohelixhelp.proj]
/Users/runner/work/1/s/.packages/microsoft.dotnet.helix.sdk/7.0.0-beta.22179.1/tools/xharness-runner/XHarnessRunner.targets(122,5): error MSB4018: --- End of stack trace from previous location --- [/Users/runner/work/1/s/src/libraries/sendtohelixhelp.proj]
/Users/runner/work/1/s/.packages/microsoft.dotnet.helix.sdk/7.0.0-beta.22179.1/tools/xharness-runner/XHarnessRunner.targets(122,5): error MSB4018:    at Microsoft.Arcade.Common.Helpers.<>c__DisplayClass7_0.<DirectoryMutexExec>b__0() in /_/src/Common/Microsoft.Arcade.Common/Helpers.cs:line 71 [/Users/runner/work/1/s/src/libraries/sendtohelixhelp.proj]
/Users/runner/work/1/s/.packages/microsoft.dotnet.helix.sdk/7.0.0-beta.22179.1/tools/xharness-runner/XHarnessRunner.targets(122,5): error MSB4018:    at Microsoft.Arcade.Common.Helpers.MutexExec[T](Func`1 function, String mutexName) in /_/src/Common/Microsoft.Arcade.Common/Helpers.cs:line 45 [/Users/runner/work/1/s/src/libraries/sendtohelixhelp.proj]
/Users/runner/work/1/s/.packages/microsoft.dotnet.helix.sdk/7.0.0-beta.22179.1/tools/xharness-runner/XHarnessRunner.targets(122,5): error MSB4018:    at Microsoft.Arcade.Common.Helpers.DirectoryMutexExec[T](Func`1 function, String path) in /_/src/Common/Microsoft.Arcade.Common/Helpers.cs:line 64 [/Users/runner/work/1/s/src/libraries/sendtohelixhelp.proj]
/Users/runner/work/1/s/.packages/microsoft.dotnet.helix.sdk/7.0.0-beta.22179.1/tools/xharness-runner/XHarnessRunner.targets(122,5): error MSB4018:    at Microsoft.Arcade.Common.Helpers.DirectoryMutexExec(Func`1 function, String path) in /_/src/Common/Microsoft.Arcade.Common/Helpers.cs:line 71 [/Users/runner/work/1/s/src/libraries/sendtohelixhelp.proj]
/Users/runner/work/1/s/.packages/microsoft.dotnet.helix.sdk/7.0.0-beta.22179.1/tools/xharness-runner/XHarnessRunner.targets(122,5): error MSB4018:    at Microsoft.DotNet.Helix.Sdk.ProvisioningProfileProvider.DownloadProvisioningProfile(ApplePlatform platform) in /_/src/Microsoft.DotNet.Helix/Sdk/ProvisioningProfileProvider.cs:line 179 [/Users/runner/work/1/s/src/libraries/sendtohelixhelp.proj]

@premun
Copy link
Member

premun commented Apr 6, 2022

Probably will keep happening before we merge the fix and flow Arcade to runtime

@carlossanlop
Copy link
Member

Happened again in the runtime-extra-platforms rolling build https://dev.azure.com/dnceng/public/public%20Team/_build/results?buildId=1702568&view=logs&j=a5078f86-b345-5a4a-85ee-f64916152c6f&t=b1d0531b-2b6c-5e64-cc59-e2e1ffcc72bf&l=76

  • Queues: OSX.1015.Amd64.Iphone.Open
  • TestRunNamePrefix: net7.0-iOS-Release-arm64-Mono_Release
You can invoke the tool using the following command: xharness
Tool 'microsoft.dotnet.xharness.cli' (version '1.0.0-prerelease.22180.1') was successfully installed.
/Users/runner/work/1/s/.packages/microsoft.dotnet.helix.sdk/7.0.0-beta.22179.1/tools/xharness-runner/XHarnessRunner.targets(122,5): error MSB4018: The "CreateXHarnessAppleWorkItems" task failed unexpectedly. [/Users/runner/work/1/s/src/libraries/sendtohelixhelp.proj]
/Users/runner/work/1/s/.packages/microsoft.dotnet.helix.sdk/7.0.0-beta.22179.1/tools/xharness-runner/XHarnessRunner.targets(122,5): error MSB4018: System.Net.Http.HttpRequestException: The SSL connection could not be established, see inner exception. [/Users/runner/work/1/s/src/libraries/sendtohelixhelp.proj]
/Users/runner/work/1/s/.packages/microsoft.dotnet.helix.sdk/7.0.0-beta.22179.1/tools/xharness-runner/XHarnessRunner.targets(122,5): error MSB4018:  ---> System.Security.Authentication.AuthenticationException: The remote certificate is invalid because of errors in the certificate chain: RevocationStatusUnknown [/Users/runner/work/1/s/src/libraries/sendtohelixhelp.proj]
/Users/runner/work/1/s/.packages/microsoft.dotnet.helix.sdk/7.0.0-beta.22179.1/tools/xharness-runner/XHarnessRunner.targets(122,5): error MSB4018:    at System.Net.Security.SslStream.SendAuthResetSignal(ProtocolToken message, ExceptionDispatchInfo exception) [/Users/runner/work/1/s/src/libraries/sendtohelixhelp.proj]
/Users/runner/work/1/s/.packages/microsoft.dotnet.helix.sdk/7.0.0-beta.22179.1/tools/xharness-runner/XHarnessRunner.targets(122,5): error MSB4018:    at System.Net.Security.SslStream.CompleteHandshake(SslAuthenticationOptions sslAuthenticationOptions) [/Users/runner/work/1/s/src/libraries/sendtohelixhelp.proj]
/Users/runner/work/1/s/.packages/microsoft.dotnet.helix.sdk/7.0.0-beta.22179.1/tools/xharness-runner/XHarnessRunner.targets(122,5): error MSB4018:    at System.Net.Security.SslStream.ForceAuthenticationAsync[TIOAdapter](TIOAdapter adapter, Boolean receiveFirst, Byte[] reAuthenticationData, Boolean isApm) [/Users/runner/work/1/s/src/libraries/sendtohelixhelp.proj]
/Users/runner/work/1/s/.packages/microsoft.dotnet.helix.sdk/7.0.0-beta.22179.1/tools/xharness-runner/XHarnessRunner.targets(122,5): error MSB4018:    at System.Net.Http.ConnectHelper.EstablishSslConnectionAsync(SslClientAuthenticationOptions sslOptions, HttpRequestMessage request, Boolean async, Stream stream, CancellationToken cancellationToken) [/Users/runner/work/1/s/src/libraries/sendtohelixhelp.proj]
/Users/runner/work/1/s/.packages/microsoft.dotnet.helix.sdk/7.0.0-beta.22179.1/tools/xharness-runner/XHarnessRunner.targets(122,5): error MSB4018:    --- End of inner exception stack trace --- [/Users/runner/work/1/s/src/libraries/sendtohelixhelp.proj]
/Users/runner/work/1/s/.packages/microsoft.dotnet.helix.sdk/7.0.0-beta.22179.1/tools/xharness-runner/XHarnessRunner.targets(122,5): error MSB4018:    at System.Net.Http.ConnectHelper.EstablishSslConnectionAsync(SslClientAuthenticationOptions sslOptions, HttpRequestMessage request, Boolean async, Stream stream, CancellationToken cancellationToken) [/Users/runner/work/1/s/src/libraries/sendtohelixhelp.proj]
/Users/runner/work/1/s/.packages/microsoft.dotnet.helix.sdk/7.0.0-beta.22179.1/tools/xharness-runner/XHarnessRunner.targets(122,5): error MSB4018:    at System.Net.Http.HttpConnectionPool.ConnectAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken) [/Users/runner/work/1/s/src/libraries/sendtohelixhelp.proj]
/Users/runner/work/1/s/.packages/microsoft.dotnet.helix.sdk/7.0.0-beta.22179.1/tools/xharness-runner/XHarnessRunner.targets(122,5): error MSB4018:    at System.Net.Http.HttpConnectionPool.CreateHttp11ConnectionAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken) [/Users/runner/work/1/s/src/libraries/sendtohelixhelp.proj]
/Users/runner/work/1/s/.packages/microsoft.dotnet.helix.sdk/7.0.0-beta.22179.1/tools/xharness-runner/XHarnessRunner.targets(122,5): error MSB4018:    at System.Net.Http.HttpConnectionPool.AddHttp11ConnectionAsync(HttpRequestMessage request) [/Users/runner/work/1/s/src/libraries/sendtohelixhelp.proj]
/Users/runner/work/1/s/.packages/microsoft.dotnet.helix.sdk/7.0.0-beta.22179.1/tools/xharness-runner/XHarnessRunner.targets(122,5): error MSB4018:    at System.Threading.Tasks.TaskCompletionSourceWithCancellation`1.WaitWithCancellationAsync(CancellationToken cancellationToken) [/Users/runner/work/1/s/src/libraries/sendtohelixhelp.proj]
/Users/runner/work/1/s/.packages/microsoft.dotnet.helix.sdk/7.0.0-beta.22179.1/tools/xharness-runner/XHarnessRunner.targets(122,5): error MSB4018:    at System.Net.Http.HttpConnectionPool.GetHttp11ConnectionAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken) [/Users/runner/work/1/s/src/libraries/sendtohelixhelp.proj]
/Users/runner/work/1/s/.packages/microsoft.dotnet.helix.sdk/7.0.0-beta.22179.1/tools/xharness-runner/XHarnessRunner.targets(122,5): error MSB4018:    at System.Net.Http.HttpConnectionPool.SendWithVersionDetectionAndRetryAsync(HttpRequestMessage request, Boolean async, Boolean doRequestAuth, CancellationToken cancellationToken) [/Users/runner/work/1/s/src/libraries/sendtohelixhelp.proj]
/Users/runner/work/1/s/.packages/microsoft.dotnet.helix.sdk/7.0.0-beta.22179.1/tools/xharness-runner/XHarnessRunner.targets(122,5): error MSB4018:    at System.Net.Http.RedirectHandler.SendAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken) [/Users/runner/work/1/s/src/libraries/sendtohelixhelp.proj]
/Users/runner/work/1/s/.packages/microsoft.dotnet.helix.sdk/7.0.0-beta.22179.1/tools/xharness-runner/XHarnessRunner.targets(122,5): error MSB4018:    at System.Net.Http.HttpClient.<SendAsync>g__Core|83_0(HttpRequestMessage request, HttpCompletionOption completionOption, CancellationTokenSource cts, Boolean disposeCts, CancellationTokenSource pendingRequestsCts, CancellationToken originalCancellationToken) [/Users/runner/work/1/s/src/libraries/sendtohelixhelp.proj]
/Users/runner/work/1/s/.packages/microsoft.dotnet.helix.sdk/7.0.0-beta.22179.1/tools/xharness-runner/XHarnessRunner.targets(122,5): error MSB4018:    at Microsoft.DotNet.Helix.Sdk.ProvisioningProfileProvider.<>c__DisplayClass14_0.<<DownloadProvisioningProfile>b__0>d.MoveNext() in /_/src/Microsoft.DotNet.Helix/Sdk/ProvisioningProfileProvider.cs:line 190 [/Users/runner/work/1/s/src/libraries/sendtohelixhelp.proj]
/Users/runner/work/1/s/.packages/microsoft.dotnet.helix.sdk/7.0.0-beta.22179.1/tools/xharness-runner/XHarnessRunner.targets(122,5): error MSB4018: --- End of stack trace from previous location --- [/Users/runner/work/1/s/src/libraries/sendtohelixhelp.proj]
/Users/runner/work/1/s/.packages/microsoft.dotnet.helix.sdk/7.0.0-beta.22179.1/tools/xharness-runner/XHarnessRunner.targets(122,5): error MSB4018:    at Microsoft.Arcade.Common.Helpers.<>c__DisplayClass7_0.<DirectoryMutexExec>b__0() in /_/src/Common/Microsoft.Arcade.Common/Helpers.cs:line 71 [/Users/runner/work/1/s/src/libraries/sendtohelixhelp.proj]
/Users/runner/work/1/s/.packages/microsoft.dotnet.helix.sdk/7.0.0-beta.22179.1/tools/xharness-runner/XHarnessRunner.targets(122,5): error MSB4018:    at Microsoft.Arcade.Common.Helpers.MutexExec[T](Func`1 function, String mutexName) in /_/src/Common/Microsoft.Arcade.Common/Helpers.cs:line 45 [/Users/runner/work/1/s/src/libraries/sendtohelixhelp.proj]
/Users/runner/work/1/s/.packages/microsoft.dotnet.helix.sdk/7.0.0-beta.22179.1/tools/xharness-runner/XHarnessRunner.targets(122,5): error MSB4018:    at Microsoft.Arcade.Common.Helpers.DirectoryMutexExec[T](Func`1 function, String path) in /_/src/Common/Microsoft.Arcade.Common/Helpers.cs:line 64 [/Users/runner/work/1/s/src/libraries/sendtohelixhelp.proj]
/Users/runner/work/1/s/.packages/microsoft.dotnet.helix.sdk/7.0.0-beta.22179.1/tools/xharness-runner/XHarnessRunner.targets(122,5): error MSB4018:    at Microsoft.Arcade.Common.Helpers.DirectoryMutexExec(Func`1 function, String path) in /_/src/Common/Microsoft.Arcade.Common/Helpers.cs:line 71 [/Users/runner/work/1/s/src/libraries/sendtohelixhelp.proj]
/Users/runner/work/1/s/.packages/microsoft.dotnet.helix.sdk/7.0.0-beta.22179.1/tools/xharness-runner/XHarnessRunner.targets(122,5): error MSB4018:    at Microsoft.DotNet.Helix.Sdk.ProvisioningProfileProvider.DownloadProvisioningProfile(ApplePlatform platform) in /_/src/Microsoft.DotNet.Helix/Sdk/ProvisioningProfileProvider.cs:line 179 [/Users/runner/work/1/s/src/libraries/sendtohelixhelp.proj]
/Users/runner/work/1/s/.packages/microsoft.dotnet.helix.sdk/7.0.0-beta.22179.1/tools/xharness-runner/XHarnessRunner.targets(122,5): error MSB4018:    at Microsoft.DotNet.Helix.Sdk.ProvisioningProfileProvider.AddProfileToPayload(String archivePath, String testTarget) in /_/src/Microsoft.DotNet.Helix/Sdk/ProvisioningProfileProvider.cs:line 99 [/Users/runner/work/1/s/src/libraries/sendtohelixhelp.proj]
/Users/runner/work/1/s/.packages/microsoft.dotnet.helix.sdk/7.0.0-beta.22179.1/tools/xharness-runner/XHarnessRunner.targets(122,5): error MSB4018:    at Microsoft.DotNet.Helix.Sdk.CreateXHarnessAppleWorkItems.PrepareWorkItem(IZipArchiveManager zipArchiveManager, IFileSystem fileSystem, IProvisioningProfileProvider provisioningProfileProvider, ITaskItem appBundleItem) in /_/src/Microsoft.DotNet.Helix/Sdk/CreateXHarnessAppleWorkItems.cs:line 189 [/Users/runner/work/1/s/src/libraries/sendtohelixhelp.proj]
/Users/runner/work/1/s/.packages/microsoft.dotnet.helix.sdk/7.0.0-beta.22179.1/tools/xharness-runner/XHarnessRunner.targets(122,5): error MSB4018:    at Microsoft.DotNet.Helix.Sdk.CreateXHarnessAppleWorkItems.ExecuteTask(IProvisioningProfileProvider provisioningProfileProvider, IZipArchiveManager zipArchiveManager, IFileSystem fileSystem) in /_/src/Microsoft.DotNet.Helix/Sdk/CreateXHarnessAppleWorkItems.cs:line 81 [/Users/runner/work/1/s/src/libraries/sendtohelixhelp.proj]
##[error].packages/microsoft.dotnet.helix.sdk/7.0.0-beta.22179.1/tools/xharness-runner/XHarnessRunner.targets(122,5): error MSB4018: The "CreateXHarnessAppleWorkItems" task failed unexpectedly.

@premun
Copy link
Member

premun commented Apr 8, 2022

@carlossanlop please note that the fix has already been merged into Arcade, however Arcade hasn't been promoted for well over a week because runtime has problem with ingestion of it. This is probably something to look into for the @dotnet/runtime-infrastructure team?

https://dnceng.visualstudio.com/internal/_build/results?buildId=1706764&view=results

@carlossanlop
Copy link
Member

@hoyosjs please let me know when we update the arcade dependency in runtime so we consume this fix and close this issue.

@agocke
Copy link
Member

agocke commented Apr 8, 2022

@premun Is there any way to bring in a fix for this without updating the version of the SDK we use in runtime? That's a big task and might take us some time

@premun
Copy link
Member

premun commented Apr 11, 2022

@agocke I'm not sure but this SSL error is a transient occasional error which is probably not blocking anything so I am not sure whether it makes sense to try to somehow build some .NET 6 Arcade with it.

Do you have some ETA for the Arcade bump?

@lewing
Copy link
Member

lewing commented Apr 11, 2022

Do you have some ETA for the Arcade bump?

The work is happening here #67771

akoeplinger added a commit to akoeplinger/runtime that referenced this issue Apr 14, 2022
@carlossanlop carlossanlop removed the untriaged New issue has not been triaged by the area owner label Apr 14, 2022
akoeplinger added a commit that referenced this issue Apr 21, 2022
Extracted from #67771 to get the fix for #67349

Updates the WASM tests to always use net6.0 until we can upgrade to a net7.0 SDK.

Co-authored-by: Premek Vysoky <[email protected]>
directhex pushed a commit to directhex/runtime that referenced this issue Apr 21, 2022
Extracted from dotnet#67771 to get the fix for dotnet#67349

Updates the WASM tests to always use net6.0 until we can upgrade to a net7.0 SDK.

Co-authored-by: Premek Vysoky <[email protected]>
@premun
Copy link
Member

premun commented Apr 25, 2022

A fix was merged to main on April 21st and the issue hasn't happened since (on main):

I use this query to verify this:

TimelineIssues
| where Type == "error" and Message contains "CreateXHarnessAppleWorkItems"
| join kind=inner TimelineBuilds on BuildId
| where StartTime > now() - 17d and SourceBranch == "main"
| order by StartTime desc
| project QueueTime, Project, Repository, Reason, BuildNumber, Definition, SourceBranch

We can give it a few more days and check again but it seems like the fix is helping.

@premun
Copy link
Member

premun commented Apr 27, 2022

There were no occurrences in the last 6 days so feels like the fix helped. I think we can close this @joperezr

@ghost ghost locked as resolved and limited conversation to collaborators May 27, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
arch-arm64 area-Infrastructure-mono blocking-clean-ci Blocking PR or rolling runs of 'runtime' or 'runtime-extra-platforms' os-ios Apple iOS
Projects
None yet
Development

No branches or pull requests

10 participants