From fe2f8bd961e755fd516782c0c4f7ded5dc695cd1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20Strehovsk=C3=BD?= Date: Wed, 7 Jun 2023 14:21:08 +0900 Subject: [PATCH] Disable S.T.Json tests on NativeAOT 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 4db0bf2f448955..4f4bcb481073ac 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 f6e4a1bbea159b..da448526ca8df9 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 d8eff6c62c9702..013bd48b0013fe 100644 --- a/src/libraries/tests.proj +++ b/src/libraries/tests.proj @@ -409,6 +409,10 @@ + + + +