From fcdabf8d139bde025e968b1cb7a2f447df5bbf33 Mon Sep 17 00:00:00 2001 From: apk-dev Date: Fri, 18 Sep 2026 19:53:41 -0400 Subject: [PATCH] android-ci: pass --stacktrace to the release gradle build Run 414 died in :app:packageRelease with an empty cause chain (no Caused by: line at all), so a one-off packaging failure leaves nothing to diagnose. --stacktrace only changes output on failure; it does not alter the build, the artifact or the timings. scripts/build-android-local.sh is the single gradle invocation that both android-ci.yml and android-release.yml build through, so one flag covers both. --- scripts/build-android-local.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/scripts/build-android-local.sh b/scripts/build-android-local.sh index 5731afc..90a784c 100755 --- a/scripts/build-android-local.sh +++ b/scripts/build-android-local.sh @@ -59,7 +59,11 @@ echo "==> verifying bundled native executables against $BINARY_MANIFEST" ( cd android && sha256sum -c "$(basename "$BINARY_MANIFEST")" ) echo "==> android build: version $version (versionCode $ONIONWIRE_VERSION_CODE), abi $abi" -( cd android && "./gradlew" --no-daemon \ +# --stacktrace only changes output on failure. Without it a Gradle task failure +# can land in the CI log with an empty cause chain (e.g. run 414: +# `:app:packageRelease ... IncrementalSplitterRunnable` and no `Caused by:`), +# which makes a one-off failure undiagnosable after the fact. +( cd android && "./gradlew" --no-daemon --stacktrace \ "-Ponionwire.abis=$abi" \ "-Ponionwire.versionName=$version" \ "-Ponionwire.versionCode=$ONIONWIRE_VERSION_CODE" \