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

Test failure: Unknown chain building error in System.Net.Security.CertificateValidationRemoteServer.ConnectWithRevocation_WithCallback #101835

Closed
carlossanlop opened this issue May 3, 2024 · 5 comments · Fixed by #104014
Labels
arch-x64 area-System.Net.Security Known Build Error Use this to report build issues in the .NET Helix tab os-windows runtime-coreclr specific to the CoreCLR runtime test-run-core Test failures in .NET Core test runs
Milestone

Comments

@carlossanlop
Copy link
Member

carlossanlop commented May 3, 2024

Build Information

Build: https://dev.azure.com/dnceng-public/public/_build/results?buildId=664116
Build error leg or test failing: Libraries Test Run release coreclr windows x64 Release

Error Message

{
  "ErrorMessage" : [
    "ConnectWithRevocation_WithCallback",
    "CryptographicException : An unknown chain building error occurred."
],
  "BuildRetry" : false,
  "ExcludeConsoleLog" : false
}
    System.Net.Security.Tests.CertificateValidationRemoteServer.ConnectWithRevocation_WithCallback(checkRevocation: True) [FAIL]
      System.Security.Cryptography.CryptographicException : An unknown chain building error occurred.
      Stack Trace:
        /_/src/libraries/System.Security.Cryptography/src/System/Security/Cryptography/X509Certificates/X509Chain.cs(192,0): at System.Security.Cryptography.X509Certificates.X509Chain.Build(X509Certificate2 certificate, Boolean throwOnException)
        /_/src/libraries/System.Security.Cryptography/src/System/Security/Cryptography/X509Certificates/X509Chain.cs(91,0): at System.Security.Cryptography.X509Certificates.X509Chain.Build(X509Certificate2 certificate)
        /_/src/libraries/System.Net.Security/src/System/Net/Security/SslStreamCertificateContext.cs(63,0): at System.Net.Security.SslStreamCertificateContext.Create(X509Certificate2 target, X509Certificate2Collection additionalCertificates, Boolean offline, SslCertificateTrust trust, Boolean noOcspFetch)
        /_/src/libraries/System.Net.Security/tests/FunctionalTests/CertificateValidationRemoteServer.cs(265,0): at System.Net.Security.Tests.CertificateValidationRemoteServer.ConnectWithRevocation_WithCallback_Core(X509RevocationMode revocationMode, Nullable`1 offlineContext, Boolean noIntermediates, String testName)
        /_/src/libraries/System.Net.Security/tests/FunctionalTests/CertificateValidationRemoteServer.cs(313,0): at System.Net.Security.Tests.CertificateValidationRemoteServer.ConnectWithRevocation_WithCallback_Core(X509RevocationMode revocationMode, Nullable`1 offlineContext, Boolean noIntermediates, String testName)
        /_/src/libraries/System.Net.Security/tests/FunctionalTests/CertificateValidationRemoteServer.cs(313,0): at System.Net.Security.Tests.CertificateValidationRemoteServer.ConnectWithRevocation_WithCallback_Core(X509RevocationMode revocationMode, Nullable`1 offlineContext, Boolean noIntermediates, String testName)
        /_/src/libraries/System.Net.Security/tests/FunctionalTests/CertificateValidationRemoteServer.cs(313,0): at System.Net.Security.Tests.CertificateValidationRemoteServer.ConnectWithRevocation_WithCallback_Core(X509RevocationMode revocationMode, Nullable`1 offlineContext, Boolean noIntermediates, String testName)
        /_/src/libraries/System.Net.Security/tests/FunctionalTests/CertificateValidationRemoteServer.cs(313,0): at System.Net.Security.Tests.CertificateValidationRemoteServer.ConnectWithRevocation_WithCallback_Core(X509RevocationMode revocationMode, Nullable`1 offlineContext, Boolean noIntermediates, String testName)
        --- End of stack trace from previous location ---
    System.Net.Security.Tests.CertificateValidationRemoteServer.ConnectWithRevocation_WithCallback(checkRevocation: False) [FAIL]
      System.Security.Cryptography.CryptographicException : An unknown chain building error occurred.
      Stack Trace:
        /_/src/libraries/System.Security.Cryptography/src/System/Security/Cryptography/X509Certificates/X509Chain.cs(192,0): at System.Security.Cryptography.X509Certificates.X509Chain.Build(X509Certificate2 certificate, Boolean throwOnException)
        /_/src/libraries/System.Security.Cryptography/src/System/Security/Cryptography/X509Certificates/X509Chain.cs(91,0): at System.Security.Cryptography.X509Certificates.X509Chain.Build(X509Certificate2 certificate)
        /_/src/libraries/System.Net.Security/src/System/Net/Security/SslStreamCertificateContext.Windows.cs(29,0): at System.Net.Security.SslStreamCertificateContext..ctor(X509Certificate2 target, ReadOnlyCollection`1 intermediates, SslCertificateTrust trust)
        /_/src/libraries/System.Net.Security/src/System/Net/Security/SslStreamCertificateContext.cs(121,0): at System.Net.Security.SslStreamCertificateContext.Create(X509Certificate2 target, X509Certificate2Collection additionalCertificates, Boolean offline, SslCertificateTrust trust, Boolean noOcspFetch)
        /_/src/libraries/System.Net.Security/tests/FunctionalTests/CertificateValidationRemoteServer.cs(265,0): at System.Net.Security.Tests.CertificateValidationRemoteServer.ConnectWithRevocation_WithCallback_Core(X509RevocationMode revocationMode, Nullable`1 offlineContext, Boolean noIntermediates, String testName)
        /_/src/libraries/System.Net.Security/tests/FunctionalTests/CertificateValidationRemoteServer.cs(313,0): at System.Net.Security.Tests.CertificateValidationRemoteServer.ConnectWithRevocation_WithCallback_Core(X509RevocationMode revocationMode, Nullable`1 offlineContext, Boolean noIntermediates, String testName)
        /_/src/libraries/System.Net.Security/tests/FunctionalTests/CertificateValidationRemoteServer.cs(313,0): at System.Net.Security.Tests.CertificateValidationRemoteServer.ConnectWithRevocation_WithCallback_Core(X509RevocationMode revocationMode, Nullable`1 offlineContext, Boolean noIntermediates, String testName)
        /_/src/libraries/System.Net.Security/tests/FunctionalTests/CertificateValidationRemoteServer.cs(313,0): at System.Net.Security.Tests.CertificateValidationRemoteServer.ConnectWithRevocation_WithCallback_Core(X509RevocationMode revocationMode, Nullable`1 offlineContext, Boolean noIntermediates, String testName)
        /_/src/libraries/System.Net.Security/tests/FunctionalTests/CertificateValidationRemoteServer.cs(313,0): at System.Net.Security.Tests.CertificateValidationRemoteServer.ConnectWithRevocation_WithCallback_Core(X509RevocationMode revocationMode, Nullable`1 offlineContext, Boolean noIntermediates, String testName)
        --- End of stack trace from previous location ---

Known issue validation

Build: 🔎 https://dev.azure.com/dnceng-public/public/_build/results?buildId=664116
Error message validated: [ConnectWithRevocation_WithCallback CryptographicException : An unknown chain building error occurred.]
Result validation: ✅ Known issue matched with the provided build.
Validation performed at: 5/3/2024 4:02:56 AM UTC

Report

Build Definition Test Pull Request
718949 dotnet/runtime System.Net.Security.Tests.CertificateValidationRemoteServer.ConnectWithRevocation_WithCallback #103922
718293 dotnet/runtime System.Net.Security.Tests.CertificateValidationRemoteServer.ConnectWithRevocation_WithCallback #103766
713739 dotnet/runtime System.Net.Security.Tests.CertificateValidationRemoteServer.ConnectWithRevocation_WithCallback #103646
712969 dotnet/runtime System.Net.Security.Tests.CertificateValidationRemoteServer.ConnectWithRevocation_WithCallback #103704
712671 dotnet/runtime System.Net.Security.Tests.CertificateValidationRemoteServer.ConnectWithRevocation_WithCallback #103695
711611 dotnet/runtime System.Net.Security.Tests.CertificateValidationRemoteServer.ConnectWithRevocation_WithCallback #103564
711234 dotnet/runtime System.Net.Security.Tests.CertificateValidationRemoteServer.ConnectWithRevocation_WithCallback #103590
710815 dotnet/runtime System.Net.Security.Tests.CertificateValidationRemoteServer.ConnectWithRevocation_WithCallback #103590
709562 dotnet/runtime System.Net.Security.Tests.CertificateValidationRemoteServer.ConnectWithRevocation_WithCallback #103458
707574 dotnet/runtime System.Net.Security.Tests.CertificateValidationRemoteServer.ConnectWithRevocation_WithCallback #103226
706066 dotnet/runtime System.Net.Security.Tests.CertificateValidationRemoteServer.ConnectWithRevocation_WithCallback #103324
705837 dotnet/runtime System.Net.Security.Tests.CertificateValidationRemoteServer.ConnectWithRevocation_WithCallback #103372
705719 dotnet/runtime System.Net.Security.Tests.CertificateValidationRemoteServer.ConnectWithRevocation_WithCallback #103322
703480 dotnet/runtime System.Net.Security.Tests.CertificateValidationRemoteServer.ConnectWithRevocation_WithCallback #103226
701187 dotnet/runtime System.Net.Security.Tests.CertificateValidationRemoteServer.ConnectWithRevocation_WithCallback #103058
699344 dotnet/runtime System.Net.Security.Tests.CertificateValidationRemoteServer.ConnectWithRevocation_WithCallback #102379
700427 dotnet/runtime System.Net.Security.Tests.CertificateValidationRemoteServer.ConnectWithRevocation_WithCallback #103152
700188 dotnet/runtime System.Net.Security.Tests.CertificateValidationRemoteServer.ConnectWithRevocation_WithCallback #103052
699781 dotnet/runtime System.Net.Security.Tests.CertificateValidationRemoteServer.ConnectWithRevocation_WithCallback #102656
698604 dotnet/runtime System.Net.Security.Tests.CertificateValidationRemoteServer.ConnectWithRevocation_WithCallback #103058
694770 dotnet/runtime System.Net.Security.Tests.CertificateValidationRemoteServer.ConnectWithRevocation_WithCallback
691690 dotnet/runtime System.Net.Security.Tests.CertificateValidationRemoteServer.ConnectWithRevocation_WithCallback #102793
689901 dotnet/runtime System.Net.Security.Tests.CertificateValidationRemoteServer.ConnectWithRevocation_WithCallback #102628
689748 dotnet/runtime System.Net.Security.Tests.CertificateValidationRemoteServer.ConnectWithRevocation_WithCallback #102769

Summary

24-Hour Hit Count 7-Day Hit Count 1-Month Count
0 4 24
@carlossanlop carlossanlop added area-System.Net.Security os-windows arch-x64 runtime-coreclr specific to the CoreCLR runtime Known Build Error Use this to report build issues in the .NET Helix tab labels May 3, 2024
@dotnet-policy-service dotnet-policy-service bot added the untriaged New issue has not been triaged by the area owner label May 3, 2024
Copy link
Contributor

Tagging subscribers to this area: @dotnet/ncl, @bartonjs, @vcsjones
See info in area-owners.md if you want to be subscribed.

@rzikm
Copy link
Member

rzikm commented May 3, 2024

Weird, this should've been fixed with #99950

@rzikm rzikm self-assigned this May 3, 2024
@rzikm rzikm added this to the 9.0.0 milestone May 3, 2024
@rzikm
Copy link
Member

rzikm commented May 3, 2024

I am unable to reproduce this locally :/ Putting this on hold for now to see if it happens more often.

@jeffschwMSFT jeffschwMSFT removed the untriaged New issue has not been triaged by the area owner label May 3, 2024
@rzikm rzikm changed the title [8.0] Test failure: Unknown chain building error in System.Net.Security.CertificateValidationRemoteServer.ConnectWithRevocation_WithCallback Test failure: Unknown chain building error in System.Net.Security.CertificateValidationRemoteServer.ConnectWithRevocation_WithCallback May 21, 2024
@rzikm
Copy link
Member

rzikm commented May 21, 2024

Seems to happen also in main, but in outerloop/extra platforms only

@rzikm
Copy link
Member

rzikm commented Jun 28, 2024

No new failures since merge, this looks promising.

@rzikm rzikm removed their assignment Jun 28, 2024
@github-actions github-actions bot locked and limited conversation to collaborators Jul 29, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
arch-x64 area-System.Net.Security Known Build Error Use this to report build issues in the .NET Helix tab os-windows runtime-coreclr specific to the CoreCLR runtime test-run-core Test failures in .NET Core test runs
Projects
None yet
4 participants