Update logging, add timeout-minutes to the step as a safe guard.
@@ -464,9 +464,11 @@ jobs:
run: |
./scripts/ci/print-versions.sh
- name: make
- # use: script -e -c to print colors
+ timeout-minutes: 25 # may die if rabbitmq fails to start
env:
MAX_ATTEMPTS: 3
+ RETRY_DELAY: 5
+ # use: script -e -c to print colors
run: |
# There is a race in some orequesta integration tests so they tend to fail quite often.
# To avoid needed to re-run whole workflow in such case, we should try to retry this
@@ -475,13 +477,16 @@ jobs:
# re-run those.
set +e
for i in $(seq 1 ${MAX_ATTEMPTS}); do
- echo "Attempt: ${i}"
+ echo "Attempt: ${i}/${MAX_ATTEMPTS}"
+
script -e -c "make ${TASK}" && exit 0
- sleep 5
+
+ echo "Command failed, will retry in ${RETRY_DELAY} seconds..."
+ sleep ${RETRY_DELAY}
done
set -e
- echo "Failed after ${MAX_ATTEMPTS} attempts"
+ echo "Failed after ${MAX_ATTEMPTS} attempts, failing the job."
exit 1
- name: Codecov
# NOTE: We only generate and submit coverage report for master and version branches and only when the build succeeds (default on GitHub Actions, this was not the case on Travis so we had to explicitly check success)
