Skip to content

Commit ab46b43

Browse files
committed
[wasm] Fix runtime tests build on CI
Runtime tests build for wasm started timing out recently, with the job getting cancelled, likely due to the build hitting the container limits. This changes the inner test builds to not run in parallel at all, with `/m:1`, which unblocks the CI at least. Issue: dotnet#93134
1 parent 961b23b commit ab46b43

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/tests/build.proj

+3-1
Original file line numberDiff line numberDiff line change
@@ -589,7 +589,9 @@
589589
<GroupBuildCmd>$(GroupBuildCmd) "/p:__TestGroupToBuild=$(__TestGroupToBuild)"</GroupBuildCmd>
590590
<GroupBuildCmd>$(GroupBuildCmd) "/p:__SkipRestorePackages=1"</GroupBuildCmd>
591591
<GroupBuildCmd>$(GroupBuildCmd) /nodeReuse:false</GroupBuildCmd>
592-
<GroupBuildCmd>$(GroupBuildCmd) /maxcpucount</GroupBuildCmd>
592+
<GroupBuildCmd Condition="'$(TargetOS)' != 'browser' or '$(ContinuousIntegrationBuild)' != 'true'">$(GroupBuildCmd) /maxcpucount</GroupBuildCmd>
593+
<!-- https://github.com/dotnet/runtime/issues/93134 -->
594+
<GroupBuildCmd Condition="'$(TargetOS)' == 'browser' and '$(ContinuousIntegrationBuild)' == 'true'">$(GroupBuildCmd) /m:1</GroupBuildCmd>
593595
<GroupBuildCmd Condition="'$(TargetOS)' == 'ios' or '$(TargetOS)' == 'tvos'">$(GroupBuildCmd) "/p:DevTeamProvisioning=-"</GroupBuildCmd>
594596
<GroupBuildCmd>$(GroupBuildCmd) /bl:$(ArtifactsDir)/log/$(Configuration)/InnerManagedTestBuild.$(__TestGroupToBuild).binlog</GroupBuildCmd>
595597
<GroupBuildCmd Condition="'$(CrossBuild)' == 'true'">$(GroupBuildCmd) "/p:CrossBuild=true"</GroupBuildCmd>

0 commit comments

Comments
 (0)