-
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
[Mandrel 23.0] hibernate-orm-panache-kotlin native integration tests fail with 23.0 build and 23.1.2 sdk. #39322
Comments
I think we need to exclude it but only when building with Mandrel 23.0, this is related to #39319 (let's see how that will conclude as well...) |
Same happens with |
To clarify, this got triggered by #39260 because in 23.1 |
I hit similar elsewhere. The extension had a compile scope dependency on graal-sdk (formerly on svm, which quarkus-bom had at provided scope), and so failed to build with the JDK17 native builder image that is based on 23.0.3.0. Changing the graal-sdk dep to provided scope resolved things. |
@gsmet @jerboaa #39372 resolves this specific issue, but I expect it to still trigger when users explicitly add Do we want/need to go that way to ensure Truffle works on Q main with both 23.1 and 23.0? |
No strong feelings either way. I guess since we know polyglot.jar is there for 23.0 we'd be wise to exclude it from the classpath there. |
I'd say we just do the conditional removal of |
Done in #39397 |
An alternative would be to add
I am thinking that this might be better than just removing the dependency from the classpath, as it will notify the user that there is something they should probably be aware of. |
Hmm, some users might end up with a 23.1 polyglot on the class-path and 23.0 from the builder, which in theory could produce weird and hard-to-debug results. |
This is now fixed by #39442 Users explicitly depending on polyglot and using Mandrel 23.0 will need to use the maven scope |
Describe the bug
When running the
hibernate-orm-panache-kotlin
native integration test with newly update Graal SDK (23.1.2) and a Mandrel 23.0 native image builder we see build failures of the like:See:
https://github.com/graalvm/mandrel/actions/runs/8211076023/job/22460083047#step:12:356
Related: #39260 and #37423
It's not clear if we need to exclude the
org.graalvm.polyglot:polyglot
artefact when producing the native sources jar (revert #37423) or it's a Mandrel 23.0 packaging/build bug.The text was updated successfully, but these errors were encountered: