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

Make OCSP stapling tests more stable #97979

Merged
merged 5 commits into from
Feb 6, 2024
Merged

Make OCSP stapling tests more stable #97979

merged 5 commits into from
Feb 6, 2024

Conversation

rzikm
Copy link
Member

@rzikm rzikm commented Feb 5, 2024

Fixes #97836, #97779 and #97936.

The instability of the tests was caused by the tests racing with refreshing the OCSP staple on the background. This PR adds waiting for the background refresh to complete where it was assumed it will complete fast enough.

I kept the tests running for a bit on my machine, and did not reproduce the failure after the changes.

@ghost
Copy link

ghost commented Feb 5, 2024

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

Issue Details

Fixes #97836 and #97779.

The instability of the tests was caused by the tests racing with refreshing the OCSP staple on the background. This PR adds waiting for the background refresh to complete where it was assumed it will complete fast enough.

I kept the tests running for a bit on my machine, and did not reproduce the failure after the changes.

Author: rzikm
Assignees: -
Labels:

area-System.Net.Security

Milestone: -

@rzikm rzikm marked this pull request as ready for review February 5, 2024 16:06
@rzikm rzikm requested a review from wfurt February 5, 2024 16:06
Copy link
Member

@wfurt wfurt left a comment

Choose a reason for hiding this comment

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

LGTM

@@ -18,6 +18,7 @@ namespace System.Net.Security.Tests;
public class SslStreamCertificateContextOcspLinuxTests
{
[Fact]
[PlatformSpecific(TestPlatforms.Linux)]
Copy link
Member

Choose a reason for hiding this comment

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

The class is named "OcspLinuxTests", can/should this attribute just be put on the class? (I think it works at that level)

@rzikm
Copy link
Member Author

rzikm commented Feb 6, 2024

CI Failures are unrelated.

@rzikm rzikm merged commit e13a23d into dotnet:main Feb 6, 2024
108 of 111 checks passed
@github-actions github-actions bot locked and limited conversation to collaborators Mar 8, 2024
@karelz karelz added this to the 9.0.0 milestone May 14, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
5 participants