Skip to content

- podman_compose.py - Replaces the single batched podman wait cal… - #1479

Merged
p12tic merged 1 commit into
containers:mainfrom
allen-munsch:ux/per-container-wait
Jul 17, 2026
Merged

- podman_compose.py - Replaces the single batched podman wait cal…#1479
p12tic merged 1 commit into
containers:mainfrom
allen-munsch:ux/per-container-wait

Conversation

@allen-munsch

@allen-munsch allen-munsch commented Jun 20, 2026

Copy link
Copy Markdown
Contributor

…l in check_dep_conditions with

per-container asyncio.gather waits. Each container gets its own podman wait --condition=<cond> <container> call with independent retry loops, enabling healthcheck support on podman >= 4.6.0.

  • tests/unit/test_depends_on.py - 8 new async unit tests covering:
    • Empty deps - early return, no waits
    • Single condition, two containers - two individual podman wait calls
    • Two conditions, one container each - correct --condition per call
    • CalledProcessError on first call - retry, eventually succeeds
    • HEALTHY dep on podman 4.5.0 - skipped (no wait calls)
    • UNHEALTHY dep on podman 4.5.0 - skipped (mirror)
    • HEALTHY on podman 4.6.0 - waits normally
    • podman_version=None - healthcheck proceeds (short-circuit edge case)
    • newsfragments/check_dep_conditions_asyncio_gather.change - changelog fragment

@allen-munsch

Copy link
Copy Markdown
Contributor Author

This is a follow up, split out of: #1476

Comment thread tests/unit/test_depends_on.py Outdated

@p12tic p12tic left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, just please clean up test assertions.

@allen-munsch
allen-munsch force-pushed the ux/per-container-wait branch from a33b05e to 195835b Compare June 20, 2026 18:06
@allen-munsch

Copy link
Copy Markdown
Contributor Author

took >10 seconds on the runner

possibly some falkiness?

@allen-munsch
allen-munsch requested a review from p12tic June 20, 2026 18:57
@p12tic
p12tic force-pushed the ux/per-container-wait branch from 195835b to 4378250 Compare June 22, 2026 20:54
@p12tic

p12tic commented Jun 22, 2026

Copy link
Copy Markdown
Collaborator

Rebased to see if flaky test resolves itself.

@p12tic
p12tic force-pushed the ux/per-container-wait branch from 4378250 to 527b0ff Compare July 14, 2026 12:06
@p12tic

p12tic commented Jul 14, 2026

Copy link
Copy Markdown
Collaborator

Rebased to fix merge conflict.

@allen-munsch

Copy link
Copy Markdown
Contributor Author

i'll take a loook

….gather` waits.

Each container gets its own `podman wait --condition=<cond> <container>`
call with independent retry loops, enabling healthcheck support on podman >= 4.6.0.
- `tests/unit/test_depends_on.py` - 8 new async unit tests covering:
  - Empty deps - early return, no waits
  - Single condition, two containers - two individual `podman wait` calls
  - Two conditions, one container each - correct `--condition` per call
  - `CalledProcessError` on first call - retry, eventually succeeds
  - HEALTHY dep on podman 4.5.0 - skipped (no wait calls)
  - UNHEALTHY dep on podman 4.5.0 - skipped (mirror)
  - HEALTHY on podman 4.6.0 - waits normally
  - `podman_version=None` - healthcheck proceeds (short-circuit edge case)
  - `newsfragments/check_dep_conditions_asyncio_gather.change` - changelog fragment

Signed-off-by: allen-munsch <james.a.munsch@gmail.com>
@allen-munsch
allen-munsch force-pushed the ux/per-container-wait branch from 527b0ff to 855794e Compare July 14, 2026 19:41
@p12tic

p12tic commented Jul 17, 2026

Copy link
Copy Markdown
Collaborator

i'll take a loook

Oh, it was already OK. I just left the tests to run and didn't return back. Thanks anyway!

@p12tic
p12tic merged commit fa5c9db into containers:main Jul 17, 2026
33 checks passed
@allen-munsch
allen-munsch deleted the ux/per-container-wait branch July 17, 2026 18:52
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