From faa9a16f0aa7c32611621463e027c322905d75e4 Mon Sep 17 00:00:00 2001 From: Rahul Varghese Date: Wed, 29 Jul 2026 00:24:30 +0530 Subject: [PATCH] feat(worker-turbo): smoke runs under retry-with-backoff (0.18.1) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit A brand-new workers.dev route can 4xx for a few seconds after wrangler deploy returns (subdomain propagation), and first-boot cold starts can outlast a raw curl --fail. The composition now retries the product's smokeCommand up to 6 times over ~75s before declaring failure — a real regression still fails; a propagation race no longer parks the whole convergence on a manual rerun (observed on nimbus web-console-next stage). Co-Authored-By: Claude Fable 5 --- ...cloudflare-worker-turbo-verify-deploy.yaml | 27 ++++++++++++++++++- stack.yaml | 2 +- 2 files changed, 27 insertions(+), 2 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 7d2da28..8d22fad 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 @@ -209,5 +209,30 @@ spec: name: smoke capability: cloudflare-worker-turbo.smoke shell: bash - run: "{{ .parameters.smokeCommand }}" + # The product's smokeCommand runs under retry-with-backoff: a + # brand-new workers.dev route can 4xx for a few seconds after + # `wrangler deploy` returns while the subdomain propagates, and a + # first-boot worker may cold-start slower than a raw curl --fail + # tolerates. A real regression still fails after the ~75s budget; a + # propagation race passes on an early retry instead of parking the + # whole convergence on a manual rerun. + run: | + set -uo pipefail + smoke() { + {{ .parameters.smokeCommand }} + } + attempts=6 + for i in $(seq 1 "$attempts"); do + if smoke; then + [ "$i" -gt 1 ] && echo "smoke passed on attempt $i/$attempts" + exit 0 + fi + if [ "$i" -lt "$attempts" ]; then + wait=$(( i * 5 )) + echo "smoke attempt $i/$attempts failed — retrying in ${wait}s" + sleep "$wait" + fi + done + echo "smoke failed after $attempts attempts" + exit 1 onFailure: stop diff --git a/stack.yaml b/stack.yaml index 9d25520..4a15e08 100644 --- a/stack.yaml +++ b/stack.yaml @@ -3,7 +3,7 @@ kind: Stack metadata: name: stack-tectonic title: Stack Tectonic - version: 0.18.0 + version: 0.18.1 description: Versioned OCI-hosted catalog of Cloudflare, Terraform and monorepo compositions for Sourceplane repositories. owner: sourceplane tags: