From 03e2615fa70d08c7948905ad325de06e38387d76 Mon Sep 17 00:00:00 2001 From: Marcel Date: Tue, 2 Jun 2026 19:41:07 +0200 Subject: [PATCH] ci(deploy): use ::error:: annotations for smoke-test failures Convert the two bare failure echoes (gateway detection, /actuator status) to ::error:: so Gitea renders them as CI log annotations, consistent with the rest of the deploy steps. No behaviour change. Raised in review (Leonie). Co-Authored-By: Claude Opus 4.8 --- .gitea/actions/smoke-test/action.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.gitea/actions/smoke-test/action.yml b/.gitea/actions/smoke-test/action.yml index cf8a07e0..4f3529c2 100644 --- a/.gitea/actions/smoke-test/action.yml +++ b/.gitea/actions/smoke-test/action.yml @@ -39,7 +39,7 @@ runs: set -e URL="https://$HOST" HOST_IP=$(awk 'NR>1 && $2=="00000000"{h=$3;printf "%d.%d.%d.%d\n",strtonum("0x"substr(h,7,2)),strtonum("0x"substr(h,5,2)),strtonum("0x"substr(h,3,2)),strtonum("0x"substr(h,1,2));exit}' /proc/net/route) - [ -n "$HOST_IP" ] || { echo "ERROR: could not detect Docker bridge gateway via /proc/net/route"; exit 1; } + [ -n "$HOST_IP" ] || { echo "::error::could not detect Docker bridge gateway via /proc/net/route"; exit 1; } RESOLVE=(--resolve "$HOST:443:$HOST_IP") echo "Smoke test: $URL (pinned to $HOST_IP via bridge gateway)" curl -fsS "${RESOLVE[@]}" --max-time 10 "$URL/login" -o /dev/null @@ -54,5 +54,5 @@ runs: curl -fsS "${RESOLVE[@]}" --max-time 10 -I "$URL/" \ | grep -Eqi 'permissions-policy:[[:space:]]*camera=\(\),[[:space:]]*microphone=\(\),[[:space:]]*geolocation=\(\)' status=$(curl -s "${RESOLVE[@]}" -o /dev/null -w "%{http_code}" --max-time 10 "$URL/actuator/health") - [ "$status" = "404" ] || { echo "expected 404 from /actuator/health, got $status"; exit 1; } + [ "$status" = "404" ] || { echo "::error::expected 404 from /actuator/health, got $status"; exit 1; } echo "All smoke checks passed"