Skip to content

Commit 8034cd7

Browse files
committed
fix(ci): shard the Windows leg like the Linux legs
A green run reached 30 minutes and was killed in post-checkout cleanup. The single leg ran the whole suite at once; four shards put each Windows runner inside the same 15-minute budget the Linux shards already hold. The aggregate gate's mandatory-Windows assertion reads needs.platform-windows .result, which a matrix still resolves - every shard must succeed for the leg to report success, so a silently skipped shard cannot reach the release gate.
1 parent 712c493 commit 8034cd7

1 file changed

Lines changed: 10 additions & 10 deletions

File tree

‎.github/workflows/ci.yml‎

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -382,21 +382,21 @@ jobs:
382382
# which would also match every push to dev — most of the traffic this change
383383
# exists to speed up.
384384
platform-windows:
385-
name: windows
385+
name: windows ${{ matrix.shard }}/4
386386
needs: select-windows-runner
387387
if: >-
388388
github.event_name == 'workflow_dispatch' ||
389389
(github.event_name == 'push' &&
390390
(github.ref == 'refs/heads/main' || github.ref == 'refs/heads/preview'))
391391
runs-on: ${{ fromJSON(needs.select-windows-runner.outputs.runner) }}
392-
# After the 2026-08-01 state-store admission merge, Windows under
393-
# `bun test --isolate` on #827 hit the 20-minute kill while still green
394-
# mid-suite (~19m of tests). 30 minutes is the margin for that tip — not a
395-
# licence to absorb hung tests (see the oauth mutation waitMs unref fix).
396-
# The suite has grown past that margin: a green run now reaches the
397-
# post-checkout cleanup at 30:06 and is killed there, which is not a hung
398-
# test, just a suite that takes longer than the budget it was given.
399-
timeout-minutes: 40
392+
# Sharded like the Linux legs. The single-leg run reached 30 minutes on a
393+
# green suite and was killed in cleanup; four shards put each leg inside the
394+
# same budget the Linux shards already hold.
395+
timeout-minutes: 15
396+
strategy:
397+
fail-fast: false
398+
matrix:
399+
shard: [1, 2, 3, 4]
400400
steps:
401401
- name: Show selected runner
402402
shell: bash
@@ -446,7 +446,7 @@ jobs:
446446
bun run build
447447
448448
- name: Test
449-
run: bun test --isolate tests
449+
run: bun test --isolate tests --shard=${{ matrix.shard }}/4
450450

451451
- name: CLI help smoke
452452
run: bun run src/cli/index.ts help

0 commit comments

Comments
 (0)