android-ci: make a :app:packageRelease failure diagnosable (--stacktrace) #115
Loading…
Reference in a new issue
No description provided.
Delete branch "onionwire/t_d81fb7bf-android-ci-make-a-app-packagerelease-fai"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Run 414 (
294cedf, PR #114) died in:app:packageReleasewith a cause-lessGradle failure:
No
Caused by:line, nothing else — Gradle's default console output dropped theexception chain, so the root cause of a one-off packaging failure is
unrecoverable after the fact. Runs 412/413 packaged the identical tree green and
417/418 are green too, so there is nothing to bisect: the missing thing is the
throwable, not a fix.
Change
One flag on the single
./gradlewinvocation inscripts/build-android-local.sh:--stacktraceonly changes output on failure. It does not alter the build,the artifact, or the timings.
scripts/build-android-local.shis the one gradle command.forgejo/workflows/android-ci.ymland.forgejo/workflows/android-release.ymlboth build through, so every future packaging failure is diagnosable in both.
The release path getting it too is desirable.
--info/--debug: run 417's log is already 3421 lines with-euxshell tracing on top. A stack trace is what is missing, not verbosity.Scope: that one script. No Rust core, no
scripts/publish-release.sh, noworkflow files.
Verification
android-ciruns on this PR — itspull_requestpaths filter includesscripts/build-android-local.sh, so the job builds the real:sdk:assembleRelease + :app:assembleReleasethrough the edited line (debugsigning, nothing published). Run link to follow in a comment.
Verification: android-ci run 419 green on this head
https://forgejo.siriusdevops.com/sirius/onionwire/actions/runs/419 —
android-ci / android (pull_request), success, headfcdabf8d139bde025e968b1cb7a2f447df5bbf33.The
pull_requestpaths filter onscripts/build-android-local.shfires here, so thejob built the edited line for real:
Artifacts (unchanged by the flag):
onionwire-0.1.0-android-arm64-v8a.apkd829d4969af9bd080eac16231e653be3a58bef13efbf09dabd890dbe46760b65onionwire-sdk-0.1.0.aarb2c016c71387bad186e8bc5f6cc75d32fdc540f525d7a1443fce82078372f99c(byte-identical to runs 417/418)Signer is the debug cert as expected for a verification build:
C=US, O=Android, CN=Android Debug, cert SHA-25645f4a962…;aaptreportscom.siriusdevops.onionwire versionCode='100' versionName='0.1.0' sdkVersion:'26' targetSdkVersion:'36'.What this does and does not prove
fcdabf8(which is the tree this run checked out — log line 195,HEAD is now at fcdabf8) packages green with the flag in place, at the same byte sizesas the green 418 baseline. Local
./gradlew --no-daemon --stacktrace helpon Gradle8.14.5 succeeds too, so the flag is accepted by this Gradle/AGP.
set -euo pipefailand no-x, sothe job log does not echo the
./gradlewcommand line. The flag's presence is evidencedby the checkout sha plus
git show fcdabf8:scripts/build-android-local.shline 62:( cd android && "./gradlew" --no-daemon --stacktrace \.cause-less
:app:packageReleasenow prints aCaused by:chain — that is the flag'sdesigned behaviour, and the next occurrence of run 414's failure mode is the proof.