-
Notifications
You must be signed in to change notification settings - Fork 30
Space and Time Reduction #60
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
base: main
Are you sure you want to change the base?
Space and Time Reduction #60
Conversation
94603a7 to
18ae79c
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.
one question otherwise looks awesome. Thanks @matthewjmarangoni!
|
Caching can be used to help builds continue to run if a resource is offline and having just experienced an outage of the Also cleaned up a straggler that was removing index metadata. |
1e8213e to
d66de84
Compare
|
Changing the locking mechanism for apt caches supports multiple writers and yields some time reduction. |
Cache packages, remove unused packages, and prevent installation of apt recommended packages.
d4a4831 to
0a438f7
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.
Performed full review of 330685e...0a438f7
6 files reviewed | 0 comments | Review on Mesa | Edit Reviewer Settings
d91a31b to
2d40710
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.
Performed full review of 330685e...2d40710
Tip
⚡ Quick Actions
This review was generated by Mesa.
Actions:
Slash Commands:
/review- Request a full code review/review latest- Review only changes since the last review/describe- Generate PR description. This will update the PR body or issue comment depending on your configuration/help- Get help with Mesa commands and configuration options
6 files reviewed | 6 comments | Review on Mesa | Edit Reviewer Settings
|
@matthewjmarangoni let me know when you want another review! Would like to get this one over the finish line |
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.
Performed full review of 330685e...992f8fd
Tip
⚡ Quick Actions
This review was generated by Mesa.
Actions:
Slash Commands:
/review- Request a full code review/review latest- Review only changes since the last review/describe- Generate PR description. This will update the PR body or issue comment depending on your configuration/help- Get help with Mesa commands and configuration options
6 files reviewed | 6 comments | Review on Mesa | Edit Reviewer Settings
@rgarcia as long as that answer for the previous question you had was sufficient, it should be ready now that other issues have been 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.
Performed full review of 330685e...992f8fd
Tip
⚡ Quick Actions
This review was generated by Mesa.
Actions:
Slash Commands:
/review- Request a full code review/review latest- Review only changes since the last review/describe- Generate PR description. This will update the PR body or issue comment depending on your configuration/help- Get help with Mesa commands and configuration options
6 files reviewed | 7 comments | Review on Mesa | Edit Reviewer Settings
This is a pass to reduce build times and image sizes. The impact varies but the general expectation is improvement.
Image size reductions of 18% - 30% and build time reductions of 7% - 35% were found. Some results were greater yet less consistent and should not be expected.
Changes to achieve this include:
apt,npm,go, staticffmpegbuildsaptconfiguration changed to prevent automatic cache removal and to preserve downloadsaptpackages are no longer installedManual testing was done. Further testing is requested to verify impact and functionality. Particularly of interest are differing and constrained environments such as CI/CD pipelines.
TL;DR
Reduced Docker image sizes and build times by implementing widespread caching for
apt,npm,go, andffmpegbuilds.Why we made these changes
To reduce build times and image sizes for faster, more efficient CI/CD pipelines and local development. Image size reductions of 18% - 30% and build time reductions of 7% - 35% were observed in testing.
What changed?
--mount=type=cache) across multiple Dockerfiles to cache dependencies forapt,npm,go, and staticffmpegbuilds.aptUsage: Configuredaptto retain its cache and consistently used the--no-install-recommendsflag to prevent installing unnecessary packages, minimizing image size.gpg-agentto ensure build reliability..mise.tomlto.gitignore.Validation
Manual testing was done. Further testing is requested to verify impact and functionality, particularly in differing and constrained environments such as CI/CD pipelines.
Description generated by Mesa. Update settings