Skip to content

Commit c893f68

Browse files
pavelsavaramaraf
andauthored
Revert 114347 + MSBuild tasks leak workaround + HotReload workaround (#114643)
Co-authored-by: Marek Fišera <[email protected]>
1 parent 46c3e85 commit c893f68

File tree

7 files changed

+40
-7
lines changed

7 files changed

+40
-7
lines changed

eng/pipelines/runtime.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -818,6 +818,16 @@ extends:
818818
#
819819
# WebAssembly legs
820820
#
821+
- template: /eng/pipelines/common/templates/wasm-library-tests.yml
822+
parameters:
823+
platforms:
824+
- browser_wasm
825+
alwaysRun: ${{ variables.isRollingBuild }}
826+
extraBuildArgs: /p:AotHostArchitecture=x64 /p:AotHostOS=$(_hostedOS)
827+
scenarios:
828+
- WasmTestOnChrome
829+
- WasmTestOnFirefox
830+
821831
- template: /eng/pipelines/common/templates/wasm-library-tests.yml
822832
parameters:
823833
platforms:

src/libraries/System.Runtime.Loader/tests/System.Runtime.Loader.Tests.csproj

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,20 @@
1313
<XUnitUseRandomizedTestOrderer>false</XUnitUseRandomizedTestOrderer>
1414
<MetadataUpdaterSupport>true</MetadataUpdaterSupport>
1515
</PropertyGroup>
16-
<ItemGroup>
16+
17+
<!-- ActiveIssue https://github.com/dotnet/runtime/issues/114526 deadlocks on linux CI -->
18+
<ItemGroup Condition="'$(ContinuousIntegrationBuild)' != 'true' or '$(TargetOS)' != 'browser' or '$(OS)' == 'Windows_NT'">
1719
<Compile Include="ApplyUpdateTest.cs" />
1820
<Compile Include="ApplyUpdateUtil.cs" />
21+
<Compile Include="MetadataUpdateHandlerAttributeTest.cs" />
22+
</ItemGroup>
23+
24+
<ItemGroup>
1925
<Compile Include="AssemblyExtensionsTest.cs" />
2026
<Compile Include="AssemblyLoadContextTest.cs" />
2127
<Compile Include="CollectibleAssemblyLoadContextTest.cs" />
2228
<Compile Include="ContextualReflection.cs" />
2329
<Compile Include="CustomTPALoadContext.cs" />
24-
<Compile Include="MetadataUpdateHandlerAttributeTest.cs" />
2530
<Compile Include="ResourceAssemblyLoadContext.cs" />
2631
<Compile Include="SatelliteAssemblies.cs" />
2732
<Compile Include="LoaderLinkTest.cs" />
@@ -45,7 +50,10 @@
4550
<ProjectReference Include="ReferencedClassLibNeutralIsSatellite\ReferencedClassLibNeutralIsSatellite.csproj" />
4651
<ProjectReference Include="LoaderLinkTest.Shared\LoaderLinkTest.Shared.csproj" />
4752
<ProjectReference Include="LoaderLinkTest.Dynamic\LoaderLinkTest.Dynamic.csproj" />
53+
</ItemGroup>
4854

55+
<!-- ActiveIssue https://github.com/dotnet/runtime/issues/114526 deadlocks on linux CI -->
56+
<ItemGroup Condition="'$(ContinuousIntegrationBuild)' != 'true' or '$(TargetOS)' != 'browser' or '$(OS)' == 'Windows_NT'">
4957
<!-- ApplyUpdate tests -->
5058
<ProjectReference Include="ApplyUpdate\System.Reflection.Metadata.ApplyUpdate.Test.AsyncMethodChange\System.Reflection.Metadata.ApplyUpdate.Test.AsyncMethodChange.csproj" />
5159
<ProjectReference Include="ApplyUpdate\System.Reflection.Metadata.ApplyUpdate.Test.CustomAttributeDelete\System.Reflection.Metadata.ApplyUpdate.Test.CustomAttributeDelete.csproj" />

src/libraries/tests.proj

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,16 +61,19 @@
6161
<ProjectExclusions Include="$(MSBuildThisFileDirectory)System.Numerics.Tensors\tests\Net8Tests\System.Numerics.Tensors.Net8.Tests.csproj" />
6262
</ItemGroup>
6363

64+
<!-- ActiveIssue https://github.com/dotnet/runtime/issues/114526 deadlocks on linux CI -->
65+
<ItemGroup Condition="'$(TargetOS)' == 'browser' and '$(OS)' != 'Windows_NT' and '$(ContinuousIntegrationBuild)' == 'true'">
66+
<ProjectExclusions Include="$(MonoProjectRoot)sample/wasm/**/*.csproj" />
67+
<ProjectExclusions Include="$(RepoRoot)src/tests/FunctionalTests/WebAssembly/Browser/HotReload/WebAssembly.Browser.HotReload.Test.csproj" />
68+
</ItemGroup>
69+
6470
<!-- Samples that require a multi-threaded runtime -->
6571
<ItemGroup Condition="'$(TargetOS)' == 'browser' and '$(WasmEnableThreads)' != 'true'" >
6672
<ProjectExclusions Include="$(MonoProjectRoot)sample\wasm\browser-threads\Wasm.Browser.Threads.Sample.csproj" />
67-
<ProjectExclusions Include="$(MonoProjectRoot)sample\wasm\browser-eventpipe\Wasm.Browser.EventPipe.Sample.csproj" />
6873
</ItemGroup>
6974
<ItemGroup Condition="'$(TargetOS)' == 'browser' and '$(WasmEnableThreads)' == 'true'" >
7075
<!-- https://github.com/dotnet/runtime/issues/91676 -->
7176
<ProjectExclusions Include="$(MonoProjectRoot)sample\wasm\browser-minimal-config\Wasm.Browser.Config.Sample.csproj" />
72-
<!-- https://github.com/dotnet/runtime/issues/98026 -->
73-
<ProjectExclusions Include="$(MonoProjectRoot)sample\wasm\browser-eventpipe\Wasm.Browser.EventPipe.Sample.csproj" />
7477
</ItemGroup>
7578

7679
<!-- wasm EAT/AOT -->
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<Project>
2+
<!-- redefine SDK tasks below with TaskHostFactory to avoid memory issues https://github.com/dotnet/msbuild/issues/11337 -->
3+
<UsingTask TaskName="GenerateDepsFile" AssemblyFile="$(MicrosoftNETBuildTasksAssembly)" TaskFactory="TaskHostFactory" />
4+
<UsingTask TaskName="Microsoft.DotNet.ApiCompat.Task.ValidateAssembliesTask" AssemblyFile="$(DotNetApiCompatTaskAssembly)" TaskFactory="TaskHostFactory" />
5+
<UsingTask TaskName="ResolveRuntimePackAssets" AssemblyFile="$(MicrosoftNETBuildTasksAssembly)" TaskFactory="TaskHostFactory" />
6+
</Project>

src/mono/browser/build/WasmApp.InTree.targets

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
<Import Project="$(RepositoryEngineeringDir)targetingpacks.targets" Condition="'$(TargetingpacksTargetsImported)' != 'true' and '$(ImportTargetingPacksTargetsInWasmAppTargets)' == 'true'"/>
99
<Import Project="$(MSBuildThisFileDirectory)BrowserWasmApp.targets" Condition="'$(UsingNativeAOT)' != 'true'" />
1010
<Import Project="$(MSBuildThisFileDirectory)EmSdkRepo.Defaults.props" Condition="'$(UsingNativeAOT)' == 'true' and '$(EMSDK_PATH)' != ''" />
11+
<Import Project="$(MSBuildThisFileDirectory)WasmApp.InTree.CI.targets" Condition="'$(ContinuousIntegrationBuild)' == 'true'" />
1112

1213
<!-- FIXME: use proper dependency -->
1314
<Target Name="SetupAppHostConfig" BeforeTargets="_WasmGenerateAppBundle">

src/tests/FunctionalTests/WebAssembly/Browser/HotReload/ApplyUpdateReferencedAssembly/ApplyUpdateReferencedAssembly.csproj

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@
1818
<Compile Include="MethodBody1.cs" />
1919
</ItemGroup>
2020

21-
<ItemGroup>
21+
<!-- ActiveIssue https://github.com/dotnet/runtime/issues/114526 deadlocks on linux CI -->
22+
<ItemGroup Condition="'$(OS)' == 'Windows_NT' or '$(ContinuousIntegrationBuild)' != 'true'">
2223
<!-- This package from https://github.com/dotnet/hotreload-utils provides
2324
targets that read the json delta script and generates deltas based on the baseline assembly and the modified sources.
2425

src/tests/FunctionalTests/WebAssembly/Browser/HotReload/WebAssembly.Browser.HotReload.Test.csproj

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,12 @@
77
<!-- setting WasmXHarnessMonoArgs doesn't work here, but see main.js -->
88
<!-- <WasmXHarnessMonoArgs>- -setenv=DOTNET_MODIFIABLE_ASSEMBLIES=debug</WasmXHarnessMonoArgs> -->
99
<MetadataUpdaterSupport>true</MetadataUpdaterSupport>
10+
11+
<!-- ActiveIssue https://github.com/dotnet/runtime/issues/114526 deadlocks on linux CI -->
12+
<IgnoreForCI Condition="'$(OS)' != 'Windows_NT' and '$(ContinuousIntegrationBuild)' == 'true'">true</IgnoreForCI>
1013
</PropertyGroup>
11-
<ItemGroup>
14+
<ItemGroup Condition="'$(OS)' == 'Windows_NT' or '$(ContinuousIntegrationBuild)' != 'true'">
15+
<!-- ActiveIssue https://github.com/dotnet/runtime/issues/114526 deadlocks on linux CI -->
1216
<ProjectReference Include="ApplyUpdateReferencedAssembly\ApplyUpdateReferencedAssembly.csproj" />
1317
</ItemGroup>
1418

0 commit comments

Comments
 (0)