CI: a rerun of a main run no longer fails on its own deploy tag #89

Merged
jared merged 1 commits from deploy-tag-idempotent into main 2026-11-23 22:57:53 -05:00
Owner

This changes CI only.

The bug: a rerun keeps its run number, so the Deploy job's "Tag deployed commit" step tried to create deploy-<date>-<run> again, got a conflict, and failed. That happened after a successful deploy, and the failure also skipped Deploy worker. It bit tonight: after #88's run was rerun, following a network timeout reaching GitHub, the server deployed fine but the worker deploy was skipped.

The fix: if creating the tag fails, the step looks the tag up.

  • If it marks the same commit (a rerun), that's fine.
  • If it marks a different commit, the step fails and shows what it found.

I tested the lookup against the real tag, deploy-2026.11.24-255 → 567941c. actionlint and zizmor are clean.

After merge: this PR's push run also deploys the worker, because package.json (#88) changed since the worker's commit (06d6c72).

🤖 Generated with Claude Code

This changes CI only. **The bug:** a rerun keeps its run number, so the Deploy job's "Tag deployed commit" step tried to create `deploy-<date>-<run>` again, got a conflict, and failed. That happened after a successful deploy, and the failure also skipped **Deploy worker**. It bit tonight: after #88's run was rerun, following a network timeout reaching GitHub, the server deployed fine but the worker deploy was skipped. **The fix:** if creating the tag fails, the step looks the tag up. - If it marks the same commit (a rerun), that's fine. - If it marks a different commit, the step fails and shows what it found. I tested the lookup against the real tag, `deploy-2026.11.24-255` → `567941c`. `actionlint` and `zizmor` are clean. **After merge:** this PR's push run also deploys the worker, because `package.json` (#88) changed since the worker's commit (`06d6c72`). 🤖 Generated with [Claude Code](https://claude.com/claude-code)
jared added 1 commit 2026-11-23 22:52:15 -05:00
CI: a rerun of a main run no longer fails on its own deploy tag
CI / Test (jest) (pull_request) Successful in 22s
CI / Security (npm audit) (pull_request) Successful in 30s
CI / Scan (secrets, workflows, shell) (pull_request) Successful in 1m18s
CI / Integration (api) (pull_request) Successful in 2m16s
CI / UI screenshots (before/after) (pull_request) Successful in 15s
CI / Lint (eslint) (pull_request) Successful in 26s
CI / UI (playwright) (pull_request) Successful in 2m45s
CI / Deploy (pull_request) Skipped
CI / Deploy worker (pull_request) Skipped
CI / Notify (pull_request) Skipped
16a93f02be
A rerun keeps its run number, so "Tag deployed commit" tried to create
deploy-<date>-<run> again, got a conflict, and failed the Deploy job
after a successful deploy, which also skipped Deploy worker. The step
now accepts an existing tag when it marks the same commit, and fails
with the details when it marks another.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
jared merged commit fb5ef452d5 into main 2026-11-23 22:57:53 -05:00
jared deleted branch deploy-tag-idempotent 2026-11-23 22:57:56 -05:00
Sign in to join this conversation.