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

Use RetryHelper with AIA tests #55230

Merged
merged 2 commits into from
Jul 9, 2021
Merged

Use RetryHelper with AIA tests #55230

merged 2 commits into from
Jul 9, 2021

Conversation

vcsjones
Copy link
Member

@vcsjones vcsjones commented Jul 6, 2021

The AIA tests depend on many external factors including the underlying
operation system, network, and the resources available on the system.
To accomodate this we will re-run the tests to improve reliability.

PR is best reviewed ignoring whitespace.

Closes #49014.

The AIA tests depend on many external factors including the underlying
operation system, network, and the resources available on the system.
To accomodate this we will re-run the tests to improve reliability.
@ghost
Copy link

ghost commented Jul 6, 2021

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

Issue Details

The AIA tests depend on many external factors including the underlying
operation system, network, and the resources available on the system.
To accomodate this we will re-run the tests to improve reliability.

PR is best reviewed ignoring whitespace.

Closes #49014.

Author: vcsjones
Assignees: -
Labels:

area-System.Security

Milestone: -

@vcsjones vcsjones added the test-enhancement Improvements of test source code label Jul 6, 2021
Assert.Equal(2, chain.ChainElements.Count);
}
RetryHelper.Execute(() => {
CertificateAuthority.BuildPrivatePki(
Copy link
Member

Choose a reason for hiding this comment

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

On the one hand, not capturing closures is nice. On the other, recreating the PKI pieces and listener and such feels like it could be hiding bugs.. so we probably only want to retry the inner portion of the usings (though moving ChainHolder inside the retry so we're not introducing a "works on the second call to Build" bug)

Copy link
Member Author

Choose a reason for hiding this comment

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

Eh, I'm wary of making that even more non-deterministic based on my experience last time from the AIA tests. But those tests for sensitive to execution time, so maybe I am applying the wrong logic. I suppose it can't hurt to try the more narrow way first.

@stephentoub stephentoub merged commit a423f69 into dotnet:main Jul 9, 2021
@vcsjones vcsjones deleted the retry-aia branch July 9, 2021 15:12
@ghost ghost locked as resolved and limited conversation to collaborators Aug 8, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-System.Security test-enhancement Improvements of test source code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

DisableAiaOptionWorks test failing on Mono Win81
3 participants