Skip to content

Commit 2ed22b0

Browse files
committed
10 times x16
1 parent 3d1dee0 commit 2ed22b0

1 file changed

Lines changed: 8 additions & 7 deletions

File tree

.github/workflows/unit-tests-webapp.yml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,17 +14,18 @@ on:
1414
jobs:
1515
unitTests:
1616
name: "🧪 Unit Tests: Webapp"
17-
# 3 shards on 32x machines instead of 10 on 8x: webapp tests run files in parallel
18-
# (forks pool scales with cores) and are genuinely CPU-hungry, so keep aggregate
19-
# compute similar while paying the setup cost (install, prisma generate, image pulls)
20-
# 3 times instead of 10.
21-
runs-on: warp-ubuntu-latest-x64-32x
17+
# 10 shards on 16x machines: webapp test throughput is limited per-machine (one
18+
# docker daemon + disk absorbing all the per-file Postgres/ClickHouse container
19+
# spin-up), so many machines beats few big ones - fewer/bigger (3x32) measured
20+
# SLOWER than 10x8. The 16x (vs 8x) gives the fork pool the CPU headroom the 8x
21+
# runners lacked. Setup overhead per machine is ~1 min on warm runners.
22+
runs-on: warp-ubuntu-latest-x64-16x
2223
strategy:
2324
# one flaky shard shouldn't cancel its siblings - lets us re-run only the failed shard
2425
fail-fast: false
2526
matrix:
26-
shardIndex: [1, 2, 3]
27-
shardTotal: [3]
27+
shardIndex: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
28+
shardTotal: [10]
2829
env:
2930
DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }}
3031
SHARD_INDEX: ${{ matrix.shardIndex }}

0 commit comments

Comments
 (0)