Speed up hosted full E2E dispatch

This commit is contained in:
Jeppe Bundgaard
2026-07-06 19:27:37 +02:00
parent 33e109b131
commit a331eeadcb
2 changed files with 5 additions and 3 deletions
+1 -1
View File
@@ -308,7 +308,7 @@ jobs:
timeout-minutes: 60
strategy:
fail-fast: false
max-parallel: 2
max-parallel: ${{ fromJSON(github.event_name == 'workflow_dispatch' && inputs.runner_pool == 'github-hosted' && '8' || '2') }}
matrix:
browser: [chromium, webkit, firefox]
device: [mobile, desktop, tablet]
+4 -2
View File
@@ -30,10 +30,12 @@ describe("Playwright full E2E workflow grouping", () => {
);
});
it("keeps full-suite runner pressure bounded and diagnosable", () => {
it("keeps self-hosted full-suite runner pressure bounded while hosted dispatch can fan out", () => {
const source = workflowSource();
expect(source).toMatch(/e2e-full:[\s\S]*?max-parallel: 2/u);
expect(source).toMatch(
/e2e-full:[\s\S]*?max-parallel: \$\{\{ fromJSON\(github\.event_name == 'workflow_dispatch' && inputs\.runner_pool == 'github-hosted' && '8' \|\| '2'\) \}\}/u
);
expect(source).toMatch(/e2e-full:[\s\S]*?PLAYWRIGHT_WORKERS: 1/u);
expect(source).toMatch(/e2e-full:[\s\S]*?PLAYWRIGHT_VIDEO_MODE: off/u);
expect(source).toContain("scripts/ci/with-systemd-inhibit.sh");