Skip to content

fix(parity): honor healthcheck start_period/interval in dependency wait#436

Merged
Jaro-c merged 1 commit into
developfrom
fix/healthcheck-timing
Jun 17, 2026
Merged

fix(parity): honor healthcheck start_period/interval in dependency wait#436
Jaro-c merged 1 commit into
developfrom
fix/healthcheck-timing

Conversation

@Jaro-c

@Jaro-c Jaro-c commented Jun 17, 2026

Copy link
Copy Markdown
Member

Closes #418 (the remaining items; item 1 — restart anyalways — shipped in #422).

Item 2 — healthcheck timing

wait_healthy polled a hard-coded 2s for retries probes, ignoring the compose interval and start_period. A service with a long start_period could be declared timed-out before it had a chance to boot — diverging from docker-compose depends_on: { condition: service_healthy }. Now polls at the interval (>=1s, else 2s) and adds probes spanning start_period. Defaults unchanged (2s × 30 = 60s) so existing behaviour is preserved. Logic extracted to a pure health_poll_plan with unit tests; depends_on_service_healthy integration test passes on real Podman.

Item 3 — container naming

Documented (not changed): a single-replica service is <project>-<service>; docker-compose v2 always appends -1. Added to docs/docker-migration.md so migrating users know. Changing the scheme would rename/recreate every existing container, so it stays documented rather than altered.

Closes #418.

wait_healthy polled a hard-coded 2s for retries probes, ignoring the
compose healthcheck interval and start_period. A service with a long
start_period (slow boot) could be declared timed-out before it had a
chance to become healthy, diverging from docker-compose depends_on:
service_healthy. Now poll at the interval (>=1s, else 2s) and add extra
probes spanning start_period; defaults are unchanged (2s x 30 = 60s).

Also document the single-replica container-naming divergence (podup omits
the -1 suffix docker-compose v2 always appends) in docker-migration.md.

Closes #418.

Signed-off-by: Jaro-c <75870284+Jaro-c@users.noreply.github.com>
@Jaro-c Jaro-c added type:bug Something broken prio:P2 Medium area:engine labels Jun 17, 2026
@Jaro-c Jaro-c merged commit ab45691 into develop Jun 17, 2026
13 checks passed
@Jaro-c Jaro-c deleted the fix/healthcheck-timing branch June 17, 2026 17:04
Jaro-c added a commit that referenced this pull request Jun 17, 2026
Promote #436 (closes #418) to main. No tag. wait_healthy honors
interval/start_period (defaults unchanged); container-naming divergence
documented. CI-green, real-Podman verified.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:engine prio:P2 Medium type:bug Something broken

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant