Skip to content

:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.

ci(playwright): run the merge-queue suite on a 16-core runner (#125828)

Raúl Negrón-Oteroc59c45c29c72
diff --git a/.github/actionlint.yaml b/.github/actionlint.yaml
index 326bedaa255f..17658b000921 100644
--- a/.github/actionlint.yaml
+++ b/.github/actionlint.yaml
@@ -5,6 +5,7 @@ self-hosted-runner:
- depot-ubuntu-24.04
- depot-ubuntu-24.04-4
- depot-ubuntu-24.04-8
+ - depot-ubuntu-24.04-16
- depot-macos-15
- depot-macos-26
- depot-ubuntu-24.04-arm-4
diff --git a/.github/workflows/ci-e2e-playwright.yml b/.github/workflows/ci-e2e-playwright.yml
index cbc7ff7000a3..797468baf3ce 100644
--- a/.github/workflows/ci-e2e-playwright.yml
+++ b/.github/workflows/ci-e2e-playwright.yml
@@ -550,10 +550,9 @@ jobs:
if: |
!cancelled()
&& needs.changes.outputs.shouldRun == 'true'
- # 8-core depot: 18% avg / 30% peak memory observed on 16-core runs (#46853 noted
- # the workload "is not resource constrained" even after sharding was removed).
- # Talk to #team-devex before changing.
- runs-on: depot-ubuntu-24.04-8
+ # The merge queue's full suite gates every merge, so it gets the larger runner. Other runs
+ # mostly run selected specs, where setup dominates. Talk to #team-devex before changing.
+ runs-on: ${{ startsWith(github.head_ref, 'trunk-merge/') && 'depot-ubuntu-24.04-16' || 'depot-ubuntu-24.04-8' }}
timeout-minutes: 45
permissions:
contents: read
@@ -571,10 +570,10 @@ jobs:
INKEEP_API_KEY: ${{ secrets.INKEEP_API_KEY }}
AZURE_INFERENCE_CREDENTIAL: ${{ secrets.AZURE_INFERENCE_CREDENTIAL }}
AZURE_INFERENCE_ENDPOINT: ${{ secrets.AZURE_INFERENCE_ENDPOINT }}
- # Tuned together for this runner: more Playwright workers without more Granian workers
- # added test failures and no speedup. Talk to #team-devex before changing either.
- GRANIAN_WORKERS: 4
- PLAYWRIGHT_WORKERS: 6
+ # Tuned together per runner and doubled for the queue: more Playwright workers without more
+ # Granian workers added test failures and no speedup. Talk to #team-devex before changing either.
+ GRANIAN_WORKERS: ${{ startsWith(github.head_ref, 'trunk-merge/') && 8 || 4 }}
+ PLAYWRIGHT_WORKERS: ${{ startsWith(github.head_ref, 'trunk-merge/') && 12 || 6 }}
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
diff --git a/docs/internal/ci-things-already-tried.md b/docs/internal/ci-things-already-tried.md
index ae607e2aa1e4..5210d25da779 100644
--- a/docs/internal/ci-things-already-tried.md
+++ b/docs/internal/ci-things-already-tried.md
@@ -135,8 +135,6 @@ Thus four shards used approximately 22 more minutes of CPU in each run, and decr
A shard retry also repeats the 7.5 minutes of setup. Thus a retry of one shard is not much faster than a retry of all the tests.
-The workflow contains a comment about this decision. Read the comment near `runs-on` in `.github/workflows/ci-e2e-playwright.yml`.
-
_Also asked as:_ split the E2E tests across runners, parallelize Playwright, reduce flaky retry scope by sharding
### Use Bazel to scope product tests