File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -364,19 +364,25 @@ jobs:
364364 uses : nick-fields/retry@v3
365365 with :
366366 # Bumped from 12 → 18 minutes. The shard carrying the
367- # starter-projects-shardN tests iterates every starter template;
367+ # starter-projects template sweep iterates every starter template;
368368 # under Linux CI load that work can run past 12 minutes once a
369369 # single iteration triggers a per-test Playwright retry.
370370 timeout_minutes : 18
371371 max_attempts : 2
372+ # The command block is bash; without this the action falls back to
373+ # the runner default and PowerShell fails to parse the if/grep.
374+ shell : bash
372375 command : |
373376 cd src/frontend
374377 echo 'Running tests with pattern: ${{ needs.determine-test-suite.outputs.test_grep }}'
375378 TEST_LIST="$(npx playwright test ${{ inputs.tests_folder }} ${{ needs.determine-test-suite.outputs.test_grep }} --shard ${{ matrix.shardIndex }}/${{ matrix.shardTotal }} --list --retries=3)"
376379 printf '%s\n' "$TEST_LIST"
377380
378381 WORKERS=2
379- if printf '%s\n' "$TEST_LIST" | grep -q 'starter-projects-shard'; then
382+ # The sweep lives in starter-projects-outdated-components.spec.ts
383+ # (renamed from starter-projects-shardN in #13844 — keep this
384+ # pattern in sync or the one-worker mitigation silently no-ops).
385+ if printf '%s\n' "$TEST_LIST" | grep -q 'starter-projects-outdated-components'; then
380386 echo "Detected starter project template sweep in this shard; running it with one worker to avoid shared backend contention."
381387 WORKERS=1
382388 fi
You can’t perform that action at this time.
0 commit comments