-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Instructions to build/run integration tests in Gradle against native image incorrect #24987
Comments
/cc @glefloch, @quarkusio/devtools |
You added a link to a Zulip discussion, please make sure the description of the issue is comprehensive and doesn't require accessing Zulip.
|
Thanks for reporting this @edeandrea, I think this is the expected behavior.
builds a native executable from inside a container, thus, no |
Yeah I wasn't sure what was expected or not. We definitely need something in the running integration tests section though describing how someone would execute the integration tests against a container image containing a native image. Simply showing
isn't enough in my opinion |
I was about to edit this page of documentation https://quarkus.io/guides/container-image#building to mention that the |
IDK I don't think it can hurt to mention it. I think where it really should be mentioned is on https://quarkus.io/guides/gradle-tooling#running-integration-tests. Maybe https://quarkus.io/guides/gradle-tooling#running-integration-tests can just say something like If you want to run integration tests against a built container image, in addition to running the |
Describe the bug
The Build a container friendly executable guide in the gradle tooling:
Doesn't seem to work unless you also add the
-Dquarkus.container-image.build=true
flag.For example, if I run
it packages the native executable but then
quarkusIntTest
tries to execute the native image (not inside a container).Instead, if I run
Then the container image is built and the integration tests are run against the built image.
See the reproducer:
gradle-test.zip
I'm not sure if this is just a documentation issue (if it was I would have just fixed it) or if something in the Gradle plugin isn't working correctly.
There's also a thread on Zulip where this was discovered: https://quarkusio.zulipchat.com/#narrow/stream/187030-users/topic/Gradle.20quarkusIntTest.3B.20configure.20packaging
Expected behavior
No response
Actual behavior
No response
How to Reproduce?
No response
Output of
uname -a
orver
No response
Output of
java -version
No response
GraalVM version (if different from Java)
No response
Quarkus version or git rev
No response
Build tool (ie. output of
mvnw --version
orgradlew --version
)No response
Additional information
No response
The text was updated successfully, but these errors were encountered: