Skip to content
This repository was archived by the owner on Nov 19, 2026. It is now read-only.

Revert "Unit test for golang gzip backward compatibility" - #157

Merged
runcom merged 1 commit into
containers:masterfrom
mtrmac:revert-validate_gzip
Nov 23, 2016
Merged

runcom merged 1 commit into
containers:masterfrom
mtrmac:revert-validate_gzip

Conversation

@mtrmac

@mtrmac mtrmac commented Nov 7, 2016

Copy link
Copy Markdown
Collaborator

This reverts #136 .

Already golang 1.6.3 (e.g. Fedora 24) and 1.7 (the test values) differ in gzip output, which makes development on Fedora 24 cumbersome.

To fix the gzip output, we would need to carry a forked version of the gzip compression implementation; looking at https://go.googlesource.com/go/+log/master/src/compress , the idea of following upstream changes and deciding which ones are bugfixes to backport and which ones are improvements to leave out is extremely unattractive.

And of course bugfixes which need backporting may change the output anyway; we simply can’t make a long-term promise that the compressed stream will stay unchanged with an evolving implementation.

@mtrmac

mtrmac commented Nov 16, 2016

Copy link
Copy Markdown
Collaborator Author

@runcom @jwhonce any progress on this?

@runcom

runcom commented Nov 16, 2016

Copy link
Copy Markdown
Member

I'd go with this for the exact reasons you highlighted. LGTM

This reverts commit 08037d5.

Already golang 1.6.3 (e.g. Fedora 24) and 1.7 (the test values) differ
in gzip output, which makes development on Fedora 24 cumbersome.

To fix the gzip output, we would need to carry a forked version of the
gzip compression implementation; looking at
https://go.googlesource.com/go/+log/master/src/compress , the idea of
following upstream changes and deciding which ones are bugfixes to
backport and which ones are improvements to leave out is extremely
unattractive.

And of course bugfixes which need backporting may change
the output anyway; we simply can’t make a long-term promise that the
compressed stream will stay unchanged with an evolving implementation.

Signed-off-by: Miloslav Trmač <[email protected]>
@mtrmac
mtrmac force-pushed the revert-validate_gzip branch from df8bff9 to 3329405 Compare November 23, 2016 17:09
@mtrmac

mtrmac commented Nov 23, 2016 •

Copy link
Copy Markdown
Collaborator Author

Oh well, a week since filing this, 23 days since the initial report, with no sign of a practical long-term solution.

👍

@runcom please consider merging (= giving you one more chance not to).

Approved with PullApprove

@runcom

runcom commented Nov 23, 2016

Copy link
Copy Markdown
Member

totally fine with this, we'll reiterate on this later - maybe with @jwhonce and @imcleod

@runcom
runcom merged commit e03cb44 into containers:master Nov 23, 2016
@mtrmac
mtrmac deleted the revert-validate_gzip branch November 23, 2016 17:11
giuseppe pushed a commit to giuseppe/image that referenced this pull request Jan 24, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants