Skip to content

Commit

Permalink
build: add platform specific throttle factors for e2e (#5682)
Browse files Browse the repository at this point in the history
* 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>
  • Loading branch information
peternhale and mingxuanzhangsfdx committed Jul 10, 2024
1 parent a84e89d commit 846ba07
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/runE2ETest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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:
Expand Down

0 comments on commit 846ba07

Please sign in to comment.