Skip to content

Commit c00b8dc

Browse files
committed
Restore browser test parallel limits
1 parent 01aeda8 commit c00b8dc

8 files changed

Lines changed: 13 additions & 0 deletions

File tree

AGENTS.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,7 @@ Rule format:
114114
- Every runnable test project must declare `MaxParallelTestsForPipeline : EnvironmentAwareParallelLimitBase` with `LocalLimit = 15`; do not keep lower per-project local parallel caps unless the user explicitly asks for an exception.
115115
- Browser-suite runnable test projects must keep `CiLimit = 2` unless the user explicitly approves a different cap; do not inherit a broader default CI worker count after a suite split.
116116
- Local regression verification must include solution-level `dotnet test --solution ./PrompterOne.slnx -m:1` so test-project split changes are proven under the real all-tests entrypoint, not only as isolated per-project runs.
117+
- When the user explicitly asks to validate a test fix in actual GitHub Actions, do not spend more time on local `CI=true` emulation; push the fix and monitor the real CI run instead.
117118
- Selector-contract remediation requests must be handled repo-wide across all relevant test files (`Web.Tests` and `Web.UITests`), not as partial per-file cleanups.
118119
- Repo-wide quality audits and agent-generated review handoff artifacts must be written as root-level task files so other coding agents can pick them up quickly; do not bury those temporary audit results under `docs/` unless the task is explicitly about durable product documentation.
119120
- Repo-wide cleanup and review passes must explicitly inventory forbidden implementation string literals, `MarkupString` or raw-HTML UI composition, duplicated JS/CSS patterns, architecture-boundary drift, and `foreach`-driven test scenarios that should become isolated TUnit cases.

tests/PrompterOne.Core.Tests/TestAssemblyConfiguration.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,5 @@ namespace PrompterOne.Core.Tests;
99
/// </summary>
1010
public sealed class MaxParallelTestsForPipeline : EnvironmentAwareParallelLimitBase
1111
{
12+
protected override int LocalLimit { get; } = 15;
1213
}

tests/PrompterOne.Web.Tests/TestAssemblyConfiguration.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,5 @@ namespace PrompterOne.Web.Tests;
99
/// </summary>
1010
public sealed class MaxParallelTestsForPipeline : EnvironmentAwareParallelLimitBase
1111
{
12+
protected override int LocalLimit { get; } = 15;
1213
}

tests/PrompterOne.Web.UITests.Editor/TestAssemblyConfiguration.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,6 @@ namespace PrompterOne.Web.UITests.Editor;
66

77
public sealed class MaxParallelTestsForPipeline : EnvironmentAwareParallelLimitBase
88
{
9+
protected override int CiLimit { get; } = 2;
10+
protected override int LocalLimit { get; } = 15;
911
}

tests/PrompterOne.Web.UITests.Reader/TestAssemblyConfiguration.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,6 @@ namespace PrompterOne.Web.UITests.Reader;
66

77
public sealed class MaxParallelTestsForPipeline : EnvironmentAwareParallelLimitBase
88
{
9+
protected override int CiLimit { get; } = 2;
10+
protected override int LocalLimit { get; } = 15;
911
}

tests/PrompterOne.Web.UITests.Shell/TestAssemblyConfiguration.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,6 @@ namespace PrompterOne.Web.UITests.Shell;
66

77
public sealed class MaxParallelTestsForPipeline : EnvironmentAwareParallelLimitBase
88
{
9+
protected override int CiLimit { get; } = 2;
10+
protected override int LocalLimit { get; } = 15;
911
}

tests/PrompterOne.Web.UITests.Studio/TestAssemblyConfiguration.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,6 @@ namespace PrompterOne.Web.UITests.Studio;
66

77
public sealed class MaxParallelTestsForPipeline : EnvironmentAwareParallelLimitBase
88
{
9+
protected override int CiLimit { get; } = 2;
10+
protected override int LocalLimit { get; } = 15;
911
}

tests/PrompterOne.Web.UITests/Infrastructure/TestAssemblyConfiguration.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ namespace PrompterOne.Web.UITests;
44

55
public sealed class MaxParallelTestsForPipeline : EnvironmentAwareParallelLimitBase
66
{
7+
protected override int CiLimit { get; } = 2;
8+
protected override int LocalLimit { get; } = 15;
79
}
810

911
internal static class UiTestParallelization

0 commit comments

Comments
 (0)