Description
Currently, the integration test utilities in integration-tests/tests/utils/docker_utils.py use docker ps with name prefix matching to validate running containers (see list_running_containers_with_prefix()).
Proposed Enhancement
Switch to using docker compose ps with the project name specified. This approach would provide:
- Exact container list: Query the precise set of containers managed by the docker compose project, eliminating false positives from containers with similar name patterns
- Exit status validation: Check for containers that should have exited at certain stages of the package run, enabling more comprehensive lifecycle validation
- Better integration: Align with docker compose's native container management and project scoping
Context
Backlinks:
Description
Currently, the integration test utilities in
integration-tests/tests/utils/docker_utils.pyusedocker pswith name prefix matching to validate running containers (seelist_running_containers_with_prefix()).Proposed Enhancement
Switch to using
docker compose pswith the project name specified. This approach would provide:Context
Backlinks: