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 @@ -221,18 +221,18 @@ spec:
smoke() {
{{ .parameters.smokeCommand }}
}
attempts=6
attempts=10
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 ))
wait=$(( i * 6 )); [ "$wait" -gt 45 ] && wait=45
echo "smoke attempt $i/$attempts failed — retrying in ${wait}s"
sleep "$wait"
fi
done
echo "smoke failed after $attempts attempts"
echo "smoke failed after $attempts attempts (~4.5m budget)"
exit 1
onFailure: stop
Original file line number Diff line number Diff line change
Expand Up @@ -105,5 +105,29 @@ spec:
capability: cloudflare-worker.smoke
shell: bash
working-directory: "{{ .parameters.appDir }}"
run: "{{ .parameters.smokeCommand }}"
run: |
set -uo pipefail
# smokeCommand runs under retry-with-backoff: a brand-new workers.dev
# route can take MINUTES to resolve on a first deploy (measured live
# — a console route 404'd for minutes then served 200), and a raw
# single-shot probe parks the whole convergence (and every DAG
# dependent) on a manual rerun. ~4.5 min budget; a real regression
# still fails after it.
smoke() {
{{ .parameters.smokeCommand }}
}
attempts=10
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 * 6 )); [ "$wait" -gt 45 ] && wait=45
echo "smoke attempt $i/$attempts failed — retrying in ${wait}s"
sleep "$wait"
fi
done
echo "smoke failed after $attempts attempts (~4.5m budget)"
exit 1
onFailure: stop
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@ spec:
capability: cloudflare-workers-assets-turbo.smoke
shell: bash
run: |
set -uo pipefail
export ORUN_ENVIRONMENT="{{ .orun.environment.name }}"
{{- if .parameters.environmentAwareWorkerName }}
export EFFECTIVE_WORKER_NAME="{{ .parameters.workerName }}-{{ .orun.environment.name }}"
Expand All @@ -124,5 +125,27 @@ spec:
export WORKERS_DEV_SUBDOMAIN="{{ .parameters.workersDevSubdomain }}"
export DEPLOYED_URL="https://${EFFECTIVE_WORKER_NAME}.${WORKERS_DEV_SUBDOMAIN}.workers.dev"
{{- end }}
{{ .parameters.smokeCommand }}
# smokeCommand runs under retry-with-backoff: a brand-new workers.dev
# route can take MINUTES to resolve on a first deploy (measured live
# — a console route 404'd for minutes then served 200), and a raw
# single-shot probe parks the whole convergence (and every DAG
# dependent) on a manual rerun. ~4.5 min budget; a real regression
# still fails after it.
smoke() {
{{ .parameters.smokeCommand }}
}
attempts=10
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 * 6 )); [ "$wait" -gt 45 ] && wait=45
echo "smoke attempt $i/$attempts failed — retrying in ${wait}s"
sleep "$wait"
fi
done
echo "smoke failed after $attempts attempts (~4.5m budget)"
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.1
version: 0.18.2
description: Versioned OCI-hosted catalog of Cloudflare, Terraform and monorepo compositions for Sourceplane repositories.
owner: sourceplane
tags:
Expand Down
Loading