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

Fix warmer memory leak. #2763

Merged
merged 3 commits into from
Nov 29, 2023
Merged

Fix warmer memory leak. #2763

merged 3 commits into from
Nov 29, 2023

Conversation

mxbossard
Copy link
Contributor

Fixes: #2754

Description

Write down images directly into a temp file.
Then move files into final destination.
Add a script to test warmer in boxed memory conditions.

Submitter Checklist

  • Includes unit tests
  • Adds integration tests if needed.

Reviewer Notes

  • The code flow looks good.
  • Unit tests and or integration tests added.

Release Notes

Describe any changes here so maintainer can include it in the release notes, or delete this block.

Examples of user facing changes:
- kaniko adds a new flag `--registry-repo` to override registry

@google-cla
Copy link

google-cla bot commented Sep 27, 2023

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

@mxbossard
Copy link
Contributor Author

Is there à problem with the PR ? Why is it stuck for more than 1 month now ?

Copy link
Collaborator

@aaron-prindle aaron-prindle left a comment

Choose a reason for hiding this comment

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

Sorry for the delay here @mxbossard, this PR is looking good. Just commented that a large commented code block should be removed and then I believe we can merge this.

pkg/cache/warm.go Outdated Show resolved Hide resolved
…Add a script to test warmer in boxed memory conditions. Fixes: #2754
@mxbossard
Copy link
Contributor Author

Hi, Do you plan to merge this soon ?

# limitations under the License.

set -e

Copy link
Collaborator

Choose a reason for hiding this comment

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

Can you add a comment to this script explaining the purpose (eg: test warmer in boxed memory conditions) and an example of how to use it?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I Added a documentation. I also fixed the swallowed error.


set -e

#--entrypoint=/kaniko/warmer \
Copy link
Collaborator

Choose a reason for hiding this comment

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

nit: remove this comment

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Cleaned

@mxbossard
Copy link
Contributor Author

Is it ok for you ?

@aaron-prindle aaron-prindle merged commit e479111 into GoogleContainerTools:main Nov 29, 2023
10 checks passed
@aaron-prindle
Copy link
Collaborator

Merged now, thanks for the fix here and your patience in getting it merged @mxbossard!

@mxbossard
Copy link
Contributor Author

Thank you for your work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Memory Leak in warmer
2 participants