From 495f6c11790f227a9c84e4f9ffac8713200bb08c Mon Sep 17 00:00:00 2001 From: John Eckersberg Date: Wed, 13 May 2026 15:21:32 -0400 Subject: [PATCH] ci: show failed unit details when boot smoke test is degraded Assisted-by: OpenCode (claude-opus-4-6) Signed-off-by: John Eckersberg --- .github/workflows/build-staged-images.yml | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build-staged-images.yml b/.github/workflows/build-staged-images.yml index fb6c1f5..f9e7e91 100644 --- a/.github/workflows/build-staged-images.yml +++ b/.github/workflows/build-staged-images.yml @@ -103,7 +103,19 @@ jobs: if: matrix.arch == 'amd64' run: | image="localhost/${{ matrix.name }}:${{ matrix.tag }}" - bcvk ephemeral run-ssh "${image}" -- systemctl is-system-running + bcvk ephemeral run-ssh "${image}" -- bash -c ' + state=$(systemctl is-system-running) + if [ "$state" != "running" ]; then + echo "System state: $state" + echo "Failed units:" + systemctl list-units --state=failed --no-legend + systemctl list-units --state=failed --no-legend --plain | while read -r unit _rest; do + echo "--- Status of $unit ---" + systemctl status "$unit" --no-pager --full 2>&1 || true + done + exit 1 + fi + ' - name: Push by digest if: github.event_name != 'pull_request' id: push