Skip to content
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

Use io.copy for build context compression #5719

Merged
merged 1 commit into from
Jan 3, 2025

Conversation

dmcgowan
Copy link
Contributor

@dmcgowan dmcgowan commented Jan 3, 2025

The use of pools here is unnecessary and creates a code dependency on moby library which will move to internal.

The pool does not provide any value here since it is only done for a single operation and unlikely performed alongside other operations which are re-using the buffers many times between garbage collections.

@codecov-commenter
Copy link

codecov-commenter commented Jan 3, 2025

Codecov Report

Attention: Patch coverage is 0% with 1 line in your changes missing coverage. Please review.

Project coverage is 59.52%. Comparing base (7138107) to head (7b37f30).
Report is 2 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #5719   +/-   ##
=======================================
  Coverage   59.52%   59.52%           
=======================================
  Files         346      346           
  Lines       29381    29381           
=======================================
  Hits        17488    17488           
  Misses      10923    10923           
  Partials      970      970           

Copy link
Member

@Benehiko Benehiko left a comment

Choose a reason for hiding this comment

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

A test is failing with

#15 5.009 ERROR: Vendor result differs. Vendor your package with "make -f docker.Makefile vendor"

Other than that it LGTM :)

@thaJeztah
Copy link
Member

Ah! Thanks; missed that you opened a PR (we were discussing this during the maintainers call yesterday)

Let me do a quick push to fix the vendor issue

The use of pools here is unnecessary and creates a code dependency on
moby library which will move to internal.

The pool does not provide any value here since it is only done for a
single operation and unlikely performed in alongside other operations
which are re-using the buffers many times between garbage collections.

Signed-off-by: Derek McGowan <[email protected]>
Signed-off-by: Sebastiaan van Stijn <[email protected]>
@thaJeztah thaJeztah force-pushed the build-context-io-copy branch from a8d1b43 to 7b37f30 Compare January 3, 2025 12:45
@thaJeztah thaJeztah added this to the 28.0.0 milestone Jan 3, 2025
Copy link
Member

@thaJeztah thaJeztah left a comment

Choose a reason for hiding this comment

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

LGTM

@thaJeztah thaJeztah merged commit d1c7653 into docker:master Jan 3, 2025
89 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants