taler-android

Android apps for GNU Taler (wallet, PoS, cashier)
Log | Files | Refs | README | LICENSE

commit 282d5bb40ac63fb79da4391e803ddf6066371550
parent 59f1a7af3ae3a8c1673c3f256cfda0280fd96ad1
Author: Christian Grothoff <christian@grothoff.org>
Date:   Tue, 10 Nov 2026 01:18:34 +0100

cache downloaded runtimes from Maven

Diffstat:
Mcontrib/ci/ci.sh | 15+++++++++++++++
1 file changed, 15 insertions(+), 0 deletions(-)

diff --git a/contrib/ci/ci.sh b/contrib/ci/ci.sh @@ -34,6 +34,20 @@ fi mkdir -p "${PWD}/inputs" mkdir -p "${PWD}/artifacts" mkdir -p "${PWD}/cache/.gradle" +# Robolectric fetches its `android-all-instrumented` runtime -- about 380 MB +# across the API levels the tests pin with @Config(sdk=...) -- at *test* time, +# through its own Maven fetcher rather than through Gradle. /root/.gradle +# therefore does not cache it, and with nowhere else to keep it every run +# re-downloaded the lot from Maven Central until Maven Central answered 429 +# with `retry-after: 86380`, a daily per-IP quota. Every Robolectric test +# then fails with +# +# Failed to fetch maven artifact org.robolectric:android-all-instrumented:... +# +# which names no HTTP status and reads like a broken dependency rather than a +# throttled download. A persistent local Maven repository turns that into one +# download per worker instead of one per run. +mkdir -p "${PWD}/cache/.m2" "${OCI_RUNTIME}" run \ --rm \ @@ -44,6 +58,7 @@ mkdir -p "${PWD}/cache/.gradle" --env PUBLISH="${PUBLISH:-1}" \ --volume "${PWD}":/workdir \ --volume "${PWD}/cache/.gradle":/root/.gradle \ + --volume "${PWD}/cache/.m2":/root/.m2 \ --volume "${PWD}/inputs:/inputs:ro" \ --volume "${PWD}/artifacts:/artifacts" \ --workdir /workdir \