-
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
Exclude Netty's reflection configuration files #29493
Conversation
Scheduled CI runs for native: |
This comment has been minimized.
This comment has been minimized.
Windows run failed with:
I guess I am hitting what Sanne described, I will create two separate build items instead of a single one with a complex regex. |
d9f31bf
to
1916593
Compare
Scheduled CI runs for native: |
This comment has been minimized.
This comment has been minimized.
Windows still failing, this time with:
I will come back to this next week |
1916593
to
084045c
Compare
084045c
to
bd6c0a0
Compare
It looks like windows don't like @Sanne I changed the Oracle-JDBC pattern as well since it was also not working on windows. Please have a look. It looks like an upstream issue to me so I will try to create a simple reproducer not relying on Quarkus and see where it takes me. |
are you sure of that? It was passing the tests AFAIK - or was this being disabled in some way? |
|
||
public class NettyOverrideMetadata { | ||
|
||
static final String NETTY_CODEC_JAR_MATCH_REGEX = "io\\.netty\\.netty-codec"; |
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.
I'm confused as to why you don't need an ending *
- is it also being treated as matching a prefix? Might need to clarify the documentation about that.
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.
Internally native-image
uses Pattern.compile(excludeJar).matcher(path).find()
which matches even without the *
in the beginning or the end.
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.
I think we can also just quote the regex though. I will be able to test it in the next couple of hours.
The only native test being run on windows appears to be resteasy-jackson quarkus/.github/native-tests.json Lines 135 to 140 in 6a2b1b4
and I think it has been that way since day one. |
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.
@zakkak many thanks for clarifying - I remember that before I separated the two exclusions it did fail on Windows, but I guess that was a compilation failure and not a test failure. Nice catch, thanks.
But in this case.. would you mind separating the two fixes? The oracle JDBC one might be important to backport, and even if we don't it would be nice to have it called out in the changelogs.
bd6c0a0
to
bf25791
Compare
bf25791
to
2f7386d
Compare
Done in #29552 I also updated this PR to only include the Netty fix, but it depends on #29552 so I am marking it as draft (again). |
This comment has been minimized.
This comment has been minimized.
2f7386d
to
8018837
Compare
These are causing warnings during native image compilation as they try to access classes that are not on the classpath (e.g. `net.jpountz.lz4.LZ4Exception`). Closes quarkusio#29413
8018837
to
79bd91f
Compare
As mentioned in #29552 (comment)
|
This comment has been minimized.
This comment has been minimized.
Adding for backport to 2.13 because of #30508 |
These are causing warnigns during native image compilation as they try to access classes that are not on the
classpath (e.g.
net.jpountz.lz4.LZ4Exception
).Closes #29413