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

test: improve testcontainer test stability #1011

Merged

Conversation

timonback
Copy link
Member

By default, a DockerComposeContainer copies the full gradle project directory into container. When running tests, the build/test-results/test/binary/output.bin file is written, which can get large. This file is not required for the tests and the test container default is overwritten to a single file (i.e. .env)

Original error messages:
org.testcontainers.containers.ContainerLaunchException: Container startup failed for image docker/compose com.github.dockerjava.api.exception.InternalServerErrorException: Status 500: {"message":"unexpected EOF"} java.io.IOException: Request to write '8192' bytes exceeds size in header of '2064381' bytes for entry

By default, a DockerComposeContainer copies the full gradle project directory into container.
When running tests, the `build/test-results/test/binary/output.bin` file is written, which can get large.
This file is not required for the tests and the test container default is overwritten to a single file (i.e. `.env`)

Original error messages:
org.testcontainers.containers.ContainerLaunchException: Container startup failed for image docker/compose
com.github.dockerjava.api.exception.InternalServerErrorException: Status 500: {"message":"unexpected EOF"}
java.io.IOException: Request to write '8192' bytes exceeds size in header of '2064381' bytes for entry
Copy link

netlify bot commented Oct 11, 2024

Deploy Preview for springwolf-ui canceled.

Name Link
🔨 Latest commit 707e8ea
🔍 Latest deploy log https://app.netlify.com/sites/springwolf-ui/deploys/670915805ca14a0008eac06d

@timonback timonback merged commit 9cd9410 into springwolf:master Oct 11, 2024
26 checks passed
@timonback timonback deleted the chore/stable-test-container-tests branch October 11, 2024 12:16
ruskaof pushed a commit to ruskaof/springwolf-core that referenced this pull request Nov 20, 2024
By default, a DockerComposeContainer copies the full gradle project directory into container.
When running tests, the `build/test-results/test/binary/output.bin` file is written, which can get large.
This file is not required for the tests and the test container default is overwritten to a single file (i.e. `.env`)

Original error messages:
`org.testcontainers.containers.ContainerLaunchException: Container startup failed for image docker/compose`
`com.github.dockerjava.api.exception.InternalServerErrorException: Status 500: {"message":"unexpected EOF"}`
`java.io.IOException: Request to write '8192' bytes exceeds size in header of '2064381' bytes for entry`
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.

1 participant