Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion stack.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
Loading