fix(test): resolve rate-limit failures when downloading datasets #3496
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: ci-dgraph-integration2-tests | |
| on: | |
| pull_request: | |
| types: | |
| - opened | |
| - reopened | |
| - synchronize | |
| - ready_for_review | |
| branches: | |
| - main | |
| - release/** | |
| permissions: | |
| contents: read | |
| jobs: | |
| check-changes: | |
| uses: ./.github/workflows/check-changes.yml | |
| dgraph-integration2-tests: | |
| needs: check-changes | |
| if: | |
| github.event.pull_request.draft == false && needs.check-changes.outputs.should-skip != 'true' | |
| runs-on: blacksmith-16vcpu-ubuntu-2404 | |
| timeout-minutes: 90 | |
| steps: | |
| - uses: actions/checkout@v5 | |
| with: | |
| fetch-depth: 0 | |
| - name: Restore benchmark dataset cache | |
| uses: actions/cache/restore@v4 | |
| with: | |
| path: dgraphtest/datafiles | |
| key: dataset-dgraphtest-v1 | |
| - name: Ensure datafiles directory | |
| run: mkdir -p dgraphtest/datafiles | |
| - name: Set up Go | |
| uses: actions/setup-go@v6 | |
| with: | |
| go-version-file: go.mod | |
| - name: Make Linux Build and Docker Image | |
| run: make docker-image | |
| - name: Clean Up Environment | |
| run: | | |
| #!/bin/bash | |
| # clean cache | |
| go clean -testcache | |
| - name: Run Integration2 Tests | |
| run: | | |
| #!/bin/bash | |
| # go env settings | |
| export GOPATH=~/go | |
| # move the binary | |
| cp dgraph/dgraph ~/go/bin/dgraph | |
| # run the tests | |
| go test -v -timeout=90m -failfast -tags=integration2 ./... | |
| # clean up docker containers after test execution | |
| go clean -testcache | |
| # sleep | |
| sleep 5 | |
| - name: Save benchmark dataset cache | |
| if: success() | |
| uses: actions/cache/save@v4 | |
| with: | |
| path: dgraphtest/datafiles | |
| key: dataset-dgraphtest-v1 |