Skip to content

Conversation

@breskeby
Copy link
Contributor

@breskeby breskeby commented Dec 16, 2024

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

@breskeby breskeby requested a review from a team as a code owner December 16, 2024 21:33
@breskeby breskeby added >non-issue :Delivery/Build Build or test infrastructure Team:Delivery Meta label for Delivery team v8.18.0 labels Dec 16, 2024
@breskeby breskeby self-assigned this Dec 16, 2024
@elasticsearchmachine
Copy link
Collaborator

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
@breskeby breskeby force-pushed the make-hdfsfixture-effecient branch from 90d5754 to f0a0d87 Compare December 16, 2024 21:38
@breskeby breskeby changed the title [Build] Make hdfs fixture building faster [Build] Build hdfs fixture faster and less Dec 16, 2024
@breskeby
Copy link
Contributor Author

simple benchmark on my local machine of building those hdfs fixture jars:

Screenshot 2024-12-17 at 00 08 11

@breskeby breskeby added the auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) label Dec 17, 2024
exclude(dependency("commons-codec:commons-codec:.*"))
exclude(dependency("org.apache.httpcomponents:httpclient:.*"))
exclude(dependency("org.apache.httpcomponents:httpcore:.*"))
// exclude(dependency("org.apache.httpcomponents:httpclient:.*"))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can this be removed?

Copy link
Contributor Author

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) {
Copy link
Contributor

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?

Copy link
Contributor Author

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

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

removed

@breskeby breskeby requested a review from mark-vieira December 18, 2024 17:25
@breskeby breskeby enabled auto-merge (squash) December 18, 2024 17:29
@breskeby breskeby merged commit e741fd6 into elastic:main Dec 18, 2024
15 of 16 checks passed
@breskeby breskeby deleted the make-hdfsfixture-effecient branch December 18, 2024 18:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) :Delivery/Build Build or test infrastructure >non-issue Team:Delivery Meta label for Delivery team v8.18.0 v9.0.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants