From 6709e004d7443df3f698ba3d159d706342333369 Mon Sep 17 00:00:00 2001 From: Alex-Welsh Date: Thu, 22 Feb 2024 09:29:28 +0000 Subject: [PATCH] Add retries to packages syncs --- .github/workflows/package-sync.yml | 40 +++++++++++++++++++----------- 1 file changed, 25 insertions(+), 15 deletions(-) diff --git a/.github/workflows/package-sync.yml b/.github/workflows/package-sync.yml index 2be756a1..48296f38 100644 --- a/.github/workflows/package-sync.yml +++ b/.github/workflows/package-sync.yml @@ -52,13 +52,18 @@ jobs: vault-password-file: ${{ env.ANSIBLE_VAULT_PASSWORD_FILE }} - name: Sync and publish package repositories in Ark - run: | - ansible-playbook -i ansible/inventory \ - ansible/dev-pulp-repo-sync.yml \ - ansible/dev-pulp-repo-publication-cleanup.yml \ - ansible/dev-pulp-repo-publish.yml \ - -e deb_package_repo_filter="'$FILTER'" \ - -e rpm_package_repo_filter="'$FILTER'" + uses: nick-fields/retry@v3 + with: + timeout_minutes: 360 + max_attempts: 2 + command: | + ansible-playbook -i ansible/inventory \ + ansible/dev-pulp-repo-sync.yml \ + ansible/dev-pulp-repo-publication-cleanup.yml \ + ansible/dev-pulp-repo-publish.yml \ + -e deb_package_repo_filter="'$FILTER'" \ + -e rpm_package_repo_filter="'$FILTER'" + retry_wait_seconds: 3600 env: FILTER: ${{ inputs.filter }} @@ -78,13 +83,18 @@ jobs: vault-password-file: ${{ env.ANSIBLE_VAULT_PASSWORD_FILE }} - name: Sync and publish package repositories in test - run: | - ansible-playbook -i ansible/inventory \ - ansible/test-pulp-repo-version-query.yml \ - ansible/test-pulp-repo-sync.yml \ - ansible/test-pulp-repo-publication-cleanup.yml \ - ansible/test-pulp-repo-publish.yml \ - -e deb_package_repo_filter="'$FILTER'" \ - -e rpm_package_repo_filter="'$FILTER'" + uses: nick-fields/retry@v3 + with: + timeout_minutes: 360 + max_attempts: 2 + command: | + ansible-playbook -i ansible/inventory \ + ansible/test-pulp-repo-version-query.yml \ + ansible/test-pulp-repo-sync.yml \ + ansible/test-pulp-repo-publication-cleanup.yml \ + ansible/test-pulp-repo-publish.yml \ + -e deb_package_repo_filter="'$FILTER'" \ + -e rpm_package_repo_filter="'$FILTER'" + retry_wait_seconds: 3600 env: FILTER: ${{ inputs.filter }}