-
Notifications
You must be signed in to change notification settings - Fork 155
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
Cache output of assembly #1125
Cache output of assembly #1125
Conversation
Previously, the build would rebuild over and over the uber jar with the shaded protobuf3 distribution. With this patch, this is no longer the case, as the output is cached locally.
relates to #1008 |
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 great, Thanks.
Thanks for the PR, @Roiocam fyi this is precisely what I was talking about earlier wrt sbt's inbuilt caching functionality |
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 but lets get approval from @Roiocam before merging to double check nothing is amiss.
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, Thanks.
Thanks for the PR then, merging! |
Previously, the build would rebuild over and over the uber jar with the
shaded protobuf3 distribution. With this patch, this is no longer the
case, as the output is cached locally.
The issue with assembly re-creating the same uber-jar on (nearly) every run was discovered using the Develocity Timeline feature, which displays task executions on different swimlanes.
Before this fix, the assembly task is clearly shown as being a bottleneck in the build process:
After this patch is applied, the bottleneck is gone:
After the bottleneck is gone, common tasks (eg.
test
) start faster: Gathering all tests’ names goes from 3.7s to 3.2s (-15%).