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

ServerAsyncAuthenticateTest.ServerAsyncAuthenticate_MismatchProtocols_Fails test failure #29642

Closed
safern opened this issue May 23, 2019 · 5 comments · Fixed by #36101
Closed
Assignees
Labels
area-System.Net.Security blocking-clean-ci Blocking PR or rolling runs of 'runtime' or 'runtime-extra-platforms' test-run-core Test failures in .NET Core test runs
Milestone

Comments

@safern
Copy link
Member

safern commented May 23, 2019

I just saw this test failed in one CI run:

Assert.IsAssignableFrom() Failure\nExpected: typeof(System.Security.Authentication.AuthenticationException)\nActual: typeof(System.TimeoutException)

Stack Trace

at System.Net.Security.Tests.ServerAsyncAuthenticateTest.ServerAsyncAuthenticate_MismatchProtocols_Fails(SslProtocols serverProtocol, SslProtocols clientProtocol, Type expectedException) in /_/src/System.Net.Security/tests/FunctionalTests/ServerAsyncAuthenticateTest.cs:line 62
--- End of stack trace from previous location where exception was thrown ---

https://dev.azure.com/dnceng/public/_build/results?buildId=198444&view=ms.vss-test-web.build-test-results-tab&runId=4812722&resultId=483559&paneView=debug

Failed on: dotnet/corefx#37888
cc: @ViktorHofer @stephentoub @wfurt

@wfurt
Copy link
Member

wfurt commented Sep 6, 2019

last failure7/27 and it was failing consistently before on single queue. Probably broken by upgrades on environment. Not actionable now.

@wfurt wfurt closed this as completed Sep 9, 2019
@wfurt
Copy link
Member

wfurt commented Nov 14, 2019

I saw failure again on Linux. I'll reopen this, disable test and I'll investigate.

@wfurt wfurt reopened this Nov 14, 2019
@wfurt wfurt self-assigned this Nov 14, 2019
@msftgits msftgits transferred this issue from dotnet/corefx Feb 1, 2020
@msftgits msftgits added this to the 5.0 milestone Feb 1, 2020
@karelz karelz modified the milestones: 5.0, Future May 7, 2020
@karelz
Copy link
Member

karelz commented May 7, 2020

Fixed in PR #35549 (comment) (incl. test re-enabled)

@karelz karelz closed this as completed May 7, 2020
@wfurt wfurt reopened this May 8, 2020
@wfurt
Copy link
Member

wfurt commented May 8, 2020

It failed again. It is curious it timed out after 1.3s (in Debug OSX build)

     <test name="System.Net.Security.Tests.ServerAsyncAuthenticateTest.ServerAsyncAuthenticate_MismatchProtocols_Fails(serverProtocol: Tls12, clientProtocol: Tls11, expectedException: typeof(System.Security.Authentication.AuthenticationException))" type="System.Net.Security.Tests.ServerAsyncAuthenticateTest" method="ServerAsyncAuthenticate_MismatchProtocols_Fails" time="1.1337415" result="Fail">
        <failure exception-type="Xunit.Sdk.IsAssignableFromException">
          <message><![CDATA[Assert.IsAssignableFrom() Failure\nExpected: typeof(System.Security.Authentication.AuthenticationException)\nActual:   typeof(System.TimeoutException)]]></message>
          <stack-trace><![CDATA[   at System.Net.Security.Tests.ServerAsyncAuthenticateTest.ServerAsyncAuthenticate_MismatchProtocols_Fails(SslProtocols serverProtocol, SslProtocols clientProtocol, Type expectedException) in /_/src/libraries/System.Net.Security/tests/FunctionalTests/ServerAsyncAuthenticateTest.cs:line 62
--- End of stack trace from previous location ---]]></stack-trace>
        </failure>
      </test>

@karelz karelz removed the disabled-test The test is disabled in source code against the issue label May 8, 2020
@safern safern added blocking-clean-ci Blocking PR or rolling runs of 'runtime' or 'runtime-extra-platforms' and removed os-mac-os-x macOS aka OSX labels May 8, 2020
@safern
Copy link
Member Author

safern commented May 8, 2020

Adding builds impacted by this. I just saw instances of this in rolling builds and PRs:

Builds

Build Pull Request Test Failure Count
#635584 #35566 1
#635689 #36047 1
#635943 #35366 1
#636029 #36082 1
#636084 #36088 1
#636157 #36098 1
#636424 #36104 1
#636769 #35366 1
#636778 Rolling 1
#636800 #35925 1
#636821 #35936 1

Configurations

  • net5.0-Linux-Debug-x64-CoreCLR_checked-Ubuntu.1804.Amd64.Open
  • net5.0-Linux-Debug-x64-CoreCLR_release-Ubuntu.1604.Amd64.Open
  • net5.0-Linux-Debug-x64-CoreCLR_release-Ubuntu.1804.Amd64.Open
  • net5.0-Linux-Release-x64-CoreCLR_release-(Fedora.29.Amd64.Open)ubuntu.1604.amd64.open@mcr.microsoft.com/dotnet-buildtools/prereqs:fedora-29-helix-a12566d-20191210224553
  • net5.0-OSX-Debug-x64-CoreCLR_checked-OSX.1013.Amd64.Open
  • net5.0-OSX-Debug-x64-CoreCLR_release-OSX.1013.Amd64.Open
  • net5.0-Windows_NT-Debug-x64-CoreCLR_checked-Windows.10.Amd64.Open

Helix Logs

Build Pull Request Console Core Test Results Run Client
#635584 #35566 console.log testResults.xml run_client.py
#635689 #36047 console.log testResults.xml run_client.py
#635943 #35366 console.log testResults.xml run_client.py
#636029 #36082 console.log testResults.xml run_client.py
#636084 #36088 console.log testResults.xml run_client.py
#636157 #36098 console.log testResults.xml run_client.py
#636424 #36104 console.log testResults.xml run_client.py
#636769 #35366 console.log testResults.xml run_client.py
#636778 Rolling console.log testResults.xml run_client.py
#636800 #35925 console.log testResults.xml run_client.py
#636821 #35936 console.log testResults.xml run_client.py

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-System.Net.Security blocking-clean-ci Blocking PR or rolling runs of 'runtime' or 'runtime-extra-platforms' test-run-core Test failures in .NET Core test runs
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants