From 6e34b5d4e9b16321f37c108fea3aa7e4e04b495a Mon Sep 17 00:00:00 2001 From: =?utf8?q?Michal=20Strehovsk=C3=BD?= Date: Wed, 7 Jun 2023 17:31:22 +0900 Subject: [PATCH] Disable S.T.Json tests on NativeAOT (#87203) We're getting OOM-killed in the CI. See #87078. I'm also changing how we do warning suppressions. We still need to suppress most of AOT warnings because xUnit/tests are not warning clean, but the warning about generic recursion is critical for the product and should fail the build. --- eng/testing/tests.singlefile.targets | 4 ++-- .../tests/Microsoft.Extensions.DependencyModel.Tests.csproj | 3 +++ src/libraries/tests.proj | 4 ++++ 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/eng/testing/tests.singlefile.targets b/eng/testing/tests.singlefile.targets index 4db0bf2..4f4bcb4 100644 --- a/eng/testing/tests.singlefile.targets +++ b/eng/testing/tests.singlefile.targets @@ -29,10 +29,10 @@ $(CoreCLRAotSdkDir) $(NetCoreAppCurrentTestHostSharedFrameworkPath) $(NetCoreAppCurrentTestHostSharedFrameworkPath) - $(NoWarn);IL1005;IL2105;IL3000;IL3001;IL3002;IL3003 + $(NoWarn);IL1005;IL2105;IL3000;IL3001;IL3002;IL3003;IL3050;IL3051;IL3052;IL3053 partial true - true + false diff --git a/src/libraries/Microsoft.Extensions.DependencyModel/tests/Microsoft.Extensions.DependencyModel.Tests.csproj b/src/libraries/Microsoft.Extensions.DependencyModel/tests/Microsoft.Extensions.DependencyModel.Tests.csproj index f6e4a1b..da44852 100644 --- a/src/libraries/Microsoft.Extensions.DependencyModel/tests/Microsoft.Extensions.DependencyModel.Tests.csproj +++ b/src/libraries/Microsoft.Extensions.DependencyModel/tests/Microsoft.Extensions.DependencyModel.Tests.csproj @@ -6,6 +6,9 @@ $(DefaultItemExcludes);nonentrypointassembly\* true + + + $(NoWarn);IL3054 diff --git a/src/libraries/tests.proj b/src/libraries/tests.proj index 82796c1..32854a8 100644 --- a/src/libraries/tests.proj +++ b/src/libraries/tests.proj @@ -412,6 +412,10 @@ + + + + -- 2.7.4