Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 21 additions & 2 deletions .github/workflows/standards-deploy-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,29 @@ jobs:
fetch-depth: 1

- name: Install bats, shellcheck, and jq
# Retry the apt update+install: a single transient mirror/CDN blip
# (5xx, hash mismatch, DNS hiccup) would otherwise red the whole job and
# skew the fleet failure-rate metric. Three attempts with backoff; the
# step fails only if every attempt fails. The final attempt uses -q
# instead of -qq so apt output is visible in CI logs when all retries fail.
run: |
set -euo pipefail
sudo apt-get update -qq
sudo apt-get install -y --no-install-recommends bats shellcheck jq
installed=0
for attempt in 1 2 3; do
apt_flags=(-qq)
[ "${attempt}" -eq 3 ] && apt_flags=(-q)
if sudo apt-get update "${apt_flags[@]}" \
&& sudo apt-get install -y --no-install-recommends bats shellcheck jq; then
installed=1
break
fi
Comment thread
qodo-code-review[bot] marked this conversation as resolved.
echo "apt install attempt ${attempt} failed" >&2
[ "${attempt}" -lt 3 ] && sleep $((attempt * 5))
done
if [ "${installed}" -ne 1 ]; then
echo "apt install failed after 3 attempts" >&2
exit 1
fi

- name: shellcheck
run: |
Expand Down
Loading