Skip to content

Commit

Permalink
run fewer tests more often (replicatedhq#4888)
Browse files Browse the repository at this point in the history
customer migration specs changed to also run daily

storage migration specs changed to run on two OSes instead of 8, but at higher priority so they'll actually happen, and also run on prod on weekends
  • Loading branch information
laverya committed Oct 13, 2023
1 parent bf4cfa0 commit 0b941fd
Show file tree
Hide file tree
Showing 3 changed files with 47 additions and 3 deletions.
26 changes: 24 additions & 2 deletions .github/workflows/cron-testgrid-daily.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,5 +46,27 @@ jobs:
replicated/tgrun:latest queue --staging \
--ref "${REF}" \
--spec ./testgrid/specs/storage-migration.yaml \
--os-spec ./testgrid/specs/os-latest.yaml \
--priority -2
--os-spec ./testgrid/specs/os-customer-common.yaml \
--priority -1
testgrid-daily-customer-migration:
if: ${{ github.repository_owner == 'replicatedhq' }}
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: pull tgrun image
run: docker pull replicated/tgrun:latest

- name: testgrid-queue-staging
env:
TESTGRID_API_TOKEN: ${{ secrets.TESTGRID_PROD_API_TOKEN }}
run: |
REF="STAGING-daily-customer-migration-$(git rev-parse --short HEAD)-$(date --utc +%FT%TZ)"
docker run --rm -e TESTGRID_API_TOKEN -v `pwd`:/wrk -w /wrk \
replicated/tgrun:latest queue --staging \
--ref "${REF}" \
--spec ./testgrid/specs/customer-migration-specs.yaml \
--os-spec ./testgrid/specs/os-customer-common.yaml \
--priority -1
24 changes: 23 additions & 1 deletion .github/workflows/cron-testgrid-weekly.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ jobs:
--spec ./testgrid/specs/full.yaml \
--os-spec ./testgrid/specs/os-firstlast.yaml \
--priority -2
testgrid-weekly-customer-migration-specs:
if: ${{ github.repository_owner == 'replicatedhq' }}
runs-on: ubuntu-latest
Expand All @@ -43,5 +44,26 @@ jobs:
replicated/tgrun:latest queue \
--ref "PROD-weekly-customer-migration-specs-$(date --utc +%FT%TZ)" \
--spec ./testgrid/specs/customer-migration-specs.yaml \
--os-spec ./testgrid/specs/customer-common-os.yaml \
--os-spec ./testgrid/specs/os-customer-common.yaml \
--priority -2
testgrid-weekly-storage-migration-specs:
if: ${{ github.repository_owner == 'replicatedhq' }}
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: pull tgrun image
run: docker pull replicated/tgrun:latest

- name: testgrid-queue-prod
env:
TESTGRID_API_TOKEN: ${{ secrets.TESTGRID_PROD_API_TOKEN }}
run: |
docker run --rm -e TESTGRID_API_TOKEN -v `pwd`:/wrk -w /wrk \
replicated/tgrun:latest queue \
--ref "PROD-weekly-storage-migration-specs-$(date --utc +%FT%TZ)" \
--spec ./testgrid/specs/storage-migration.yaml \
--os-spec ./testgrid/specs/os-customer-common.yaml \
--priority -2
File renamed without changes.

0 comments on commit 0b941fd

Please sign in to comment.