GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Improve `LZ4FrameIOStreamTest` test by Marcono1234 · Pull Request #23 · yawkat/lz4-java

Conversation

@Marcono1234

@Marcono1234 Marcono1234 commented Dec 7, 2025 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
  • Fix temp file setup always using 0xDEADBEEF as value, discarding data from Random
  • When running in CI ensure that LZ4 CLI is available (related to Use gcc included in Windows image for release build #22 (comment))

Interestingly the macOS 15 image seems to have the LZ4 CLI preinstalled, despite it not being mentioned in https://github.com/actions/runner-images/blob/macos-15/20251203.0058/images/macos/macos-15-Readme.md

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@Marcono1234
Improve LZ4FrameIOStreamTest test
51b4623
- Fix temp file setup always using `0xDEADBEEF` as value, discarding data from Random
- When running in CI ensure that LZ4 CLI is available
Marcono1234
Marcono1234 commented Dec 7, 2025
View reviewed changes
Comment thread src/test/net/jpountz/lz4/LZ4FrameIOStreamTest.java
Comment on lines -109 to -113
final IntBuffer intBuffer = ByteBuffer.wrap(buff).order(ByteOrder.LITTLE_ENDIAN).asIntBuffer();
rnd.nextBytes(buff);
while (intBuffer.hasRemaining()) {
intBuffer.put(fill);
}

@Marcono1234 Marcono1234 Dec 7, 2025 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Author

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

As mentioned in the PR / commit description, it looks like this code here effectively discarded what rnd.nextBytes(buff); did because that modified buff directly but intBuffer was unaffected (I am also not sure what the original intention here was).

So it seems the previous behavior was that it created a file filled only with the value of fill (0xDEADBEEF), which is probably not that useful for compression / decompression testing?

(Unless I am overlooking something here?)

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@Marcono1234
Fail fast if LZ4 CLI is not available for CI
1e8fb75
Marcono1234
Marcono1234 commented Dec 8, 2025
View reviewed changes
Comment thread src/test/net/jpountz/lz4/LZ4FrameIOStreamTest.java
Comment on lines +138 to +141
// Check if this is running in CI (env CI=true), see https://docs.github.com/en/actions/reference/workflows-and-actions/variables#default-environment-variables
if (!hasLz4CLI && "true".equals(System.getenv("CI"))) {
Assert.fail("LZ4 CLI is not available, but should be for CI run");
}

@Marcono1234 Marcono1234 Dec 8, 2025

Copy link
Copy Markdown
Author

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

Here is an example actions run which shows that this works as desired:
https://github.com/Marcono1234/lz4-java/actions/runs/20029422374/job/57434525412#step:6:917

(for that run I had intentionally removed the LZ4 CLI from the Windows build)

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@yawkat
yawkat merged commit 1dfbefd into yawkat:main Dec 8, 2025
@Marcono1234
Marcono1234 deleted the lz4-cli-test branch December 9, 2025 21:01
@yawkat yawkat added the enhancement New feature or request label Dec 16, 2025
mergify Bot added a commit to ArcadeData/arcadedb that referenced this pull request Dec 21, 2025
@mergify
chore(deps): bump at.yawk.lz4:lz4-java from 1.10.1 to 1.10.2 [skip ci]
dbc6969
Bumps [at.yawk.lz4:lz4-java](https://github.com/yawkat/lz4-java) from 1.10.1 to 1.10.2.
Release notes

*Sourced from [at.yawk.lz4:lz4-java's releases](https://github.com/yawkat/lz4-java/releases).*

> lz4-java v1.10.2
> ----------------
>
> What's Changed
> --------------
>
> * Reproducible build by [`@​yawkat`](https://github.com/yawkat) in [yawkat/lz4-java#15](https://redirect.github.com/yawkat/lz4-java/pull/15)
> * Run tests for pull requests again by [`@​Marcono1234`](https://github.com/Marcono1234) in [yawkat/lz4-java#17](https://redirect.github.com/yawkat/lz4-java/pull/17)
> * Add `.git-versioned-pom.xml` to .gitignore by [`@​Marcono1234`](https://github.com/Marcono1234) in [yawkat/lz4-java#16](https://redirect.github.com/yawkat/lz4-java/pull/16)
> * Fix source code formatting by [`@​Marcono1234`](https://github.com/Marcono1234) in [yawkat/lz4-java#18](https://redirect.github.com/yawkat/lz4-java/pull/18)
> * Improve publish workflow by [`@​Marcono1234`](https://github.com/Marcono1234) in [yawkat/lz4-java#19](https://redirect.github.com/yawkat/lz4-java/pull/19)
> * Migrate to macOS 15 x86\_64 for release build by [`@​Marcono1234`](https://github.com/Marcono1234) in [yawkat/lz4-java#21](https://redirect.github.com/yawkat/lz4-java/pull/21)
> * Use gcc included in Windows image for release build by [`@​Marcono1234`](https://github.com/Marcono1234) in [yawkat/lz4-java#22](https://redirect.github.com/yawkat/lz4-java/pull/22)
> * Improve `LZ4FrameIOStreamTest` test by [`@​Marcono1234`](https://github.com/Marcono1234) in [yawkat/lz4-java#23](https://redirect.github.com/yawkat/lz4-java/pull/23)
> * Rename windows JNI lib to liblz4-java.dll by [`@​HTHou`](https://github.com/HTHou) in [yawkat/lz4-java#25](https://redirect.github.com/yawkat/lz4-java/pull/25)
> * Use bnd-maven-plugin to fix osgi manifest headers by [`@​aptmac`](https://github.com/aptmac) in [yawkat/lz4-java#28](https://redirect.github.com/yawkat/lz4-java/pull/28)
>
> New Contributors
> ----------------
>
> * [`@​HTHou`](https://github.com/HTHou) made their first contribution in [yawkat/lz4-java#25](https://redirect.github.com/yawkat/lz4-java/pull/25)
> * [`@​aptmac`](https://github.com/aptmac) made their first contribution in [yawkat/lz4-java#28](https://redirect.github.com/yawkat/lz4-java/pull/28)
>
> **Full Changelog**: <yawkat/lz4-java@v1.10.1...v1.10.2>


Changelog

*Sourced from [at.yawk.lz4:lz4-java's changelog](https://github.com/yawkat/lz4-java/blob/main/CHANGES.md).*

> Change log
> ==========
>
> 1.8.0
> -----
>
> * Upgraded LZ4 to 1.9.3. Updated the JNI bindings. Minimum glibc version in GNU/Linux platforms: 2.17 on aarch64, 2.2.5 on amd64, 2.17 on ppc64le, 2.2 on s390x.
> * Supported the JNI binding for Darwin aarch64.
> * [#174](https://redirect.github.com/lz4/lz4-java/issues/174)
>   Fixed NullPointerException when reading a malformed input by LZ4FrameInputStream.
>   (Marco Berlot, Rei Odaira)
> * [#169](https://redirect.github.com/lz4/lz4-java/issues/169)
>   Added information about requiring ant 1.10.2 or newer.
>   (guru prasad HB, Rei Odaira)
> * [#167](https://redirect.github.com/lz4/lz4-java/issues/167)
>   Supported using LZ4SafeDecompressor in LZ4DecompressorWithLength.
>   (sahilpaudel-pe, Rei Odaira)
> * [#163](https://redirect.github.com/lz4/lz4-java/issues/163)
>   Supported JNI binding in old CentOS 6 on amd64.
>   (dcapwell, Rei Odaira)
> * [#162](https://redirect.github.com/lz4/lz4-java/issues/162)
>   Added copyright notices, required by Apache License, Version 2.0.
>   (Egor Nepomnyaschih, Rei Odaira)
> * [#160](https://redirect.github.com/lz4/lz4-java/issues/160)
>   Added minimum glibc version to each release.
>   (patelh, Rei Odaira)
> * [#146](https://redirect.github.com/lz4/lz4-java/issues/146)
>   Improved LZ4FrameInputStream to read InputStream lazily.
>   Instance creation of LZ4FrameInputStream became faster.
>   (Björn Michael, Rei Odaira)
> * Improved the speed of the write methods of LZ4FrameOutputStream by
>   delaying calculating content checksum.
>   (Rei Odaira)
> * Added a debug functionality to not delete a temporary JNI library
>   when either LZ4JAVA\_KEEP\_TEMP\_JNI\_LIB or lz4java.jnilib.temp.keep is
>   set to true (will be deleted in the next run).
>   (Rei Odaira)
> * Enabled build with Java 13. The distribution is still
>   built with Java 7. (Rei Odaira)
> * Revised the documentation. (Rei Odaira)

... (truncated)


Commits

* [`e3aa42c`](yawkat/lz4-java@e3aa42c) Use bnd-maven-plugin to fix osgi manifest headers ([#28](https://redirect.github.com/yawkat/lz4-java/issues/28))
* [`ef125a1`](yawkat/lz4-java@ef125a1) Rename net/jpountz/util/win32/amd64/liblz4-java.so to net/jpountz/util/window...
* [`1dfbefd`](yawkat/lz4-java@1dfbefd) Improve `LZ4FrameIOStreamTest` test ([#23](https://redirect.github.com/yawkat/lz4-java/issues/23))
* [`de1e43e`](yawkat/lz4-java@de1e43e) Use gcc included in Windows image for release build ([#22](https://redirect.github.com/yawkat/lz4-java/issues/22))
* [`9ece12a`](yawkat/lz4-java@9ece12a) Migrate to macOS 15 x86\_64 for release build ([#21](https://redirect.github.com/yawkat/lz4-java/issues/21))
* [`37d698a`](yawkat/lz4-java@37d698a) Improve publish workflow ([#19](https://redirect.github.com/yawkat/lz4-java/issues/19))
* [`c491079`](yawkat/lz4-java@c491079) Fix source code formatting ([#18](https://redirect.github.com/yawkat/lz4-java/issues/18))
* [`eed5aa0`](yawkat/lz4-java@eed5aa0) Add `.git-versioned-pom.xml` to .gitignore ([#16](https://redirect.github.com/yawkat/lz4-java/issues/16))
* [`17f0e7a`](yawkat/lz4-java@17f0e7a) Run tests for pull requests again ([#17](https://redirect.github.com/yawkat/lz4-java/issues/17))
* [`37d6ca4`](yawkat/lz4-java@37d6ca4) Reproducible build ([#15](https://redirect.github.com/yawkat/lz4-java/issues/15))
* See full diff in [compare view](yawkat/lz4-java@v1.10.1...v1.10.2)
  
[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility\_score?dependency-name=at.yawk.lz4:lz4-java&package-manager=maven&previous-version=1.10.1&new-version=1.10.2)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`.
[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)
---
Dependabot commands and options
  
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot show  ignore conditions` will show all of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
tae898 pushed a commit to humemai/arcadedb-embedded-python that referenced this pull request Jun 28, 2026
@mergify
chore(deps): bump at.yawk.lz4:lz4-java from 1.10.1 to 1.10.2 [skip ci]
a8f9df0
Bumps [at.yawk.lz4:lz4-java](https://github.com/yawkat/lz4-java) from 1.10.1 to 1.10.2.
Release notes

*Sourced from [at.yawk.lz4:lz4-java's releases](https://github.com/yawkat/lz4-java/releases).*

> lz4-java v1.10.2
> ----------------
>
> What's Changed
> --------------
>
> * Reproducible build by [`@​yawkat`](https://github.com/yawkat) in [yawkat/lz4-java#15](https://redirect.github.com/yawkat/lz4-java/pull/15)
> * Run tests for pull requests again by [`@​Marcono1234`](https://github.com/Marcono1234) in [yawkat/lz4-java#17](https://redirect.github.com/yawkat/lz4-java/pull/17)
> * Add `.git-versioned-pom.xml` to .gitignore by [`@​Marcono1234`](https://github.com/Marcono1234) in [yawkat/lz4-java#16](https://redirect.github.com/yawkat/lz4-java/pull/16)
> * Fix source code formatting by [`@​Marcono1234`](https://github.com/Marcono1234) in [yawkat/lz4-java#18](https://redirect.github.com/yawkat/lz4-java/pull/18)
> * Improve publish workflow by [`@​Marcono1234`](https://github.com/Marcono1234) in [yawkat/lz4-java#19](https://redirect.github.com/yawkat/lz4-java/pull/19)
> * Migrate to macOS 15 x86\_64 for release build by [`@​Marcono1234`](https://github.com/Marcono1234) in [yawkat/lz4-java#21](https://redirect.github.com/yawkat/lz4-java/pull/21)
> * Use gcc included in Windows image for release build by [`@​Marcono1234`](https://github.com/Marcono1234) in [yawkat/lz4-java#22](https://redirect.github.com/yawkat/lz4-java/pull/22)
> * Improve `LZ4FrameIOStreamTest` test by [`@​Marcono1234`](https://github.com/Marcono1234) in [yawkat/lz4-java#23](https://redirect.github.com/yawkat/lz4-java/pull/23)
> * Rename windows JNI lib to liblz4-java.dll by [`@​HTHou`](https://github.com/HTHou) in [yawkat/lz4-java#25](https://redirect.github.com/yawkat/lz4-java/pull/25)
> * Use bnd-maven-plugin to fix osgi manifest headers by [`@​aptmac`](https://github.com/aptmac) in [yawkat/lz4-java#28](https://redirect.github.com/yawkat/lz4-java/pull/28)
>
> New Contributors
> ----------------
>
> * [`@​HTHou`](https://github.com/HTHou) made their first contribution in [yawkat/lz4-java#25](https://redirect.github.com/yawkat/lz4-java/pull/25)
> * [`@​aptmac`](https://github.com/aptmac) made their first contribution in [yawkat/lz4-java#28](https://redirect.github.com/yawkat/lz4-java/pull/28)
>
> **Full Changelog**: <yawkat/lz4-java@v1.10.1...v1.10.2>


Changelog

*Sourced from [at.yawk.lz4:lz4-java's changelog](https://github.com/yawkat/lz4-java/blob/main/CHANGES.md).*

> Change log
> ==========
>
> 1.8.0
> -----
>
> * Upgraded LZ4 to 1.9.3. Updated the JNI bindings. Minimum glibc version in GNU/Linux platforms: 2.17 on aarch64, 2.2.5 on amd64, 2.17 on ppc64le, 2.2 on s390x.
> * Supported the JNI binding for Darwin aarch64.
> * [#174](https://redirect.github.com/lz4/lz4-java/issues/174)
>   Fixed NullPointerException when reading a malformed input by LZ4FrameInputStream.
>   (Marco Berlot, Rei Odaira)
> * [#169](https://redirect.github.com/lz4/lz4-java/issues/169)
>   Added information about requiring ant 1.10.2 or newer.
>   (guru prasad HB, Rei Odaira)
> * [#167](https://redirect.github.com/lz4/lz4-java/issues/167)
>   Supported using LZ4SafeDecompressor in LZ4DecompressorWithLength.
>   (sahilpaudel-pe, Rei Odaira)
> * [#163](https://redirect.github.com/lz4/lz4-java/issues/163)
>   Supported JNI binding in old CentOS 6 on amd64.
>   (dcapwell, Rei Odaira)
> * [#162](https://redirect.github.com/lz4/lz4-java/issues/162)
>   Added copyright notices, required by Apache License, Version 2.0.
>   (Egor Nepomnyaschih, Rei Odaira)
> * [#160](https://redirect.github.com/lz4/lz4-java/issues/160)
>   Added minimum glibc version to each release.
>   (patelh, Rei Odaira)
> * [#146](https://redirect.github.com/lz4/lz4-java/issues/146)
>   Improved LZ4FrameInputStream to read InputStream lazily.
>   Instance creation of LZ4FrameInputStream became faster.
>   (Björn Michael, Rei Odaira)
> * Improved the speed of the write methods of LZ4FrameOutputStream by
>   delaying calculating content checksum.
>   (Rei Odaira)
> * Added a debug functionality to not delete a temporary JNI library
>   when either LZ4JAVA\_KEEP\_TEMP\_JNI\_LIB or lz4java.jnilib.temp.keep is
>   set to true (will be deleted in the next run).
>   (Rei Odaira)
> * Enabled build with Java 13. The distribution is still
>   built with Java 7. (Rei Odaira)
> * Revised the documentation. (Rei Odaira)

... (truncated)


Commits

* [`e3aa42c`](yawkat/lz4-java@e3aa42c) Use bnd-maven-plugin to fix osgi manifest headers ([#28](https://redirect.github.com/yawkat/lz4-java/issues/28))
* [`ef125a1`](yawkat/lz4-java@ef125a1) Rename net/jpountz/util/win32/amd64/liblz4-java.so to net/jpountz/util/window...
* [`1dfbefd`](yawkat/lz4-java@1dfbefd) Improve `LZ4FrameIOStreamTest` test ([#23](https://redirect.github.com/yawkat/lz4-java/issues/23))
* [`de1e43e`](yawkat/lz4-java@de1e43e) Use gcc included in Windows image for release build ([#22](https://redirect.github.com/yawkat/lz4-java/issues/22))
* [`9ece12a`](yawkat/lz4-java@9ece12a) Migrate to macOS 15 x86\_64 for release build ([#21](https://redirect.github.com/yawkat/lz4-java/issues/21))
* [`37d698a`](yawkat/lz4-java@37d698a) Improve publish workflow ([#19](https://redirect.github.com/yawkat/lz4-java/issues/19))
* [`c491079`](yawkat/lz4-java@c491079) Fix source code formatting ([#18](https://redirect.github.com/yawkat/lz4-java/issues/18))
* [`eed5aa0`](yawkat/lz4-java@eed5aa0) Add `.git-versioned-pom.xml` to .gitignore ([#16](https://redirect.github.com/yawkat/lz4-java/issues/16))
* [`17f0e7a`](yawkat/lz4-java@17f0e7a) Run tests for pull requests again ([#17](https://redirect.github.com/yawkat/lz4-java/issues/17))
* [`37d6ca4`](yawkat/lz4-java@37d6ca4) Reproducible build ([#15](https://redirect.github.com/yawkat/lz4-java/issues/15))
* See full diff in [compare view](yawkat/lz4-java@v1.10.1...v1.10.2)
  
[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility\_score?dependency-name=at.yawk.lz4:lz4-java&package-manager=maven&previous-version=1.10.1&new-version=1.10.2)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`.
[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)
---
Dependabot commands and options
  
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot show  ignore conditions` will show all of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

enhancement New feature or request

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

2 participants

@Marcono1234 @yawkat
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.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.