The best way to control Claude Code, Codex and more from any computer or phone
Mirrored from https://github.com/Camo67/t3code.git
Synced Nov 22, 20:45 UTC
ci(release): release tests stop timing out and finish in about 5 minutes (#22524)
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Theo Browne committed
Oct 20, 2026 at 15:08 UTC
fe27e8e3dc12dcbb108e9a28fd9b8cb65f34ae92
2 files changed
+53
-7
.github/workflows/ci.yml
+1
@@ -252,6 +252,7 @@ jobs:
252
253
# The web suite is the largest outside the server. In the shared Test job it
254
# started last and ran alone for about 40s after everything else finished.
255
+ # release.yml mirrors this test, test_web, and test_server split.
256
test_web:
257
name: Test Web
258
needs: changes
.github/workflows/release.yml
+52
-7
@@ -256,7 +256,7 @@ jobs:
256
run: vp run typecheck
257
258
# Keep tests on their own runners, using the same package split and server
259
- # shards as CI, so the release check job does not spend its budget on tests.
259
+ # shards as CI (test, test_web, test_server in ci.yml). Keep the two in sync.
260
test:
261
name: Release tests
262
needs: [preflight]
@@ -286,23 +286,67 @@ jobs:
286
sudo sed -i 's|http://|https://|g' /etc/apt/blacksmith-ubuntu-mirrors.txt /etc/apt/sources.list.d/ubuntu.sources
287
sudo apt-get update && sudo apt-get install -y libsecret-1-dev pkg-config build-essential
288
289
- # The web package's browser project runs React tests in headless Chromium.
289
+ - name: Test
290
+ run: vp run --parallel --concurrency-limit 4 --filter '!t3' --filter '!@t3tools/monorepo' --filter '!@t3tools/web' test
291
+
292
+ # Web browser tests time out when they share a runner with the other package
293
+ # suites: Chromium gets too little CPU and diff workers miss their 10s start budget.
294
+ test_web:
295
+ name: Release web tests
296
+ needs: [preflight]
297
+ if: ${{ !failure() && !cancelled() && needs.preflight.result == 'success' }}
298
+ runs-on: blacksmith-8vcpu-ubuntu-2404
299
+ timeout-minutes: 10
300
+ steps:
301
+ - name: Checkout
302
+ uses: actions/checkout@v6
303
+ with:
304
+ ref: ${{ needs.preflight.outputs.ref }}
305
+ sparse-checkout: |
306
+ /*
307
+ !/.repos/
308
+ sparse-checkout-cone-mode: false
309
+
310
+ - name: Setup dependencies
311
+ uses: ./.github/actions/setup-ci-deps
312
+
313
+ - name: Resolve Playwright version
314
+ id: playwright_version
315
+ run: echo "version=$(node -p "require('./apps/web/node_modules/playwright/package.json').version")" >> "$GITHUB_OUTPUT"
316
+
317
+ - name: Cache Chromium
318
+ id: chromium_cache
319
+ uses: actions/cache@v6
320
+ with:
321
+ path: ~/.cache/ms-playwright
322
+ key: playwright-chromium-shell-${{ runner.os }}-${{ runner.arch }}-${{ steps.playwright_version.outputs.version }}
323
+
324
- name: Install Chromium for web browser tests
291
- run: node apps/web/node_modules/playwright/cli.js install --with-deps --only-shell chromium
325
+ if: steps.chromium_cache.outputs.cache-hit != 'true'
326
+ run: node apps/web/node_modules/playwright/cli.js install --only-shell chromium
327
+
328
+ - name: Install missing Chromium system dependencies
329
+ run: |
330
+ browser=$(find "$HOME/.cache/ms-playwright" -name chrome-headless-shell -type f -print -quit)
331
+ test -n "$browser"
332
+ if ldd "$browser" | grep '=> not found'; then
333
+ node apps/web/node_modules/playwright/cli.js install-deps chromium
334
+ fi
335
336
- name: Test
294
- run: vp run --parallel --concurrency-limit 4 --filter '!t3' --filter '!@t3tools/monorepo' test
337
+ run: vp run --filter @t3tools/web test
338
339
+ # Server test files run one at a time, so more small runners beat fewer big ones.
340
test_server:
341
name: Release server tests ${{ matrix.shard }}
342
needs: [preflight]
343
if: ${{ !failure() && !cancelled() && needs.preflight.result == 'success' }}
300
- runs-on: blacksmith-8vcpu-ubuntu-2404
344
+ runs-on: blacksmith-4vcpu-ubuntu-2404
345
timeout-minutes: 10
346
strategy:
347
fail-fast: false
348
matrix:
305
- shard: [1, 2, 3]
349
+ shard: [1, 2, 3, 4, 5, 6, 7, 8]
350
steps:
351
- name: Checkout
352
uses: actions/checkout@v6
@@ -693,6 +737,7 @@ jobs:
737
relay_public_config,
738
quality,
739
test,
740
+ test_web,
741
test_server,
742
desktop_mac_arm64,
743
desktop_mac_x64,
@@ -701,7 +746,7 @@ jobs:
746
desktop_win_x64,
747
desktop_win_arm64,
748
]
704
- if: ${{ !failure() && !cancelled() && needs.preflight.result == 'success' && needs.relay_public_config.result == 'success' && needs.quality.result == 'success' && needs.test.result == 'success' && needs.test_server.result == 'success' && needs.desktop_mac_arm64.result == 'success' && needs.desktop_mac_x64.result == 'success' && needs.desktop_linux_x64.result == 'success' && needs.desktop_linux_arm64.result == 'success' && needs.desktop_win_x64.result == 'success' && needs.desktop_win_arm64.result == 'success' }}
749
+ if: ${{ !failure() && !cancelled() && needs.preflight.result == 'success' && needs.relay_public_config.result == 'success' && needs.quality.result == 'success' && needs.test.result == 'success' && needs.test_web.result == 'success' && needs.test_server.result == 'success' && needs.desktop_mac_arm64.result == 'success' && needs.desktop_mac_x64.result == 'success' && needs.desktop_linux_x64.result == 'success' && needs.desktop_linux_arm64.result == 'success' && needs.desktop_win_x64.result == 'success' && needs.desktop_win_arm64.result == 'success' }}
750
runs-on: blacksmith-8vcpu-ubuntu-2404
751
timeout-minutes: 30
752
permissions: