-
Notifications
You must be signed in to change notification settings - Fork 62
Feature/shadding #379
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
Feature/shadding #379
Conversation
6ea52af
to
83d5a08
Compare
src/main/java/com/microsoft/azure/functions/worker/broker/JavaFunctionBroker.java
Outdated
Show resolved
Hide resolved
a261066
to
2cf6740
Compare
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.
Thanks! Added few comments.
src/main/java/com/microsoft/azure/functions/worker/Constants.java
Outdated
Show resolved
Hide resolved
src/main/java/com/microsoft/azure/functions/worker/broker/JavaFunctionBroker.java
Outdated
Show resolved
Hide resolved
src/main/java/com/microsoft/azure/functions/worker/broker/JavaFunctionBroker.java
Outdated
Show resolved
Hide resolved
src/main/java/com/microsoft/azure/functions/worker/broker/JavaFunctionBroker.java
Show resolved
Hide resolved
src/main/java/com/microsoft/azure/functions/worker/broker/JavaFunctionBroker.java
Outdated
Show resolved
Hide resolved
src/main/java/com/microsoft/azure/functions/worker/broker/JavaFunctionBroker.java
Outdated
Show resolved
Hide resolved
src/main/java/com/microsoft/azure/functions/worker/broker/JavaFunctionBroker.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 reviewed the PR. Could you have a look?
endtoendtests/src/main/java/com/microsoft/azure/functions/endtoend/HttpTriggerTests.java
Outdated
Show resolved
Hide resolved
...oendtests/Azure.Functions.Java.Tests.E2E/Azure.Functions.Java.Tests.E2E/HttpEndToEndTests.cs
Show resolved
Hide resolved
endtoendtests/src/main/java/com/microsoft/azure/functions/endtoend/HttpTriggerTests.java
Outdated
Show resolved
Hide resolved
src/main/java/com/microsoft/azure/functions/worker/Utilities.java
Outdated
Show resolved
Hide resolved
src/main/java/com/microsoft/azure/functions/worker/broker/JavaFunctionBroker.java
Outdated
Show resolved
Hide resolved
src/main/java/com/microsoft/azure/functions/worker/broker/JavaFunctionBroker.java
Outdated
Show resolved
Hide resolved
src/main/java/com/microsoft/azure/functions/worker/broker/JavaFunctionBroker.java
Outdated
Show resolved
Hide resolved
src/main/java/com/microsoft/azure/functions/worker/broker/JavaFunctionBroker.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.
LGTM. Added more comments. Please wait for sign off from @TsuyoshiUshio as well.
One more question: instead of checking in individual jars, is it possible to ship one jar file? |
Got it, this may add more complication to the jar loading. I can have a look but this approach is just temporary solution. |
This PR includes individual jar files in folder |
Got it, this may add more complication to the jar loading. I can have a look but this approach is just temporary solution. |
I missed mentioning this before, can you please update PR description with size of the java worker folder with this change? If it is significantly higher, it is worth combining jars and checking the size. Due to size restrictions on windows VMs, we need to ensure worker size does not change much with this change. |
The nuget will be increased by around 12MB. |
Thanks. Not a blocker then! |
Updated the description to include references to issues to ensure merging PR closed all of them. |
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.
LGTM
8169795
to
5daf76d
Compare
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.
LGTM
This feature is for shading all worker jars.
Only for JAVA 8
To be a backward compatible I freeze all the jars we currently have added to repo.
Then when we load the classloader we will load the worker lib first then customer.
If the user like to reverse this order and their jars takes presence first, they will need to add FUNCTIONS_WORKER_JAVA_LOAD_APP_LIBS True or 1. By this way it will be opt-in scenario.
JAVA 11 will use only the customer jars.
Generated jar after shading:
azure-functions-java-worker.zip
Fixes #340, Fixes #183, Fixes #373, Fixes #368, Fixes #365, Fixes #341