From 2bb761b5d82fd0f19be9f3c2e40bbc6e1ce8adf3 Mon Sep 17 00:00:00 2001 From: Ankit Jain Date: Mon, 8 Nov 2021 20:49:03 -0500 Subject: [PATCH 1/2] [wasm] Disable tests failing due to OOM Microsoft.Extensions.Logging.Generators.Roslyn3.11.Tests https://github.com/dotnet/runtime/issues/61339 --- src/libraries/tests.proj | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/libraries/tests.proj b/src/libraries/tests.proj index 766d862dda49f..29a33928240f2 100644 --- a/src/libraries/tests.proj +++ b/src/libraries/tests.proj @@ -14,6 +14,8 @@ + + From 824dc51097cc2d8eb1ab2b82689b8b2593765697 Mon Sep 17 00:00:00 2001 From: Ankit Jain Date: Mon, 8 Nov 2021 20:57:29 -0500 Subject: [PATCH 2/2] [wasm] Use special exitcodes when AOT test build fails, and when it gets oom-killed --- eng/testing/WasmRunnerAOTTemplate.sh | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/eng/testing/WasmRunnerAOTTemplate.sh b/eng/testing/WasmRunnerAOTTemplate.sh index 6922b550551b8..af3e499f457c5 100644 --- a/eng/testing/WasmRunnerAOTTemplate.sh +++ b/eng/testing/WasmRunnerAOTTemplate.sh @@ -38,13 +38,22 @@ function _buildAOTFunc() dotnet msbuild $binLog -clp:PerformanceSummary -v:q -nologo if [[ "$(uname -s)" == "Linux" && $buildExitCode -ne 0 ]]; then echo "\nLast few messages from dmesg:\n" - dmesg | tail -n 20 + local lastLines=`dmesg | tail -n 20` + echo $lastLines + + if [[ "$lastLines" =~ "oom-kill" ]]; then + return 9200 # OOM + fi fi echo echo - return $buildExitCode + if [[ $buildExitCode -ne 0 ]]; then + return 9100 # aot build failure + fi + + return 0 } # RunCommands defined in tests.mobile.targets