-
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
Do not validate configs in unused beans #19965
Conversation
This workflow status is outdated as a new workflow run has been triggered. Failing Jobs - Building 66e48fc
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✖
|
extensions/arc/deployment/src/main/java/io/quarkus/arc/deployment/ConfigBuildStep.java
Outdated
Show resolved
Hide resolved
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've added one minor comment. Otherwise looks good!
This workflow status is outdated as a new workflow run has been triggered. Failing Jobs - Building 75043a5
Full information is available in the Build summary check run. Failures⚙️ JVM Tests - JDK 16 #- Failing: extensions/smallrye-reactive-messaging-kafka/deployment
! Skipped: docs integration-tests/kubernetes/quarkus-standard-way-kafka integration-tests/reactive-messaging-kafka and 1 more 📦 extensions/smallrye-reactive-messaging-kafka/deployment✖
|
Will this make it into 2.3? |
Yes. I need to update this for something else and it should be good to go. |
75043a5
to
ea0adf2
Compare
This workflow status is outdated as a new workflow run has been triggered. Failing Jobs - Building ea0adf2
Full information is available in the Build summary check run. Failures⚙️ JVM Tests - JDK 11 #- Failing: extensions/hibernate-validator/deployment
! Skipped: docs extensions/agroal/deployment extensions/apicurio-registry-avro/deployment and 187 more 📦 extensions/hibernate-validator/deployment✖
⚙️ JVM Tests - JDK 11 Windows #- Failing: extensions/hibernate-validator/deployment
! Skipped: docs extensions/agroal/deployment extensions/apicurio-registry-avro/deployment and 187 more 📦 extensions/hibernate-validator/deployment✖
⚙️ JVM Tests - JDK 17 #- Failing: extensions/hibernate-validator/deployment
! Skipped: docs extensions/agroal/deployment extensions/apicurio-registry-avro/deployment and 187 more 📦 extensions/hibernate-validator/deployment✖
|
ea0adf2
to
4b42c1f
Compare
This workflow status is outdated as a new workflow run has been triggered. Failing Jobs - Building 4b42c1f
Full information is available in the Build summary check run. Failures⚙️ Gradle Tests - JDK 11 Windows #- Failing: integration-tests/gradle
📦 integration-tests/gradle✖
|
There are some conflicting files. @radcortez Could you resolve the conflicts first? I will need to check out the PR locally because the list of changes is quite long... |
4b42c1f
to
727920a
Compare
Done. The additional changes are to cover |
extensions/arc/deployment/src/main/java/io/quarkus/arc/deployment/ConfigBuildStep.java
Outdated
Show resolved
Hide resolved
extensions/arc/deployment/src/main/java/io/quarkus/arc/deployment/ConfigBuildStep.java
Show resolved
Hide resolved
extensions/arc/deployment/src/main/java/io/quarkus/arc/deployment/ConfigBuildStep.java
Outdated
Show resolved
Hide resolved
extensions/arc/deployment/src/main/java/io/quarkus/arc/deployment/ConfigBuildStep.java
Outdated
Show resolved
Hide resolved
@mkouba thanks for the review. I've tried to address all the comments. |
This workflow status is outdated as a new workflow run has been triggered. Failing Jobs - Building 6378f80
Full information is available in the Build summary check run. Failures⚙️ Native Tests - Data1 #- Failing: integration-tests/hibernate-orm-tenancy/connection-resolver-legacy-qualifiers
📦 integration-tests/hibernate-orm-tenancy/connection-resolver-legacy-qualifiers✖
✖
|
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.
Looks good.
Thanks! Sorry for the bumps! |
@radcortez any chance this will be in 2.3.1? |
Not likely, but 2.4.0 is not far. I'm sorry for the inconvenience :( |
This removes config validations and registrations of mappings / properties if the beans are unused. This may break existent applications if they only use programmatic lookups. In this case, mappings / properties need to be annotated with
@Unremoveable
or use the arc config to not remove beans.