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

Do not run NativeImageBuildContainerRunnerTest test unless -Dtest-containers is set #25170

Merged

Conversation

holly-cummins
Copy link
Contributor

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 unless start-containers was set. I could have just let the test read the start-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,

  • Running in an IDE runs the test and gives a failure
  • ./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

@quarkus-bot

This comment has been minimized.

@holly-cummins holly-cummins force-pushed the core-deployment-startcontainers-guard branch from d2081aa to 62ae356 Compare April 26, 2022 16:02
@holly-cummins
Copy link
Contributor Author

Updated and squashed. I've tested locally and confirmed the behaviour is still the same (with no podman, fail in IDE, fail with mvn -DskipTests=false -Dstart-containers, pass with just mvn -DskipTests=false.

Copy link
Contributor

@geoand geoand left a comment

Choose a reason for hiding this comment

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

Thanks!

@quarkus-bot

This comment has been minimized.

@quarkus-bot quarkus-bot bot added area/cli Related to quarkus cli (not maven/gradle/etc.) area/dependencies Pull requests that update a dependency file area/devtools Issues/PR related to maven, gradle, platform and cli tooling/plugins area/documentation area/infra-automation anything related to CI, bots, etc. that are used to automated our infrastructure area/logging area/metrics area/security area/tracing area/vertx area/websockets labels Apr 27, 2022
@holly-cummins holly-cummins force-pushed the core-deployment-startcontainers-guard branch from 9df2fed to 0763d8c Compare April 27, 2022 08:42
@holly-cummins holly-cummins force-pushed the core-deployment-startcontainers-guard branch from 0763d8c to 7a466f5 Compare April 27, 2022 08:43
@geoand geoand removed area/documentation area/core area/security area/logging area/vertx area/dependencies Pull requests that update a dependency file area/devtools Issues/PR related to maven, gradle, platform and cli tooling/plugins labels Apr 27, 2022
@geoand geoand added area/testing triage/waiting-for-ci Ready to merge when CI successfully finishes and removed area/infra-automation anything related to CI, bots, etc. that are used to automated our infrastructure area/tracing area/metrics area/cli Related to quarkus cli (not maven/gradle/etc.) area/websockets labels Apr 27, 2022
@holly-cummins
Copy link
Contributor Author

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.)

@quarkus-bot
Copy link

quarkus-bot bot commented Apr 27, 2022

Failing Jobs - Building 7a466f5

Status Name Step Failures Logs Raw logs
✔️ JVM Tests - JDK 11
JVM Tests - JDK 17 Build Failures Logs Raw logs

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

Failed to execute goal org.apache.maven.plugins:maven-invoker-plugin:3.2.2:run (integration-tests) on project quarkus-integration-test-container-image-invoker: 1 build failed. See console output above for details.

📦 integration-tests/container-image/maven-invoker-way/target/it/container-build-with-keycloak-default-realm

org.acme.security.openid.connect.NativeBearerTokenAuthenticationIT.testAdminAccess - More details - Source on GitHub

java.lang.RuntimeException: java.lang.IllegalStateException: Unable to determine the status of the running process. See the above logs for details
Caused by: java.lang.IllegalStateException: Unable to determine the status of the running process. See the above logs for details

org.acme.security.openid.connect.NativeBearerTokenAuthenticationIT.testAdminAccess - More details - Source on GitHub

java.lang.RuntimeException: java.lang.IllegalStateException: Unable to determine the status of the running process. See the above logs for details
Caused by: java.lang.IllegalStateException: Unable to determine the status of the running process. See the above logs for details

@gsmet gsmet merged commit 6149f61 into quarkusio:main Apr 29, 2022
@quarkus-bot quarkus-bot bot added this to the 2.10 - main milestone Apr 29, 2022
@quarkus-bot quarkus-bot bot added kind/bugfix and removed triage/waiting-for-ci Ready to merge when CI successfully finishes labels Apr 29, 2022
@holly-cummins holly-cummins deleted the core-deployment-startcontainers-guard branch April 29, 2022 16:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Test fails when run without docker or podman, even if -Dstart-containers is not set
4 participants