Skip to content

docs: DEPLOY_HEALTH_URL and ROLLBACK_ON_FAIL (old smoke names removed) - #41

Merged
ROBJkE merged 3 commits into
mainfrom
cursor/deploy-health-url-docs-f12e
Sep 18, 2026
Merged

ROBJkE merged 3 commits into
mainfrom
cursor/deploy-health-url-docs-f12e

Conversation

@ROBJkE

@ROBJkE ROBJkE commented Sep 18, 2026 •

Copy link
Copy Markdown
Contributor

Locked contract (same as parallel CLI / shopware-cd work). Operator-facing post-deploy probe SoT is DEPLOY_HEALTH_URL only. Auto-rollback is ROLLBACK_ON_FAIL. There is no SMOKE_URL alias and no ROLLBACK_ON_SMOKE_FAIL alias.

Companion: Require deploy health on live.

Contract

  • Default probe: APP_URL (trailing / stripped) + /api/_info/health-check (same path as the Compose web healthcheck).
  • Override: DEPLOY_HEALTH_URL (full URL as-is, e.g. loopback). Only this override.
  • SMOKE_URL is removed. Docs do not say it still works. Allowed: one line “do not use SMOKE_URL; removed.”
  • Auto-rollback env is ROLLBACK_ON_FAIL. ROLLBACK_ON_SMOKE_FAIL is removed (no alias). Allowed: one line “do not use ROLLBACK_ON_SMOKE_FAIL; removed.”
  • Live: refuse release if no resolvable probe URL, unless --allow-no-deploy-health / ALLOW_NO_DEPLOY_HEALTH=1.
  • Non-live: probe optional when no URL can be resolved.

What changed

Operator-facing recipe text (post-install.txt, recipe README, repo README):

  • Documents the default APP_URL + /api/_info/health-check probe.
  • Documents DEPLOY_HEALTH_URL as the only override.
  • Live requires a resolvable URL; escape hatch is --allow-no-deploy-health / ALLOW_NO_DEPLOY_HEALTH=1.
  • One-line notice: do not use SMOKE_URL or ROLLBACK_ON_SMOKE_FAIL; removed. Auto-rollback uses ROLLBACK_ON_FAIL.
  • No deprecated-alias / still-works wording.

Tests:

  • Shared deploy_health_docs_ok in tests/fixtures.sh. Docs that present SMOKE_URL or ROLLBACK_ON_SMOKE_FAIL as still working fail. A removal notice is allowed.
  • tests/init-env.test.sh, tests/vps-hardening.test.sh, tests/wrappers.test.sh assert the three recipe docs files.
  • Live deploy fixture sets APP_URL so the default probe resolves once the parallel CLI lands.
  • fyrst-cli behaviour (live refuse, DEPLOY_HEALTH_URL override, leftover SMOKE_URL ignored, staging optional) runs when deploy release --help lists --allow-no-deploy-health; skipped on current 0.2.0.

This recipe is thin (copy-from-package). Overlay bytes live in fyrst-dev/shopware-cd. Tests call fyrst-cli directly. No CLI source changes here.

Out of this PR

  • fyrst-dev/cli — landing in parallel (resolve DEPLOY_HEALTH_URL / APP_URL default / live refuse / --allow-no-deploy-health; do not accept SMOKE_URL; auto-rollback env ROLLBACK_ON_FAIL, no ROLLBACK_ON_SMOKE_FAIL alias).
  • fyrst-dev/shopware-cd overlay — .env.example / deploy/README.md still say optional SMOKE_URL. Follow-up belongs in shopware-cd, not here.

Tests (this revision, fyrst-cli 0.2.0)

Script Result
wrappers.test.sh pass
vps-hardening.test.sh pass (CLI health behaviour skipped until --allow-no-deploy-health; rejects ROLLBACK_ON_SMOKE_FAIL as SoT)
sync-runtime.test.sh pass
sync-dump.test.sh pass
sync-rewrite.test.sh pass
init-env.test.sh docs / DEPLOY_HEALTH_URL + ROLLBACK_ON_FAIL contract pass; 7 .env.local + override identity checks fail on released 0.2.0 (same pre-existing gap as #40; not this change)
Open in Web Open in Cursor 

cursoragent and others added 2 commits September 18, 2026 06:46
Default probe is APP_URL + /api/_info/health-check. Live requires
a resolvable URL. SMOKE_URL is a deprecated alias, not the SoT.

Co-authored-by: ROBJkE <ROBJkE@users.noreply.github.com>
No deprecated alias. Docs may say do not use SMOKE_URL; removed.

Co-authored-by: ROBJkE <ROBJkE@users.noreply.github.com>
@cursor cursor Bot changed the title docs: DEPLOY_HEALTH_URL post-deploy probe (APP_URL health default) docs: DEPLOY_HEALTH_URL only (SMOKE_URL removed) Sep 18, 2026
No old-name alias. SMOKE_URL stays removed.

Co-authored-by: ROBJkE <ROBJkE@users.noreply.github.com>
@cursor cursor Bot changed the title docs: DEPLOY_HEALTH_URL only (SMOKE_URL removed) docs: DEPLOY_HEALTH_URL and ROLLBACK_ON_FAIL (old smoke names removed) Sep 18, 2026
@ROBJkE
ROBJkE marked this pull request as ready for review September 18, 2026 07:01
@ROBJkE
ROBJkE merged commit d181927 into main Sep 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants