#81481 added a test which hard-codes the availability of quic for the runtime CI configuration:
|
[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
}
#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
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 theIsSupportedbased on the availability of the nativelibmsquiclibrary.Can we remove
SupportedLinuxPlatforms_IsSupportedIsTrue?Additionally,
SupportedLinuxPlatformsWithMsquic_IsSupportedIsTruecan probably be improved by usingNativeLibraryto try and loadlibmsquic, and also verify that when the native library is not present,IsSupportedreturnsfalse.@ManickaP @CarnaViire @wfurt @karelz wdyt?
cc @omajid
Known Issue Error Message
Fill the error message using known issues guidance.
{ "ErrorMessage": "", "BuildRetry": false }