Repository navigation
Conversation
The `docker` profiles of `log4j-layout-template-json-test`, `log4j-mongodb` and `log4j-mongodb4` start their containers in CI even if tests are skipped, e.g. in the reproducibility check, which runs with `-DskipTests=true`. Set `docker.skip` whenever `skipTests` or `maven.test.skip` is set, using one profile per property, since Maven activates profiles on a single property only. Assisted-by: Claude Opus 5.5 <noreply@anthropic.com>
| <id>skip-docker-on-maven-test-skip</id> | ||
| <activation> | ||
| <property> | ||
| <name>maven.test.skip</name> |
Contributor
There was a problem hiding this comment.
Failsafe also skips with -DskipITs, but the containers still start then. Should that get a third profile too?
ramanathan1504
approved these changes
Nov 26, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The
dockerprofiles oflog4j-layout-template-json-test,log4j-mongodbandlog4j-mongodb4start their containers in CI even when tests are skipped. For example, the reproducibility check runs with-DskipTests=truebut still starts Elasticsearch, Logstash and MongoDB. Besides wasting time, this makes the check depend on Docker: in this run onrelease/2.25.6,docker-maven-plugin0.46.0crashed on the Docker 29 daemon of theubuntu-26.04runner image, and the reproducibility check never reached the remaining modules.This PR sets
docker.skip=truewheneverskipTestsormaven.test.skipis set totrue. Maven can only activate a profile on a single property, solog4j-parentgets one profile per property.Testing
CI=true ./mvnw -pl log4j-mongodb docker:start@start-mongo docker:stop@stop-mongowith Docker 29.8.0:docker.skip-DskipTeststruestartandstopdo nothing-Dmaven.test.skiptruestartandstopdo nothing-DskipTests=falseNo changelog entry: the change only affects the build.
🤖 Generated with Claude Code