Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: Retry failed jobs #21

Merged
merged 1 commit into from
Nov 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,11 @@ jobs:
go-version: ${{ env.GO_VERSION }}

- name: Run unit tests
run: make test
uses: nick-fields/retry@v3
with:
timeout_minutes: 5
max_attempts: 3
command: make test

drenv-test:
name: drenv tests
Expand Down
11 changes: 8 additions & 3 deletions .github/workflows/e2e.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,15 @@ jobs:
max_attempts: 3
command: ramenctl config --name-prefix ${{ env.NAME_PREFIX }} test/envs/regional-dr.yaml

- name: Configure e2e tests
run: cat ~/.config/drenv/${{ env.NAME_PREFIX }}rdr/config.yaml >> e2e/config.yaml

- name: Run e2e tests
run: |
cat ~/.config/drenv/${{ env.NAME_PREFIX }}rdr/config.yaml >> e2e/config.yaml
make e2e-rdr
uses: nick-fields/retry@v3
with:
timeout_minutes: 20
max_attempts: 3
command: make e2e-rdr

- name: Gather environment data
if: failure()
Expand Down