-
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
Entity-less native compilation failures #5343
Conversation
Agreed. I gave up on this one a while back for the same reasons as you state - every time I thought I had narrowed this down and did some change to "fix" it, it would show up with some other odd and hard to understand error :) Glad you narrowed it down to this fix. |
Looks good to me, but I don't know enough about the hibernate integration to provide any valuable comments or feedback. |
@Sanne, issue I commented about in #2482 (comment) is no longer visible to me with this fix. |
@rsvoboda thanks for checking! I forgot about that one. Is there another issue I should mark resolved by this one or are we good as it is? |
@geoand anyone can review it. The Hibernate integration is stuff I did myself, so as long as it fixes stuff and nobody sees any risk of regressions, I just need an approval to merge ;) |
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.
It seems absolutely reasonable to me. I'll let @rsvoboda verify that everything checks out with the other issue as well
A suggestion to any reviewer: revert the patch, keep the integration test. Look how horribly it fails :-) |
@Sanne makes sense! |
@Sanne, I'm not 100% sure, but I think native tests that run against the automated CI are selectively enabled (in https://github.com/quarkusio/quarkus/blob/master/ci-templates/stages.yml?). So I think this new integration-test will have to be included in there for it to catch any regressions in native mode. |
Hello @geoand,
Just so I understand how things are run - does this mean that a native image will be created for this integration test, even if it's not explicitly listed in that CI template? So, that CI template just controls which native tests are run against these (always) generated native images? |
Hey @jaikiran No, no native image will be created in this case, just a regular jvm build and test. |
@Sanne didn't find any additional unresolved issue related to this PR / topic |
Oh OK. I thought it showed up in a normal build as well, my bad :) |
Hi @Sanne @geoand, I just landed on this space. To be sure I followed the missing piece for CI is it about adding |
@machi1990 yes, that is correct |
Cool, let me do it. |
Many thanks @machi1990 ! Opened #5369 |
@galderz have a look at the errors this solved - both the "stacktrace" (it's not a stacktrace) I pasted in this PR and the linked issues it resolved. |
Hi, I want to report a problem I think is related to this issue. I have an entity-less application that has First I got After I added the
Quarkus version |
Hi, if you have an Why do you have a dependency on Probably best to open a new issue. |
Hi,
I use it, only my entity object is in a dependency. As you said, it will be better to open a new issue and discuss the issue there. |
Fixes #2482 and Fixes #5262
The culprit was the fact that when there's no entities, we'd bail out early.
In fact we'd abort a little too early, as it would by-pass setting a couple of key static fields which I had intentionally crafted to guide the code analysis of the native-image compiler.
Example symptoms include issues which seem related to entirely different components, such as:
I've also seen this manifest as failures around:
toString()
,equals()
andhashcode
implementationsjavax/security/jacc/PolicyContextException
io.undertow.protocols.alpn.OpenSSLAlpnProvider.setProtocols
The most puzzling failure I got was this one:
at which I almost gave up 🔢 😕