spring-projects / spring-aot-smoke-tests

Smoke tests for Spring's AOT and native support
https://spring-team-aot-smoke-tests-dashboard.azuremicroservices.io/
51 stars 35 forks source link

Reduce how often CI builds download Gradle #191

Closed wilkinsona closed 1 year ago

wilkinsona commented 1 year ago

Judging by some recent CI failures due to the download of https://services.gradle.org/distributions/gradle-7.6-bin.zip timing out, CI builds are downloading Gradle more often than they should. We could try:

  1. Caching the .gradle directory across runs
  2. Pre-installing Gradle in the CI container image
philwebb commented 1 year ago

I think we already call this function to setup a .gradle symlink and then our task should use that as a cache.

philwebb commented 1 year ago

Oddly, if I fly hijack I see that the gradle folder isn't a symlink. It's also empty.

philwebb commented 1 year ago

Sorry for the noise, I thought this was a Spring Boot issue 🤦.

It turns out we do have a similar issue with Spring Boot which is caused by us creating a .gradle folder in the CI image. This stops the symlink from being created. I think AOT tests has the same problem looking at these lines

wilkinsona commented 1 year ago

Thanks, @philwebb. That does indeed look like the same problem.