Test parallelization stuff. (#31650)
This is the content analogue of https://github.com/space-wizards/RobustToolbox/pull/5412 Made Content.Tests run tests parallelized, which doesn't really seem to matter much. I tried to make Content.IntegrationTest more aggressively parallelized but ran into https://github.com/dotnet/runtime/issues/107197 so we need to shelve that. Added a comment explaining as such.
This commit is contained in:
committed by
GitHub
parent
5df3454db6
commit
f9a722a87e
8
Content.IntegrationTests/AssemblyInfo.cs
Normal file
8
Content.IntegrationTests/AssemblyInfo.cs
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
[assembly: Parallelizable(ParallelScope.Children)]
|
||||||
|
|
||||||
|
// I don't know why this parallelism limit was originally put here.
|
||||||
|
// I *do* know that I tried removing it, and ran into the following .NET runtime problem:
|
||||||
|
// https://github.com/dotnet/runtime/issues/107197
|
||||||
|
// So we can't really parallelize integration tests harder either until the runtime fixes that,
|
||||||
|
// *or* we fix serv3 to not spam expression trees.
|
||||||
|
[assembly: LevelOfParallelism(3)]
|
||||||
@@ -23,8 +23,6 @@ using Robust.Shared.Prototypes;
|
|||||||
using Robust.Shared.Timing;
|
using Robust.Shared.Timing;
|
||||||
using Robust.UnitTesting;
|
using Robust.UnitTesting;
|
||||||
|
|
||||||
[assembly: LevelOfParallelism(3)]
|
|
||||||
|
|
||||||
namespace Content.IntegrationTests;
|
namespace Content.IntegrationTests;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|||||||
@@ -1,7 +1,4 @@
|
|||||||
|
namespace Content.IntegrationTests;
|
||||||
[assembly: Parallelizable(ParallelScope.Children)]
|
|
||||||
|
|
||||||
namespace Content.IntegrationTests;
|
|
||||||
|
|
||||||
[SetUpFixture]
|
[SetUpFixture]
|
||||||
public sealed class PoolManagerTestEventHandler
|
public sealed class PoolManagerTestEventHandler
|
||||||
|
|||||||
3
Content.Tests/AssemblyInfo.cs
Normal file
3
Content.Tests/AssemblyInfo.cs
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
using NUnit.Framework;
|
||||||
|
|
||||||
|
[assembly: Parallelizable(ParallelScope.Fixtures)]
|
||||||
Reference in New Issue
Block a user