Skip to content

Conversation

geruh
Copy link
Contributor

@geruh geruh commented Sep 12, 2025

related to #2425

Rationale for this change

This PR updates the Makefile's test-integration target to cleanup the docker containers by default. Also, adds a variable (KEEP_COMPOSE) that can ignore the cleanup for development purposes. but the setup

Are these changes tested?

yes

Are there any user-facing changes?

no

ifeq ($(KEEP_COMPOSE),1)
CLEANUP_COMMAND = echo "Keeping containers running for debugging (KEEP_COMPOSE=1)"
else
CLEANUP_COMMAND = docker compose -f dev/docker-compose-integration.yml down -v --remove-orphans 2>/dev/null || true
Copy link
Contributor

Choose a reason for hiding this comment

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

Do you think it could be worth while to also support both docker compose and docker-compose commands?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Hey @gabeiglio, I'd say let's stay with compose v2 (docker compose) support, since the v1 (docker-compose) is EOL, and docker keeps an alias so old scripts continue to work already.

WDYT?

Copy link
Contributor

Choose a reason for hiding this comment

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

I would not be in favor of supporting the EOL docker-compose

Copy link
Contributor

@Fokko Fokko left a comment

Choose a reason for hiding this comment

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

I'm okay with this change since it is cleaner to close the containers. Thanks for making it configurable, since I like to be able to run tests in my IDEA for debugging (if something fails).

Copy link
Contributor

@kevinjqliu kevinjqliu left a comment

Choose a reason for hiding this comment

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

Ran make test-integration locally, confirmed docker containers are gone.

Thanks!

@kevinjqliu kevinjqliu merged commit db89d13 into apache:main Sep 16, 2025
10 checks passed
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.

4 participants