Skip to content

Commit

Permalink
Address timeouts in merged test groups (#84193)
Browse files Browse the repository at this point in the history
See #68529 for theories.

Should solve the first timeouts in #83961 (baseservices/threading), Directed_1, Regression_1, and Regression_2 by marking tests as RequiresProcessIsolation.
Adds striping to Regression_1, Regression_4, threading_group1.
  • Loading branch information
markples authored Apr 1, 2023
1 parent f8bd9d2 commit c6adf4c
Show file tree
Hide file tree
Showing 13 changed files with 45 additions and 3 deletions.
4 changes: 4 additions & 0 deletions src/tests/JIT/Directed/lifetime/lifetime1.csproj
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<!-- Needed for GC.WaitForPendingFinalizers -->
<!-- See https://github.com/dotnet/runtime/issues/68529 -->
<RequiresProcessIsolation>true</RequiresProcessIsolation>

<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
Expand Down
4 changes: 3 additions & 1 deletion src/tests/JIT/Directed/lifetime/lifetime2.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<!-- Needed for JitOptimizationSensitive -->
<!-- Needed for JitOptimizationSensitive, GC.WaitForPendingFinalizers -->
<!-- See https://github.com/dotnet/runtime/issues/68529 -->
<RequiresProcessIsolation>true</RequiresProcessIsolation>

<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
Expand Down
4 changes: 3 additions & 1 deletion src/tests/JIT/Directed/pinvoke/preemptive_cooperative.ilproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
<Project Sdk="Microsoft.NET.Sdk.IL">
<PropertyGroup>
<!-- Needed for CLRTestTargetUnsupported -->
<!-- Needed for CLRTestTargetUnsupported, GC.WaitForPendingFinalizers -->
<!-- See https://github.com/dotnet/runtime/issues/68529 -->
<RequiresProcessIsolation>true</RequiresProcessIsolation>

<CLRTestPriority>1</CLRTestPriority>
<!-- Test unsupported outside of windows -->
<CLRTestTargetUnsupported Condition="'$(TargetsWindows)' != 'true'">true</CLRTestTargetUnsupported>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<!-- Needed for GC.WaitForPendingFinalizers -->
<!-- See https://github.com/dotnet/runtime/issues/68529 -->
<RequiresProcessIsolation>true</RequiresProcessIsolation>

<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<!-- Needed for GC.WaitForPendingFinalizers -->
<!-- See https://github.com/dotnet/runtime/issues/68529 -->
<RequiresProcessIsolation>true</RequiresProcessIsolation>

<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<!-- Needed for GC.WaitForPendingFinalizers -->
<!-- See https://github.com/dotnet/runtime/issues/68529 -->
<RequiresProcessIsolation>true</RequiresProcessIsolation>

<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<!-- Needed for GC.WaitForPendingFinalizers -->
<!-- See https://github.com/dotnet/runtime/issues/68529 -->
<RequiresProcessIsolation>true</RequiresProcessIsolation>

<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<PropertyGroup>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<!-- Needed for GC.WaitForPendingFinalizers -->
<!-- See https://github.com/dotnet/runtime/issues/68529 -->
<RequiresProcessIsolation>true</RequiresProcessIsolation>

<DebugType>None</DebugType>
<Optimize>True</Optimize>
</PropertyGroup>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<!-- Needed for GCStressIncompatible -->
<!-- Needed for GCStressIncompatible, GC.WaitForPendingFinalizers -->
<!-- See https://github.com/dotnet/runtime/issues/68529 -->
<RequiresProcessIsolation>true</RequiresProcessIsolation>
</PropertyGroup>
<PropertyGroup>
Expand Down
3 changes: 3 additions & 0 deletions src/tests/JIT/Regression/Regression_1.csproj
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<NumberOfStripesToUseInStress>10</NumberOfStripesToUseInStress>
</PropertyGroup>
<ItemGroup>
<MergedWrapperProjectReference Include="CLR-x86-*/**/*.??proj" />
<MergedWrapperProjectReference Remove="*/**/*_d.??proj" />
Expand Down
3 changes: 3 additions & 0 deletions src/tests/JIT/Regression/Regression_4.csproj
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<NumberOfStripesToUseInStress>10</NumberOfStripesToUseInStress>
</PropertyGroup>
<ItemGroup>
<MergedWrapperProjectReference Include="VS-ia64-JIT/**/*.??proj" />
<MergedWrapperProjectReference Remove="*/**/*_d.??proj" />
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<!-- Needed for GC.WaitForPendingFinalizers -->
<!-- See https://github.com/dotnet/runtime/issues/68529 -->
<RequiresProcessIsolation>true</RequiresProcessIsolation>

<CLRTestPriority>1</CLRTestPriority>
</PropertyGroup>
<ItemGroup>
Expand Down
3 changes: 3 additions & 0 deletions src/tests/baseservices/threading/threading_group1.csproj
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<NumberOfStripesToUseInStress>10</NumberOfStripesToUseInStress>
</PropertyGroup>
<ItemGroup>
<MergedWrapperProjectReference Include="commitstackonlyasneeded/**/*.??proj" />
<MergedWrapperProjectReference Include="coverage/**/*.??proj" />
Expand Down

0 comments on commit c6adf4c

Please sign in to comment.