Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Skip AOT of Microsoft.CodeAnalysis.CSharp.dll for WASM, due to out-of-memory issues in CI #63958

Merged
merged 19 commits into from
Feb 15, 2022
Merged
Show file tree
Hide file tree
Changes from 8 commits
Commits
Show all changes
19 commits
Select commit Hold shift + click to select a range
755f075
Only build stuff needed for debugging issue
directhex Jan 18, 2022
5e34fb8
Typing wih a hand in a brace is hard
directhex Jan 19, 2022
03b4fe8
don't only smoke
directhex Jan 19, 2022
2800e21
Speculative workaround from Zoltan/Ankit
directhex Jan 21, 2022
2c77204
Merge remote-tracking branch 'origin/main' into further-ci-crimes
directhex Jan 21, 2022
819547a
Merge remote-tracking branch 'origin/main' into further-ci-crimes
directhex Jan 21, 2022
579b53d
Make speculative PR not speculative any more
directhex Jan 21, 2022
1f76782
Merge remote-tracking branch 'origin/main' into further-ci-crimes
directhex Jan 24, 2022
e2d9164
Merge remote-tracking branch 'origin/main' into further-ci-crimes
directhex Feb 7, 2022
19fe64a
Make AOT skip list specified per project, not hardcoded
directhex Feb 8, 2022
abf5b8a
Re-remove excluded tests, this change was skipped due to merge error
directhex Feb 8, 2022
54ce867
Advice from Ankit
directhex Feb 8, 2022
f65edfd
Fix typo in metadata name
radical Feb 8, 2022
96a2200
Merge remote-tracking branch 'origin/main' into further-ci-crimes
radical Feb 8, 2022
874aad0
[wasm] Add aot-skipped assemblies back to the list of assemblies
radical Feb 9, 2022
cbb852a
Merge remote-tracking branch 'origin/main' into further-ci-crimes
radical Feb 9, 2022
561a2c5
Get rid of weird escaping
directhex Feb 14, 2022
4170990
Use _AOT_InternalForceInterpretAssemblies instead of HighAotMemoryUsa…
directhex Feb 14, 2022
eab3d9e
More suggestions
directhex Feb 14, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 0 additions & 8 deletions src/libraries/tests.proj
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,6 @@

<!-- Wasm aot on !windows -->
<ItemGroup Condition="'$(TargetOS)' == 'Browser' and '$(BuildAOTTestsOnHelix)' == 'true' and '$(RunDisabledWasmTests)' != 'true' and '$(RunAOTCompilation)' == 'true' and '$(BrowserHost)' != 'Windows'">
<!-- 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" />
<ProjectExclusions Include="$(MSBuildThisFileDirectory)Microsoft.Extensions.Logging.Abstractions\tests\Microsoft.Extensions.Logging.Generators.Tests\Microsoft.Extensions.Logging.Generators.Roslyn4.0.Tests.csproj" />
<ProjectExclusions Include="$(MSBuildThisFileDirectory)System.Text.Json\tests\System.Text.Json.SourceGeneration.Tests\System.Text.Json.SourceGeneration.
Roslyn4.0.Tests.csproj" />
<ProjectExclusions Include="$(MSBuildThisFileDirectory)System.Text.Json\tests\System.Text.Json.SourceGeneration.Unit.Tests\System.Text.Json.SourceGeneration.Roslyn4.0.Unit.Tests.csproj" />
<ProjectExclusions Include="$(MSBuildThisFileDirectory)System.Text.RegularExpressions\tests\System.Text.RegularExpressions.Generators.Tests\System.Text.RegularExpressions.Generators.Tests.csproj" />

<!-- https://github.com/dotnet/runtime/issues/61756 -->
<ProjectExclusions Include="$(MSBuildThisFileDirectory)System.Text.RegularExpressions\tests\System.Text.RegularExpressions.Tests.csproj" />
</ItemGroup>
Expand Down
2 changes: 2 additions & 0 deletions src/mono/wasm/build/WasmApp.Native.targets
Original file line number Diff line number Diff line change
Expand Up @@ -508,6 +508,8 @@ EMSCRIPTEN_KEEPALIVE void mono_wasm_load_profiler_aot (const char *desc) { mono_
<_AotInputAssemblies Include="@(_WasmAssembliesInternal)">
<AotArguments>@(MonoAOTCompilerDefaultAotArguments, ';')</AotArguments>
<ProcessArguments>@(MonoAOTCompilerDefaultProcessArguments, ';')</ProcessArguments>
<!-- Skip known-huge assembly. This takes over ten minutes on a top end PC to AOT, and consumes over 8GiB RAM in the process. -->
<AOT_InternalForceToInterpret Condition="$([System.Text.RegularExpressions.Regex]::IsMatch('%(_WasmAssembliesInternal.FullPath)', '.+Microsoft\.CodeAnalysis\.CSharp\.dll')) ">true</AOT_InternalForceToInterpret>
directhex marked this conversation as resolved.
Show resolved Hide resolved
</_AotInputAssemblies>

<_WasmAssembliesInternal Remove="@(_WasmAssembliesInternal)" />
Expand Down