mirror of
https://github.com/screentinker/screentinker.git
synced 2026-08-13 22:03:13 -06:00
The android-test job ran ./gradlew with no Gradle caching, so every run re-downloaded the full Gradle distribution (gradle-8.5-bin.zip, ~130MB) from services.gradle.org. A transient "Connection reset" mid-download failed the job before any test ran (stack bottomed out in org.gradle.wrapper.Install.forceFetch) — e.g. run 30063222009 on the npm-audit-fix PR, which passed on a plain re-run. Add `cache: gradle` to the existing setup-java step. It caches ~/.gradle/caches and ~/.gradle/wrapper; the wrapper cache holds the distribution zip, so cache-hit runs skip the download entirely — removing the network dependency that flaked. Also speeds the job up (build cache reuse). Residual: a cold cache (first run per key, or a gradle-wrapper.properties change) still downloads once. If that proves flaky too, a download retry can be layered on, but caching turns "download every run" into "download rarely". Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| ci.yml | ||
| release.yml | ||
| shaders.yml | ||