Skip to content

Commit

Permalink
Add retries for -partner setup calls
Browse files Browse the repository at this point in the history
  • Loading branch information
sebrandon1 committed Jan 2, 2024
1 parent a21238f commit 2869127
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 16 deletions.
30 changes: 18 additions & 12 deletions .github/workflows/pre-main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -224,15 +224,19 @@ jobs:
repository: test-network-function/cnf-certification-test-partner
path: cnf-certification-test-partner

- name: Start the Kind cluster for `local-test-infra`
uses: ./cnf-certification-test-partner/.github/actions/start-k8s-cluster
- name: Create `local-test-infra` OpenShift resources
uses: nick-fields/retry@v2
with:
working_directory: cnf-certification-test-partner
timeout_minutes: 90
max_attempts: 3
command: cd ${GITHUB_WORKSPACE}/cnf-certification-test-partner; make rebuild-cluster

- name: Create `local-test-infra` OpenShift resources
uses: ./cnf-certification-test-partner/.github/actions/create-local-test-infra-resources
uses: nick-fields/retry@v2
with:
working_directory: cnf-certification-test-partner
timeout_minutes: 90
max_attempts: 3
command: cd ${GITHUB_WORKSPACE}/cnf-certification-test-partner; make install

# Perform smoke tests.
- name: 'Test: Run test suites'
Expand Down Expand Up @@ -320,24 +324,26 @@ jobs:
repository: test-network-function/cnf-certification-test-partner
path: cnf-certification-test-partner

- name: Start the Kind cluster for `local-test-infra`
uses: ./cnf-certification-test-partner/.github/actions/start-k8s-cluster
- name: Create `local-test-infra` OpenShift resources
uses: nick-fields/retry@v2
with:
working_directory: cnf-certification-test-partner
timeout_minutes: 90
max_attempts: 3
command: cd ${GITHUB_WORKSPACE}/cnf-certification-test-partner; make rebuild-cluster

- name: Create `local-test-infra` OpenShift resources
uses: ./cnf-certification-test-partner/.github/actions/create-local-test-infra-resources
uses: nick-fields/retry@v2
with:
working_directory: cnf-certification-test-partner
timeout_minutes: 90
max_attempts: 3
command: cd ${GITHUB_WORKSPACE}/cnf-certification-test-partner; make install

# needed by depends-on-action
- name: Set up Go 1.21
uses: actions/setup-go@v5
with:
go-version: 1.21.5



# Perform smoke tests using a TNF container.
- name: Check out code into the Go module directory
uses: actions/checkout@v4
Expand Down
14 changes: 10 additions & 4 deletions .github/workflows/qe-hosted.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,12 +70,18 @@ jobs:
working-directory: cnf-certification-test-partner

- name: Create `local-test-infra` OpenShift resources
run: make rebuild-cluster
working-directory: cnf-certification-test-partner
uses: nick-fields/retry@v2
with:
timeout_minutes: 90
max_attempts: 3
command: cd ${GITHUB_WORKSPACE}/cnf-certification-test-partner; make rebuild-cluster

- name: Install partner resources
run: make install-for-qe
working-directory: cnf-certification-test-partner
uses: nick-fields/retry@v2
with:
timeout_minutes: 90
max_attempts: 3
command: cd ${GITHUB_WORKSPACE}/cnf-certification-test-partner; make install-for-qe

- name: Show pods
run: oc get pods -A
Expand Down

0 comments on commit 2869127

Please sign in to comment.