Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 20b3f8f

Browse files
authored
chore: use a smaller runner for e2e test (#15034)
We run our e2e-tests on a 16-core machine with `--max-workers=1` Using a standard runner with 2 cores, the machine runs the tests in the same amount of time while reducing the cost 8 times. Update: `test-e2e` fails on the 2core-8GB runner, so using a 4-core-16GB runner for that.
1 parent 1914490 commit 20b3f8f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/ci.yaml

+2-1
Original file line numberDiff line numberDiff line change
@@ -499,7 +499,8 @@ jobs:
499499
working-directory: site
500500

501501
test-e2e:
502-
runs-on: ${{ github.repository_owner == 'coder' && 'depot-ubuntu-22.04-16' || 'ubuntu-latest' }}
502+
runs-on: ${{ github.repository_owner == 'coder' && (matrix.variant.enterprise && 'depot-ubuntu-22.04' || 'depot-ubuntu-22.04-4') || 'ubuntu-latest' }}
503+
# test-e2e fails on 2-core 8GB runners, so we use the 4-core 16GB runner
503504
needs: changes
504505
if: needs.changes.outputs.go == 'true' || needs.changes.outputs.ts == 'true' || needs.changes.outputs.ci == 'true' || github.ref == 'refs/heads/main'
505506
timeout-minutes: 20

0 commit comments

Comments
 (0)