verify: fix race condition causing false-alarm "nothing found in stack" #5

Closed
admin wants to merge 1 commits from fix-verify-race-condition into main
1 Commits
Author SHA1 Message Date
admin ca94b551d7 verify: replace fixed sleep 5 + one-shot check with retry-with-backoff
`docker stack deploy` briefly tears down and recreates tasks in Swarm's
internal bookkeeping, so `docker stack ps` can transiently return nothing
right after a deploy even when the service is healthy. A single `sleep 5`
followed by one check produced a false-alarm-looking "nothing found in
stack: vaultwarden" on an otherwise-successful deploy (2026-08-25).

Now retries up to 6 times, 5s apart (~30s total) before printing a WARNING
with a manual-check command. Does not fail the pipeline on its own --
verify was already informational, not a hard gate.

No changes to provision-secrets or deploy steps.
2026-08-25 23:06:56 -07:00