-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
Do not run NativeImageBuildContainerRunnerTest test unless -Dtest-containers is set #25170
Do not run NativeImageBuildContainerRunnerTest test unless -Dtest-containers is set #25170
Conversation
...yment/src/test/java/io/quarkus/deployment/pkg/steps/NativeImageBuildContainerRunnerTest.java
Outdated
Show resolved
Hide resolved
This comment has been minimized.
This comment has been minimized.
d2081aa
to
62ae356
Compare
Updated and squashed. I've tested locally and confirmed the behaviour is still the same (with no podman, fail in IDE, fail with |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
This comment has been minimized.
This comment has been minimized.
9df2fed
to
0763d8c
Compare
0763d8c
to
7a466f5
Compare
Updated and squashed. (I'm a bit troubled by the vertx CI failures in the earlier build on this PR, but it seems like they have to be unrelated to these changes.) |
Failing Jobs - Building 7a466f5
Full information is available in the Build summary check run. Failures⚙️ JVM Tests - JDK 17 #- Failing: integration-tests/container-image/maven-invoker-way
📦 integration-tests/container-image/maven-invoker-way✖ 📦 integration-tests/container-image/maven-invoker-way/target/it/container-build-with-keycloak-default-realm✖
✖
|
Fixes #25108.
This is a slightly more elaborate fix than I did for #25141. Only one test in the
core/deployment
module needs containers, so I didn't want to disable the whole module unlessstart-containers
was set. I could have just let the test read thestart-containers
system property, but that would result in it being disabled by default if run within an IDE. I figure if you're running a test within an IDE you want it to run, without any extra configuration, so I inverted the properties in the pom so the test is disabled by default when run in maven, but enabled by default when run 'loose'.With the changes, on a docker/podman-free system,
./mvnw -Dquickly -DskipTests=false -Dstart-containers -f core/deployment
runs the test and gives a failure./mvnw -Dquickly -DskipTests=false -f core/deployment
runs all the other tests in the module, and runs clean