Skip to content

Commit

Permalink
[wasm][aot] Disable (again) `Microsoft.Extensions.Logging.Generators.…
Browse files Browse the repository at this point in the history
…Roslyn3.11.Tests` failing due to OOM (#61323)

* [wasm] Disable tests failing due to OOM

Microsoft.Extensions.Logging.Generators.Roslyn3.11.Tests
#61339

* [wasm] Use special exitcodes when AOT test build fails, and when it gets oom-killed

Co-authored-by: Ankit Jain <radical@gmail.com>
  • Loading branch information
krwq and radical authored Nov 9, 2021
1 parent d39d805 commit 2924d19
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
13 changes: 11 additions & 2 deletions eng/testing/WasmRunnerAOTTemplate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions src/libraries/tests.proj
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
</PropertyGroup>

<ItemGroup Condition="'$(TargetOS)' == 'Browser' and '$(BuildAOTTestsOnHelix)' == 'true' and '$(RunDisabledWasmTests)' != 'true' and '$(RunAOTCompilation)' == 'true'">
<!-- Exceeds VM resources in CI on compilation: https://github.com/dotnet/runtime/issues/61339 -->
<ProjectExclusions Include="$(MSBuildThisFileDirectory)Microsoft.Extensions.Logging.Abstractions\tests\Microsoft.Extensions.Logging.Generators.Tests\Microsoft.Extensions.Logging.Generators.Roslyn3.11.Tests.csproj" />
</ItemGroup>

<!-- Projects that don't support code coverage measurement. -->
Expand Down

0 comments on commit 2924d19

Please sign in to comment.