From 846ba077e018b3b8a45dad923727343b30f8afb1 Mon Sep 17 00:00:00 2001 From: peternhale Date: Wed, 10 Jul 2024 09:45:52 -0600 Subject: [PATCH] build: add platform specific throttle factors for e2e (#5682) * build: add throttle factor for e2e @W-14867258@ * chore: increase throttle factor for windows --------- Co-authored-by: Mingxuan Zhang <132491513+mingxuanzhangsfdx@users.noreply.github.com> --- .github/workflows/runE2ETest.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/runE2ETest.yml b/.github/workflows/runE2ETest.yml index 3a0c414ff4..431b35d0c0 100644 --- a/.github/workflows/runE2ETest.yml +++ b/.github/workflows/runE2ETest.yml @@ -94,6 +94,12 @@ jobs: echo "The @salesforce/cli installation could not be verified" exit 1 fi + - name: Set THROTTLE_FACTOR for macOS and Linux + if: matrix.os != 'windows-latest' + run: echo "THROTTLE_FACTOR=1" >> $GITHUB_ENV + - name: Set THROTTLE_FACTOR for Windows + if: matrix.os == 'windows-latest' + run: echo "THROTTLE_FACTOR=5" >> $GITHUB_ENV - name: Run headless test uses: coactions/setup-xvfb@b6b4fcfb9f5a895edadc3bc76318fae0ac17c8b3 with: @@ -106,6 +112,7 @@ jobs: SPEC_FILES: ${{ inputs.testToRun }} SFDX_AUTH_URL: ${{ secrets.SFDX_AUTH_URL_E2E }} ORG_ID: ${{ secrets.ORG_ID_E2E }} + THROTTLE_FACTOR: ${{ env.THROTTLE_FACTOR }} - uses: actions/upload-artifact@v4 if: failure() with: