android: record what the cuprated build costs CI (baseline vs feature on)
All checks were successful
android-ci / android (pull_request) Successful in 11m12s

This commit is contained in:
agent 2026-09-18 17:30:20 -04:00
commit 3860c3d56d
No known key found for this signature in database

View file

@ -147,6 +147,34 @@ above is the other half of the proof — request and artifact, separately checka
`CUPRATE_PREPRODUCTION_WARNING` — quoted user book, testnet-only, and Cuprate `CUPRATE_PREPRODUCTION_WARNING` — quoted user book, testnet-only, and Cuprate
issue #278, assertable in `WalletChildStatusTextTest`. Opt-in, never a default. issue #278, assertable in `WalletChildStatusTextTest`. Opt-in, never a default.
## What it costs in CI
The Android job runs on the `docker-amd64` runner with `CARGO_BUILD_JOBS=1` and a
warm named volume at `/cargo-target` (it is **not** the Raspberry Pi runner), so
the numbers below are one runner, one volume, built twice: once with the feature
off (the current `main` build, run 402) and once with it on (run 406, this branch).
| | feature off — `main` 773dacb, run 402 | feature on — this branch, run 406 |
|---|---|---|
| Gradle | `BUILD SUCCESSFUL in 6m 10s` | `BUILD SUCCESSFUL in 44m 7s` |
| job wall clock | 484 s for the build step | 47m 45s job (20:10:02 → 20:57:46) |
| `/cargo-target` **before** the build | 3.1 G | 3.3 G |
| `libonionwire_sdk.so` in the APK | 33,533,264 B | 55,438,112 B |
| `librandomx_rs-<hash>.so` | absent | 1,122,296 B |
| APK / AAR | 28,038,401 B / 10,377,416 B | see PR #113 |
The feature multiplies the Gradle build by roughly **7×** (~6 min → ~44 min): the
cuprated graph is ~152 crates plus a C++ RandomX cross-build, and the runner has a
single cargo job. What it does *not* blow is anything else: the job's
`timeout-minutes` is 120, so 44 minutes fits with room to spare, and the extra
target-directory volume is a gigabyte-scale number, not a partition. **No
mitigation was needed** — the feature stays on the release path, and the job was
not made slower or conditional to accommodate it.
`android-ci.yml` prints `du -sh /cargo-target` after the build and the workflow
echoes `build_wall_clock_seconds`, so the next person changing this graph reads
the cost from the run log instead of re-deriving it.
## Not verified ## Not verified
The daemon was **not executed on a device or an emulator**. There is no The daemon was **not executed on a device or an emulator**. There is no