From 7254cd97e26acc558c27485adb13adcea56e7046 Mon Sep 17 00:00:00 2001 From: Keith Williams Date: Mon, 6 May 2024 09:27:14 -0300 Subject: [PATCH] chore: Use better buildjet hardware for e2e (#14835) * chore: Use better buildjet server for e2e * Backed down buildjet hardware where not needed --------- Co-authored-by: Joe Au-Yeung <65426560+joeauyeung@users.noreply.github.com> Co-authored-by: Carina Wollendorfer <30310907+CarinaWolli@users.noreply.github.com> --- .github/workflows/cache-clean.yml | 4 ++-- .github/workflows/check-types.yml | 2 +- .github/workflows/e2e.yml | 2 +- .github/workflows/nextjs-bundle-analysis.yml | 2 +- .github/workflows/pr.yml | 4 ++-- .github/workflows/unit-tests.yml | 2 +- 6 files changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/cache-clean.yml b/.github/workflows/cache-clean.yml index dd0be43ec5..5940ab301a 100644 --- a/.github/workflows/cache-clean.yml +++ b/.github/workflows/cache-clean.yml @@ -6,7 +6,7 @@ on: jobs: cleanup: - runs-on: buildjet-4vcpu-ubuntu-2204 + runs-on: buildjet-2vcpu-ubuntu-2204 steps: - name: Check out code uses: actions/checkout@v3 @@ -21,7 +21,7 @@ jobs: echo "Fetching list of cache key" cacheKeysForPR=$(gh actions-cache list -R $REPO -B $BRANCH | cut -f 1 ) - ## Setting this to not fail the workflow while deleting cache keys. + ## Setting this to not fail the workflow while deleting cache keys. set +e echo "Deleting caches..." for cacheKey in $cacheKeysForPR diff --git a/.github/workflows/check-types.yml b/.github/workflows/check-types.yml index 85f730a3ae..fedbacc92c 100644 --- a/.github/workflows/check-types.yml +++ b/.github/workflows/check-types.yml @@ -5,7 +5,7 @@ env: NODE_OPTIONS: --max-old-space-size=4096 jobs: check-types: - runs-on: buildjet-4vcpu-ubuntu-2204 + runs-on: buildjet-2vcpu-ubuntu-2204 steps: - uses: actions/checkout@v3 - uses: ./.github/actions/dangerous-git-checkout diff --git a/.github/workflows/e2e.yml b/.github/workflows/e2e.yml index ebfe046a5f..a428122bd7 100644 --- a/.github/workflows/e2e.yml +++ b/.github/workflows/e2e.yml @@ -7,7 +7,7 @@ jobs: e2e: timeout-minutes: 20 name: E2E tests (${{ matrix.shard }}/${{ strategy.job-total }}) - runs-on: buildjet-4vcpu-ubuntu-2204 + runs-on: buildjet-8vcpu-ubuntu-2204 services: postgres: image: postgres:13 diff --git a/.github/workflows/nextjs-bundle-analysis.yml b/.github/workflows/nextjs-bundle-analysis.yml index bab3e68bc9..f634fdfbe4 100644 --- a/.github/workflows/nextjs-bundle-analysis.yml +++ b/.github/workflows/nextjs-bundle-analysis.yml @@ -16,7 +16,7 @@ jobs: analyze: needs: build if: always() - runs-on: buildjet-4vcpu-ubuntu-2204 + runs-on: buildjet-2vcpu-ubuntu-2204 steps: - uses: actions/checkout@v3 - uses: ./.github/actions/dangerous-git-checkout diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index f4de65e6fe..9263005bac 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -14,7 +14,7 @@ concurrency: jobs: changes: name: Detect changes - runs-on: buildjet-4vcpu-ubuntu-2204 + runs-on: buildjet-2vcpu-ubuntu-2204 permissions: pull-requests: read outputs: @@ -108,7 +108,7 @@ jobs: required: needs: [changes, lint, type-check, test, build, build-api-v1, e2e, e2e-embed, e2e-embed-react, e2e-app-store] if: always() - runs-on: buildjet-4vcpu-ubuntu-2204 + runs-on: buildjet-2vcpu-ubuntu-2204 steps: - name: fail if conditional jobs failed if: needs.changes.outputs.has-files-requiring-all-checks == 'true' && (contains(needs.*.result, 'failure') || contains(needs.*.result, 'skipped') || contains(needs.*.result, 'cancelled')) diff --git a/.github/workflows/unit-tests.yml b/.github/workflows/unit-tests.yml index 14027bf444..abd06ff3a0 100644 --- a/.github/workflows/unit-tests.yml +++ b/.github/workflows/unit-tests.yml @@ -7,7 +7,7 @@ on: jobs: test: timeout-minutes: 20 - runs-on: buildjet-4vcpu-ubuntu-2204 + runs-on: buildjet-2vcpu-ubuntu-2204 steps: - uses: actions/checkout@v3 - uses: ./.github/actions/dangerous-git-checkout