From 0ca2ed56c362e0aa61053528979bbd0c3efd4062 Mon Sep 17 00:00:00 2001 From: Kevin Veen-Birkenbach Date: Tue, 30 Jun 2026 09:12:16 +0200 Subject: [PATCH] fix(swarm-test): align roundtrip swarm gate to the live workflow step name The gate grepped a stale step-name marker ("across variant rounds") that never appears in the act log, so every swarm leg false-failed even on a passing deploy. Match the actual workflow step name instead. Co-Authored-By: Claude Opus 4.8 (1M context) --- scripts/tests/deploy/roundtrip.sh | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/scripts/tests/deploy/roundtrip.sh b/scripts/tests/deploy/roundtrip.sh index 8bc167348b..a6687395ca 100755 --- a/scripts/tests/deploy/roundtrip.sh +++ b/scripts/tests/deploy/roundtrip.sh @@ -24,14 +24,10 @@ fi modes="${modes:-compose swarm}" _log_dir="${TMPDIR:-/tmp}" -# `complexity --format string` emits one role per line; normalise newlines to -# spaces so the no-apps default iterates every role, not just the first line. read -ra _apps <<<"${apps//$'\n'/ }" read -ra _modes <<<"$modes" for app in "${_apps[@]}"; do - # A role's meta/services.yml `skip` list opts it out of given deploy modes - # (same SPOT the CI discovery honours via apps.sh); honour it here too. app_skip="$("${PYTHON}" -c "import sys; sys.path.insert(0, '${_repo_root}'); from utils.roles.meta_lookup import get_role_skip; print(' '.join(get_role_skip('${app}')))")" for mode in "${_modes[@]}"; do if [[ " ${app_skip} " == *" ${mode} "* ]]; then @@ -48,14 +44,10 @@ for app in "${_apps[@]}"; do swarm) ACT_PLATFORM_IMAGE=local/act-runner-fixed:latest \ make -C "$_repo_root" act-swarm-zombie app="$app" 2>&1 | tee "$log" - # act exits 0 even when the matrix yields no legs and the swarm deploy job - # never ran (only the discover/Lure job), so its clean exit is no proof. - grep -q "Matrix-deploy ${app} across variant rounds" "$log" || { + grep -q "Matrix-deploy ${app}: provision/deploy/e2e/verify per round" "$log" || { echo "roundtrip: ${app} [swarm] FAILED: swarm deploy job did not run (empty matrix); see ${log}" >&2 exit 1 } - # A failure above exits via set -e and leaves the cluster up for inspection; - # only a passing run reaches here, so release it unless keep=true. [ "${keep:-false}" = true ] || make -C "$_repo_root" act-swarm-down name="$app" ;; *)