-
Notifications
You must be signed in to change notification settings - Fork 25.6k
[Build] Build hdfs fixture faster and less #118801
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
Conversation
|
Pinging @elastic/es-delivery (Team:Delivery) |
The building of the shadowed hdfs2 and hdfs3 fixtures takes quite long time due to being 51 and 80mb in size. By removing non used dependencies from the shadow jar creation we can speed up this significantly
90d5754 to
f0a0d87
Compare
| exclude(dependency("commons-codec:commons-codec:.*")) | ||
| exclude(dependency("org.apache.httpcomponents:httpclient:.*")) | ||
| exclude(dependency("org.apache.httpcomponents:httpcore:.*")) | ||
| // exclude(dependency("org.apache.httpcomponents:httpclient:.*")) |
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.
Can this be removed?
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.
removed
| } | ||
| } | ||
|
|
||
| tasks.register('showHdfs3Jar', Copy) { |
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 don't see what these tasks are used for? Did you add them just to debug what was in these configurations?
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.
cleaning up. only used for some debugging
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.
removed

The building of the shadowed hdfs2 and hdfs3 fixtures takes quite long time due to being 51 and 80mb in size.
By removing non used dependencies from the shadow jar creation we can speed up this significantly.
Also by tweaking the dependency definitions in the dependent projects we can avoid building the expensive shadowed jars for compile dependencies. this safes us a lot especially for precommit checks