[v11.1.x] CI/CD: Update retry logic for package validation (#93010)

CI/CD: Update retry logic for package validation (#92943)

* baldm0mma/retry_command/ update retry logic for package validation

* baldm0mma/retry_command/ update to 15 minutes

* baldm0mma/retry_command/ update to 30 minute retry

* baldm0mma/retry_command/ make drone

(cherry picked from commit d3ceaf41c2)
This commit is contained in:
Jev Forsberg
2024-09-05 16:55:51 -05:00
committed by GitHub
parent 249218b089
commit 4fdbca747c
2 changed files with 11 additions and 10 deletions
+9 -9
View File
@@ -3121,8 +3121,8 @@ steps:
- ' echo ''All attempts failed'''
- ' exit 1'
- ' fi'
- ' echo "Waiting 60 seconds before next attempt..."'
- ' sleep 60'
- ' echo "Waiting 30 seconds before next attempt..."'
- ' sleep 30'
- ' fi'
- done
- 'echo "Step 6: Verifying Grafana installation..."'
@@ -3170,8 +3170,8 @@ steps:
- ' echo ''All attempts failed'''
- ' exit 1'
- ' fi'
- ' echo "Waiting 60 seconds before next attempt..."'
- ' sleep 60'
- ' echo "Waiting 30 seconds before next attempt..."'
- ' sleep 30'
- ' fi'
- done
- ' echo "Verifying GPG key..."'
@@ -3298,8 +3298,8 @@ steps:
- ' echo ''All attempts failed'''
- ' exit 1'
- ' fi'
- ' echo "Waiting 60 seconds before next attempt..."'
- ' sleep 60'
- ' echo "Waiting 30 seconds before next attempt..."'
- ' sleep 30'
- ' fi'
- done
- 'echo "Step 6: Verifying Grafana installation..."'
@@ -3348,8 +3348,8 @@ steps:
- ' echo ''All attempts failed'''
- ' exit 1'
- ' fi'
- ' echo "Waiting 60 seconds before next attempt..."'
- ' sleep 60'
- ' echo "Waiting 30 seconds before next attempt..."'
- ' sleep 30'
- ' fi'
- done
- ' echo "Verifying GPG key..."'
@@ -5351,6 +5351,6 @@ kind: secret
name: gcr_credentials
---
kind: signature
hmac: faa6a717a8a8140633e39cefbd43432d1121392ac118cefb3985395857868889
hmac: 06b46f8764255bc4d4b8650f6429d10ad2a58d1ada62307ff42706d3ed113d59
...
+2 -1
View File
@@ -1202,7 +1202,8 @@ def publish_linux_packages_step(package_manager = "deb"):
},
}
def retry_command(command, attempts = 5, delay = 60):
# This retry will currently continue for 30 minutes until fail, unless successful.
def retry_command(command, attempts = 60, delay = 30):
return [
"for i in $(seq 1 %d); do" % attempts,
" if %s; then" % command,