Compare commits

...
Author SHA1 Message Date
77f577fcf9 Merge pull request 'android-ci: make a :app:packageRelease failure diagnosable (--stacktrace)' (#115) from onionwire/t_d81fb7bf-android-ci-make-a-app-packagerelease-fai into main
All checks were successful
android-ci / android (push) Successful in 11m0s
Reviewed-on: #115
2026-09-19 00:03:08 +00:00
apk-dev
fcdabf8d13
android-ci: pass --stacktrace to the release gradle build
All checks were successful
android-ci / android (pull_request) Successful in 10m27s
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.
2026-09-18 19:53:41 -04:00

View file

@ -59,7 +59,11 @@ echo "==> verifying bundled native executables against $BINARY_MANIFEST"
( cd android && sha256sum -c "$(basename "$BINARY_MANIFEST")" ) ( cd android && sha256sum -c "$(basename "$BINARY_MANIFEST")" )
echo "==> android build: version $version (versionCode $ONIONWIRE_VERSION_CODE), abi $abi" 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.abis=$abi" \
"-Ponionwire.versionName=$version" \ "-Ponionwire.versionName=$version" \
"-Ponionwire.versionCode=$ONIONWIRE_VERSION_CODE" \ "-Ponionwire.versionCode=$ONIONWIRE_VERSION_CODE" \