android-ci: echo the artifact digests and the deflated native-lib sizes
Some checks failed
android-ci / android (pull_request) Failing after 9m52s

Run 412 (PR #113) proved the cuprated APK builds and carries the daemon, but
the log only ever printed `sha256sum -c ...: OK` — neither digest — and
`unzip -l`, which shows the uncompressed size of every .so and not the
deflated one the download pays for. Both are what a reader of the run needs to
identify the artifact, and neither can be recovered from the tree afterwards.

Also fills the two remaining cells of CUPRATE_DAEMON.md's CI-cost table from
that run (APK 34,445,514 B / AAR 15,728,039 B, 11m12s job, 5.6 G target
volume), and records that the first feature-on build is the 44-minute one
while later builds settle at +2 minutes over the feature-off baseline.
This commit is contained in:
agent 2026-09-18 17:51:11 -04:00
commit 294cedfbff
No known key found for this signature in database
2 changed files with 43 additions and 22 deletions

View file

@ -174,6 +174,12 @@ jobs:
echo "=== unzip lib ==="
unzip -l "$apk" | grep -E 'lib/.+\.so' || true
unzip -l "$apk" | grep "lib/$abi/libonionwire_sdk.so"
# `unzip -l` shows the uncompressed size only; the *deflated* entry is
# what the download actually costs, and it is not visible anywhere else
# (v0.7.0's SDK lib was 33,481,336 B raw / 12,210,154 B deflated, which
# is the ratio a reader wants when this one grows).
echo "=== native lib entries (length / method / deflated) ==="
unzip -v "$apk" | grep -E 'lib/.+\.so$'
echo "=== in-process chain daemon (cuprate-daemon) is IN this APK ==="
# The build log's "features=cuprate-daemon" line says the feature was
# *requested*; this says it is *in the artifact*. `target_max_memory` is
@ -197,6 +203,11 @@ jobs:
echo "=== classes.dex + Compose entrypoints ==="
unzip -l "$apk" | grep -E 'classes[0-9]*\.dex' | head -n3
echo "=== sha256 ==="
# `sha256sum -c` proves each artifact matches the digest the build
# recorded, but prints neither number. The digest *is* the artifact's
# identity, and an APK is not byte-reproducible across machines, so it
# cannot be derived from the tree afterwards — echo both.
cat "dist/onionwire-$version-android-$abi.apk.sha256" "dist/onionwire-sdk-$version.aar.sha256"
( cd dist && sha256sum -c "onionwire-$version-android-$abi.apk.sha256" "onionwire-sdk-$version.aar.sha256" )
echo "=== apksigner (expect debug cert: this is a verification build) ==="
apksigner verify --print-certs "$apk" | sed -n '1,6p'