potiuk commented on code in PR #31181:
URL: https://github.com/apache/airflow/pull/31181#discussion_r1190714484
##########
docker_tests/test_docker_compose_quick_start.py:
##########
@@ -154,9 +175,16 @@ def test_trigger_dag_and_wait_for_result(tmp_path_factory,
monkeypatch):
except Exception:
print(f"Current working directory: {os.getcwd()}")
run_command(["docker", "version"])
- run_command(["docker-compose", "version"])
+ run_command([*compose_command, "version"])
run_command(["docker", "ps"])
- run_command(["docker-compose", "logs"])
+ run_command([*compose_command, "logs"])
+ for container in ALL_CONTAINERS:
+ print("Health check for {container}")
+ result = run_command(
+ ["docker", "inspect", "--format", "{{json .State}}",
container], return_output=True
+ )
+ pprint(result)
raise
finally:
- run_command(["docker-compose", "down", "--volumes"])
+ if not os.environ.get("SKIP_DOCKER_COMPOSE_DELETION"):
Review Comment:
Good idea.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]