From 78700cf1390f84cfefae976d0c6e06eaf62770eb Mon Sep 17 00:00:00 2001 From: Ricardo Pardini Date: Mon, 8 May 2023 15:17:45 +0200 Subject: [PATCH] logging/retries: curb CI/GHA warning emitted _for each retry_ --- lib/functions/general/retry.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/functions/general/retry.sh b/lib/functions/general/retry.sh index e9eb35a71f..b30e99136a 100644 --- a/lib/functions/general/retry.sh +++ b/lib/functions/general/retry.sh @@ -30,7 +30,8 @@ function do_with_retries() { if [[ "${silent_retry}" == "yes" ]]; then : # do nothing else - display_alert "Command failed, retrying in ${sleep_seconds}s" "$*" "warn" + # skip_ci_special="yes": don't write this warning to CI/GHA summary. retries are normal in GHA and pollute the Summary view + skip_ci_special="yes" display_alert "Command failed, retrying in ${sleep_seconds}s" "$*" "warn" fi unset IS_A_RETRY unset RETRY_RUNS