Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Add --wait-timeout option for docker.compose.up #573

Merged

Conversation

Taragolis
Copy link
Contributor

This PR add support for wait timeout, https://docs.docker.com/reference/cli/docker/compose/up/#options

--wait-timeout		Maximum duration to wait for the project to be running|healthy

@gabrieldemarmiesse
Copy link
Owner

I seems that the version of docker compose we use in the CI is not recent enough. Maybe we should update it?

@Taragolis
Copy link
Contributor Author

Yeah it added in v2.17.0, let me check locally that compose tests pass in that version

@Taragolis
Copy link
Contributor Author

I've check it locally with 2.17.0 and 2.17.2 and two tests was failed

================================================================== short test summary info ===================================================================
FAILED tests/python_on_whales/components/test_compose.py::test_project_directory_env_files - python_on_whales.exceptions.DockerException: The docker command executed was `/usr/bin/docker compose --file /home/taragolis/Projects/common/python-on-wh...
FAILED tests/python_on_whales/components/test_compose.py::test_compose_logs_follow - assert 1 >= 5
========================================================== 2 failed, 71 passed in 312.91s (0:05:12) ==========================================================

@Taragolis
Copy link
Contributor Author

I could have a look on this tests and try to adopt tests to the newer version of docker-compose. Any preference to the target version of docker-compose?

@gabrieldemarmiesse
Copy link
Owner

The latest one is fine by me

@gabrieldemarmiesse
Copy link
Owner

gabrieldemarmiesse commented Mar 24, 2024

@MisterOwlPT updated the compose version in the CI, let's see if that fixes the tests here

Edit: Noice

Copy link
Owner

@gabrieldemarmiesse gabrieldemarmiesse left a comment

Choose a reason for hiding this comment

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

Many thanks for the pull request!

@gabrieldemarmiesse gabrieldemarmiesse enabled auto-merge (squash) March 29, 2024 23:40
@gabrieldemarmiesse
Copy link
Owner

dang this PR is cursed

@gabrieldemarmiesse gabrieldemarmiesse merged commit a10959c into gabrieldemarmiesse:master Apr 10, 2024
35 checks passed
@Taragolis Taragolis deleted the compose-up-wait-timeout branch April 10, 2024 22: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