From 126c4bcca3416acc4a23e1941cd3213cdb0f32f0 Mon Sep 17 00:00:00 2001 From: donpetry-bot <281750570+donpetry-bot@users.noreply.github.com> Date: Thu, 23 Jul 2026 09:22:13 +0000 Subject: [PATCH 1/2] =?UTF-8?q?feat:=20implement=20issue=20#889=20?= =?UTF-8?q?=E2=80=94=20[Fleet=20Monitor]=20petry-projects/.github=20?= =?UTF-8?q?=E2=80=94=20.github/workflows/standards-deploy-tests.yml?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/standards-deploy-tests.yml | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/.github/workflows/standards-deploy-tests.yml b/.github/workflows/standards-deploy-tests.yml index 0f569f458..b3223cede 100644 --- a/.github/workflows/standards-deploy-tests.yml +++ b/.github/workflows/standards-deploy-tests.yml @@ -64,10 +64,22 @@ 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. run: | set -euo pipefail - sudo apt-get update -qq - sudo apt-get install -y --no-install-recommends bats shellcheck jq + for attempt in 1 2 3; do + if sudo apt-get update -qq \ + && sudo apt-get install -y --no-install-recommends bats shellcheck jq; then + exit 0 + fi + echo "apt install attempt ${attempt} failed" >&2 + [ "${attempt}" -lt 3 ] && sleep $((attempt * 5)) + done + echo "apt install failed after 3 attempts" >&2 + exit 1 - name: shellcheck run: | From 9eaa8cbcc79c0064457485a876bb8fb6b824300d Mon Sep 17 00:00:00 2001 From: donpetry-bot <281750570+donpetry-bot@users.noreply.github.com> Date: Thu, 23 Jul 2026 18:35:01 +0000 Subject: [PATCH 2/2] chore: dev-lead update (review-changes) [skip ci-relay] --- .github/workflows/standards-deploy-tests.yml | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/.github/workflows/standards-deploy-tests.yml b/.github/workflows/standards-deploy-tests.yml index b3223cede..a6b22de97 100644 --- a/.github/workflows/standards-deploy-tests.yml +++ b/.github/workflows/standards-deploy-tests.yml @@ -67,19 +67,26 @@ jobs: # 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. + # 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 + installed=0 for attempt in 1 2 3; do - if sudo apt-get update -qq \ + 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 - exit 0 + installed=1 + break fi echo "apt install attempt ${attempt} failed" >&2 [ "${attempt}" -lt 3 ] && sleep $((attempt * 5)) done - echo "apt install failed after 3 attempts" >&2 - exit 1 + if [ "${installed}" -ne 1 ]; then + echo "apt install failed after 3 attempts" >&2 + exit 1 + fi - name: shellcheck run: |