Skip to content

Commit

Permalink
Space out sharded tests to avoid Docker 429'ing us
Browse files Browse the repository at this point in the history
  • Loading branch information
Luc45 committed Apr 12, 2024
1 parent cd4e933 commit f91942e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/qit-environment-dangling-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,11 @@ jobs:
- name: Enable dev mode
run: ./qit dev

# Delay start of tests based on shardIndex to space out requests and avoid 429.
# Example: This step causes shard 1 to start immediately, shard 2 to start after a 10-second delay, shard 3 after a 20-second delay, etc.
- name: Wait before running tests
run: sleep $(( (${{ matrix.shardIndex }} - 1) * 10 ))

- name: Connect to Staging QIT
run: ./qit backend:add --environment="staging" --qit_secret="${{ secrets.QIT_STAGING_SECRET }}" --manager_url="https://stagingcompatibilitydashboard.wpcomstaging.com"

Expand Down

0 comments on commit f91942e

Please sign in to comment.