-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
Add linux mariner to rolling builds for libraries tests #57322
Conversation
Tagging subscribers to this area: @Anipik, @safern, @ViktorHofer Issue DetailsFixes: #54478
|
Sample build including this queue here: https://dev.azure.com/dnceng/public/_build/results?buildId=1291084&view=results |
@bartonjs it seems like this crypto test is failing on Linux Mariner: runtime/src/libraries/System.Security.Cryptography.Algorithms/tests/ChaCha20Poly1305Tests.cs Line 441 in 57bfe47
I guess OpenSsl is present but for some reason the runtime property is returning false, what is your advise? Just disable it for this distro? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks
Seems like a reasonable starting place. OpenSSL on Mariner must be built with one or both of nopoly1305 or nochacha. When things get more complicated we'll need to figure out how to better determine that in the tests (hopefully via a route other than just duplicating the product logic). else if (PlatformDetection.IsAndroid)
{
// Android with API Level 28 is the minimum API Level support for ChaChaPoly1305.
expectedIsSupported = OperatingSystem.IsAndroidVersionAtLeast(28);
}
+ else if (PlatformDetection.IsMariner)
+ {
+ // OpenSSL is present, and a high enough version,
+ // but the distro build options turned off ChaCha/Poly.
+ }
else if (PlatformDetection.OpenSslPresentOnSystem &&
(PlatformDetection.IsOSX || PlatformDetection.IsOpenSslSupported))
{ Or something like that. |
I wonder whether there's some assert we can add in the tests so that if Mariner changes its configuration, we can enable the tests again. A minor thing though -- seems completely reasonable as stated above. |
Well, the diff I proposed would leave Mariner running the test, but in the "expect: false" case, then the test would fail with "actual: true" and we'd be in what I called "when things get more complicated". So we already have that assert/action-signal 😄. For this feature, the mainline tests only run when the platform says it's supported, this particular test just checks that the platform says things are (or aren't) supported as we expect them to be. |
Sounds good, I'll adjust accordingly. |
Done. New build with the changes: https://dev.azure.com/dnceng/public/_build/results?buildId=1292670&view=results |
Looks like some tests are failing on Mono. I will open issues and disable them. |
6bf983c
to
bec00aa
Compare
The linux mariner build is now green. Merging as failures are unrelated. |
Fixes: #54478