-
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
Draft support for AWT image resizing #20148
Conversation
The configuration files generated by |
4ac6d61
to
b937102
Compare
This workflow status is outdated as a new workflow run has been triggered. Failing Jobs - Building b937102
Failures⚙️ Initial JDK 11 Build #- Failing: core/deployment
! Skipped: core/test-extension/deployment core/test-extension/runtime devtools/bom-descriptor-json and 605 more 📦 core/deployment✖ |
b937102
to
1aad280
Compare
+1, I think it makes total sense to introduce a AWT extension instead |
This workflow status is outdated as a new workflow run has been triggered. Failing Jobs - Building 1aad280
Full information is available in the Build summary check run. Failures⚙️ Native Tests - Main #- Failing: integration-tests/main
📦 integration-tests/main✖
⚙️ Native Tests - Misc2 #- Failing: integration-tests/tika
📦 integration-tests/tika✖ ⚙️ Native Tests - Security3 #- Failing: integration-tests/vault-agroal
📦 integration-tests/vault-agroal✖
✖
✖
⚙️ Native Tests - Windows - hibernate-validator #- Failing: integration-tests/hibernate-validator
📦 integration-tests/hibernate-validator✖ |
I'm looking at the test failures. |
This workflow status is outdated as a new workflow run has been triggered. Failing Jobs - Building 1aad280
Full information is available in the Build summary check run. Failures⚙️ Native Tests - Main #- Failing: integration-tests/main
📦 integration-tests/main✖
⚙️ Native Tests - Misc2 #- Failing: integration-tests/tika
📦 integration-tests/tika✖ ⚙️ Native Tests - Misc4 #- Failing: integration-tests/gradle
📦 integration-tests/gradle✖
⚙️ Native Tests - Windows - hibernate-validator #- Failing: integration-tests/hibernate-validator
📦 integration-tests/hibernate-validator✖ |
Any ideas on how to deal with situations like this going forward?
The issue is that if we push |
It could be that, rather than using the |
hi @galderz ! That would be e.g. see Lines 63 to 67 in 5fab70f
|
Unfortunately emitting |
@geoand Could you work on that bit in parallel? I've just verified that with this, the Tika tests pass:
I just added |
I don't like the idea of offering an approach based on packages. Couldn't we list the individual classes?
|
The current build item for classes results in |
BTW @galderz : when it's a static well known list such as in this case, rather than relying on the build items which will dynamically generate an AutomaticFeature during the Quarkus build, you might as well just create an AutomaticFeature ... KISS and it would allow you to use packages - if you really must :) |
I completely agree - we should avoid doing the packages thing if possible. |
I'm not going to track individual classes. My experiment will focus on packages. Feel free to further tune it for |
I've pushed a couple of commits to fix the Are the gradle native tests flaky? It seems to complain that The native failures for hibernate validator on Windows don't know either. Let's see if they're still present after the update. |
Some of the tests are flaky indeed :( |
this should be in a .awt/.java2d extension rather than in quarkus core should it not? then we can also mark it experimental :) |
Failing Jobs - Building 9d5d2ab
Full information is available in the Build summary check run. Failures⚙️ JVM Tests - JDK 11 Windows #- Failing: extensions/amazon-lambda/deployment
! Skipped: docs extensions/amazon-lambda-http/deployment extensions/amazon-lambda-rest/deployment and 6 more 📦 extensions/amazon-lambda/deployment✖
⚙️ JVM Tests - JDK 16 #📦 extensions/amazon-lambda/deployment✖
⚙️ Native Tests - Windows - hibernate-validator #- Failing: integration-tests/hibernate-validator
📦 integration-tests/hibernate-validator✖ |
Superseded by #20239 |
Draft PR to fix #19789.
To enable AWT image resizing, it does a couple of things:
java
,javax
, andsun
packages to be runtime initialized. The rest of the code is build time initialized as usual.-agentlib:native-image-agent=config-output-dir=META-INF/native-image
. I wonder if, rather than havingJava2DProcessor
incore/deployment
, it would make more sense to have this as an extension? E.g. anextension/awt
where we can put all this things and people optionally depend on it.