-
Notifications
You must be signed in to change notification settings - Fork 5.2k
Description
#81481 added a test which hard-codes the availability of quic for the runtime CI configuration:
runtime/src/libraries/System.Net.Quic/tests/FunctionalTests/MsQuicPlatformDetectionTests.cs
Lines 55 to 65 in 327a244
| [ActiveIssue("https://github.com/dotnet/runtime/issues/81901", typeof(PlatformDetection), nameof(PlatformDetection.IsAlpine313), nameof(PlatformDetection.IsInContainer))] | |
| [ActiveIssue("https://github.com/dotnet/runtime/issues/81901", typeof(PlatformDetection), nameof(PlatformDetection.IsAlpine314), nameof(PlatformDetection.IsInContainer))] | |
| [ActiveIssue("https://github.com/dotnet/runtime/issues/81901", typeof(PlatformDetection), nameof(PlatformDetection.IsMariner1), nameof(PlatformDetection.IsInContainer))] | |
| [ActiveIssue("https://github.com/dotnet/runtime/issues/81901", typeof(PlatformDetection), nameof(PlatformDetection.IsCentos7), nameof(PlatformDetection.IsInContainer))] | |
| [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsLinux))] | |
| public void SupportedLinuxPlatforms_IsSupportedIsTrue() | |
| { | |
| _output.WriteLine($"Running on {PlatformDetection.GetDistroVersionString()}"); | |
| Assert.True(QuicListener.IsSupported); | |
| Assert.True(QuicConnection.IsSupported); | |
| } |
This test fails on our internal CI builds both on Fedora and RHEL as there is no quic there.
The other test that was added in this PR (SupportedLinuxPlatformsWithMsquic_IsSupportedIsTrue) looks like it is doing the right thing: check the IsSupported based on the availability of the native libmsquic library.
Can we remove SupportedLinuxPlatforms_IsSupportedIsTrue?
Additionally, SupportedLinuxPlatformsWithMsquic_IsSupportedIsTrue can probably be improved by using NativeLibrary to try and load libmsquic, and also verify that when the native library is not present, IsSupported returns false.
@ManickaP @CarnaViire @wfurt @karelz wdyt?
cc @omajid
Known Issue Error Message
Fill the error message using known issues guidance.
{
"ErrorMessage": "",
"BuildRetry": false
}