-
Notifications
You must be signed in to change notification settings - Fork 41.1k
Document Docker Engine resource requirements for running tests #25814
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
Comments
Judging by |
@wilkinsona Ha - just edited the text with that. Did that already, but maybe not enough. |
FWIW, my Docker install's got 128GB of disk. I had a clear out recently so it's currently only using 11.9GB. I'm sure it doesn't need over 100GB of head room, but it might be worth giving it even more space. How much free space does your install have? |
It had 10GB left, but I just gave it another 20GB. I'll report back in 30 minutes |
Yeah, 20GB more worked. Feel free to close the ticket or repurpose to a documentation ticket |
@dreis2211 I've been working on some new integration tests to verify the contracts between the Spring Boot image-building plugins and the Paketo buildpacks (for example the features documented by Paketo as enabled by Spring Boot). It's a work-in-progress right now on a branch here. The idea is that these tests would be run from different triggers than the current builds that run on every commit, such as triggering by new Paketo builder images in Docker Hub and Boot snapshots being published. As part of this, we've started discussing changing the approach used by the existing Gradle |
Created #25824 for further feedback. |
@scottfrederick I actually thought about extracting that from the Gradle plugin tests, but in a first try I ended up with quite some copy-paste as well. I'm somewhat glad that you ended up with that, too ;-) My initial thought before that was to come up with a new annotation In general, I'm curious what you can come up with. Thanks for sharing your thoughts. :) |
We can add tips for Docker resource configuration to the |
We'll add the Docker configuration tips to the Working with the Code wiki page. |
Documentation added to https://github.com/spring-projects/spring-boot/wiki/Working-with-the-Code#tests-requiring-docker. I cleaned all containers, images, and volumes from my local Docker and ran a full build with tests. Docker reported using just under 20GB of the disk image space, so hopefully the documented recommendation holds up for others. |
Hi,
I wanted to take a look at improving build times of
BootBuildImageIntegrationTests
, but noticed that 20% of them randomly fail on my local machine with messages like the following:I wonder if we can improve that somewhat or how I need to tweak my Docker setup (naively giving it more space, didn't fix things)
As my original intention was to improve the time of those tests (around 30 minutes on my machine), I'd appreciate any thoughts on that, too.
Cheers,
Christoph
The text was updated successfully, but these errors were encountered: