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

Update test to pass w/ pierrec/lz4 4.1.14 #1662

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

eevans
Copy link

@eevans eevans commented Oct 28, 2022

The lz4.UncompressBlock(...) was changed in 4.1.14 to be compatible with the asm decoders. As a result, this test will now fail.

See: pierrec/lz4#160 & pierrec/lz4#163

Copy link
Contributor

@martin-sucha martin-sucha left a comment

Choose a reason for hiding this comment

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

Thanks for the pull request!

lz4/go.mod Outdated
@@ -3,6 +3,6 @@ module github.com/gocql/gocql/lz4
go 1.16

require (
github.com/pierrec/lz4/v4 v4.1.8
github.com/pierrec/lz4/v4 v4.1.14
Copy link
Contributor

Choose a reason for hiding this comment

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

Did you intend to bump the version in this commit? The commit message only mentions updating the test, not the dependency.

We could upgrade the version (even to 4.1.17) since there seem to be only bugfixes in pierrec/lz4@v4.1.8...v4.1.17, but in that case the commit message should probably say something like

Upgrade pierrec/lz4 to 4.1.17

There are bug fixes in the new version.

The `lz4.UncompressBlock(...)` was changed in 4.1.14 to be compatible
with the asm decoders.
As a result, TestLZ4Compressor now failed since this version.

See: https://github.com/pierrec/lz4/issues/160 & https://github.com/pierrec/lz4/issues/163

Please either update the commit message or remove the version bump.

Copy link
Author

Choose a reason for hiding this comment

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

Please either update the commit message or remove the version bump.

Done

Copy link
Contributor

Choose a reason for hiding this comment

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

Thanks! Now I see that the commit message mentions v4.1.17, but there is still v4.1.14 in go.mod. Please change the version in go.mod to 4.1.17 so that it matches the commit message.

Copy link
Author

Choose a reason for hiding this comment

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

Thanks! Now I see that the commit message mentions v4.1.17, but there is still v4.1.14 in go.mod. Please change the version in go.mod to 4.1.17 so that it matches the commit message.

Gah, sorry; I got some wires crossed there it seems.

There are bug fixes in the new version.

The `lz4.UncompressBlock(...)` was changed in 4.1.14 to be compatible
with the asm decoders.  As a result, `TestLZ4Compressor` was updated
to pass under the new semantics (see: pierrec/lz4#160 and
pierrec/lz4#163)
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.

None yet

2 participants