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

Correct -Dstart-containers guard so that it still works if -DskipTests is set to false in container-image/maven-invoker-way #25253

Conversation

holly-cummins
Copy link
Contributor

This PR does 3 things:

  • Correct the -Dstart-containers guard so that it still works as intended if -DskipTests is set to false on the command line
  • Honour the settings for -DskipTests and -DskipITs if -Dstart-containers is set (so we won't suddenly launch ITs if -DskipITs=true
  • Remove the guard which prevents these tests running on mac/windows. This is living on the edge a bit, since these tests do have problems on mac (#25230). However, I've confirmed that on x86 mac with Docker Desktop, the tests run clean. We should use semantic guards (like -Dstart-containers rather than blanket OS bans), and we should avoid multiple conditions in profile activation since they're OR before mvn 3.2.2, and AND after, which is just upsetting.

…, unless start-containers is also set; do not run ITs unless enabled by the flag
@holly-cummins holly-cummins changed the title Correct -Dstart-containers guard so that it still works if -DskipTests is set to false Correct -Dstart-containers guard so that it still works if -DskipTests is set to false in container-image/maven-invoker-way Apr 29, 2022
@gsmet gsmet merged commit eaa6231 into quarkusio:main May 2, 2022
@quarkus-bot quarkus-bot bot added this to the 2.10 - main milestone May 2, 2022
@holly-cummins holly-cummins deleted the quarkus-integration-test-container-image-invoker-guard branch May 3, 2022 08:45
@holly-cummins
Copy link
Contributor Author

Forgot to link to the issue in my comment; this fixes #25231.

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.

None yet

2 participants