From 20b3f8fbf34638ee03e202f70e7ae53c12e8a164 Mon Sep 17 00:00:00 2001 From: Muhammad Atif Ali Date: Sat, 12 Oct 2024 04:23:13 -0700 Subject: [PATCH] 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. --- .github/workflows/ci.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 5acfe45764..d10ff13be3 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -499,7 +499,8 @@ jobs: working-directory: site test-e2e: - runs-on: ${{ github.repository_owner == 'coder' && 'depot-ubuntu-22.04-16' || 'ubuntu-latest' }} + runs-on: ${{ github.repository_owner == 'coder' && (matrix.variant.enterprise && 'depot-ubuntu-22.04' || 'depot-ubuntu-22.04-4') || 'ubuntu-latest' }} + # test-e2e fails on 2-core 8GB runners, so we use the 4-core 16GB runner needs: changes if: needs.changes.outputs.go == 'true' || needs.changes.outputs.ts == 'true' || needs.changes.outputs.ci == 'true' || github.ref == 'refs/heads/main' timeout-minutes: 20