-
Notifications
You must be signed in to change notification settings - Fork 2
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
create patch from .tar instead of .tar.gz #93
Closed
Closed
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
and enable use of the compresslevel and mtime arguments
work in progres...
this provides greater control and allows us to create reproducible gzip files i.e. without filename in the header, and with mtime set to zero
ALmost there, just need to work around python/cpython#112346 |
to reproduce python/cpython#112346
This was referenced Feb 5, 2024
Closed
closing this in favor of #105 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The current implementation creates patches from the diff between subsequent gzipped archives (
.tar.gz
).This leads to excessive patch sizes, because small changes in the source can lead to large changes in the gzip-compressed archives. As a result, patches become practically useless.
The new solution adopted in this PR is to create patches from the uncompressed
.tar
files. This leads to much smaller diffs, making patches useful again.Note that the archives are still compressed using gzip, in order to save bandwidth and storage space, but they are decompressed before patching, and re-compressed after patching.
One drawback is that patch creation, on the repo-side, now takes a lot longer, simply because an uncompressed archive is (much) larger than a compressed one. Also we are more likely to run into memory size limits, see e.g. 1, 2:
fixes #69