Repository navigation
feat: require live post-deploy health probe - #38
Merged
Merged
Conversation
Resolve the probe from DEPLOY_HEALTH_URL or APP_URL + /api/_info/health-check. Live refuses without a URL unless --allow-no-deploy-health / ALLOW_NO_DEPLOY_HEALTH=1. Rename ROLLBACK_ON_SMOKE_FAIL to ROLLBACK_ON_FAIL (no alias). Do not read SMOKE_URL. Co-authored-by: ROBJkE <ROBJkE@users.noreply.github.com>
ROBJkE
marked this pull request as ready for review
September 18, 2026 07:01
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Locked contract
APP_URL, strip trailing slash, append/api/_info/health-check(Shopware Core health path; same as compose container healthcheck path).DEPLOY_HEALTH_URL— full URL used as-is (e.g. loopbackhttp://127.0.0.1:8000/api/_info/health-check).SMOKE_URL. The old name is not read, not aliased, and does not drive the probe.SHOPWARE_DEPLOY_ENVislive(case-insensitive), release and rollback refuse at bootstrap if neitherDEPLOY_HEALTH_URLnor a non-emptyAPP_URLcan produce a probe URL.--allow-no-deploy-healthand/orALLOW_NO_DEPLOY_HEALTH=1(truthy). Documented as ops escape only.APP_URLon staging/dev.DEPLOY_HEALTH_URL(logs, errors, dry-run, help).curl -fsS, 30 attempts, 2s sleep. Auto-rollback on probe failure usesROLLBACK_ON_FAIL(explicit 1/0 wins; unset → on for live, off otherwise). No alias forROLLBACK_ON_SMOKE_FAIL.recipes/shopware-cdis not changed in this PR.APP_URL empty vs whitespace
APP_URL=andAPP_URL=<spaces>in a.envfile are both empty.APP_URLthat is only whitespace is still non-empty forShopEnv::get/PROCESS_WINS, but probe resolve trims it and cannot produce a URL — live still refuses.IMAGE_TAGstill wins over.envIMAGE_TAG=latest(existing tests kept).Test plan
cargo test --locked(unit + integration): URL resolve, trailing-slash join, live refuse, escape hatch,SMOKE_URLignored,ROLLBACK_ON_FAIL(old name ignored).