From 6b4e03aae1c0ebbc3dd88099fe33eaad610fd6bb Mon Sep 17 00:00:00 2001 From: vijayakrishnans Date: Mon, 16 Nov 2026 18:58:13 +0700 Subject: [PATCH] fix(smoke): retry a failed attempt again (0.23.1) 0.23.0's attempt loop called `smoke; rc=$?`. orun runs a step's script under `bash -e`, so the first failing attempt ended the step with the smoke's own exit code: no "attempt 1/10 failed" line, no backoff, no second attempt. A first deploy whose new workers.dev route 404s for a few seconds then failed smoke in 0.3s with curl's exit 22 (multi-tenant-saas-2's console, stage and prod, 2026-11-16), and only a manual rerun got it green. The call is now `rc=0; smoke || rc=$?`, which errexit does not apply to, so the ~4.5 minute budget and the exit-code log line work as $2 meant. Co-Authored-By: Claude Opus 5.5 --- .../jobs/cloudflare-worker-turbo-verify-deploy.yaml | 4 +++- .../jobs/cloudflare-worker-verify-deploy.yaml | 4 +++- .../jobs/cloudflare-workers-assets-turbo-verify-deploy.yaml | 4 +++- stack.yaml | 2 +- 4 files changed, 10 insertions(+), 4 deletions(-) diff --git a/compositions/cloudflare-worker-turbo/jobs/cloudflare-worker-turbo-verify-deploy.yaml b/compositions/cloudflare-worker-turbo/jobs/cloudflare-worker-turbo-verify-deploy.yaml index b4c06d3..c6460a5 100644 --- a/compositions/cloudflare-worker-turbo/jobs/cloudflare-worker-turbo-verify-deploy.yaml +++ b/compositions/cloudflare-worker-turbo/jobs/cloudflare-worker-turbo-verify-deploy.yaml @@ -269,7 +269,9 @@ spec: ) attempts=10 for i in $(seq 1 "$attempts"); do - smoke; rc=$? + # Not `smoke; rc=$?`: orun runs a step under `bash -e`, so a bare failing + # call would end the step on attempt 1 and skip the whole retry budget. + rc=0; smoke || rc=$? if [ "$rc" -eq 0 ]; then [ "$i" -gt 1 ] && echo "smoke passed on attempt $i/$attempts" exit 0 diff --git a/compositions/cloudflare-worker/jobs/cloudflare-worker-verify-deploy.yaml b/compositions/cloudflare-worker/jobs/cloudflare-worker-verify-deploy.yaml index 43c220a..a124d7f 100644 --- a/compositions/cloudflare-worker/jobs/cloudflare-worker-verify-deploy.yaml +++ b/compositions/cloudflare-worker/jobs/cloudflare-worker-verify-deploy.yaml @@ -125,7 +125,9 @@ spec: ) attempts=10 for i in $(seq 1 "$attempts"); do - smoke; rc=$? + # Not `smoke; rc=$?`: orun runs a step under `bash -e`, so a bare failing + # call would end the step on attempt 1 and skip the whole retry budget. + rc=0; smoke || rc=$? if [ "$rc" -eq 0 ]; then [ "$i" -gt 1 ] && echo "smoke passed on attempt $i/$attempts" exit 0 diff --git a/compositions/cloudflare-workers-assets-turbo/jobs/cloudflare-workers-assets-turbo-verify-deploy.yaml b/compositions/cloudflare-workers-assets-turbo/jobs/cloudflare-workers-assets-turbo-verify-deploy.yaml index 1f209a7..4b2a391 100644 --- a/compositions/cloudflare-workers-assets-turbo/jobs/cloudflare-workers-assets-turbo-verify-deploy.yaml +++ b/compositions/cloudflare-workers-assets-turbo/jobs/cloudflare-workers-assets-turbo-verify-deploy.yaml @@ -170,7 +170,9 @@ spec: ) attempts=10 for i in $(seq 1 "$attempts"); do - smoke; rc=$? + # Not `smoke; rc=$?`: orun runs a step under `bash -e`, so a bare failing + # call would end the step on attempt 1 and skip the whole retry budget. + rc=0; smoke || rc=$? if [ "$rc" -eq 0 ]; then [ "$i" -gt 1 ] && echo "smoke passed on attempt $i/$attempts" exit 0 diff --git a/stack.yaml b/stack.yaml index fbe9950..1ec84a1 100644 --- a/stack.yaml +++ b/stack.yaml @@ -3,7 +3,7 @@ kind: Stack metadata: name: stack-tectonic title: Stack Tectonic - version: 0.23.0 + version: 0.23.1 description: Versioned OCI-hosted catalog of Cloudflare, Terraform and monorepo compositions for Sourceplane repositories. owner: sourceplane tags: