[repo] AndroidReleaseApk: The phone target through Fabrica's queue (reset uninstall, maxMinutes, the e2e pipeline's phone step), the release APK built and verified with caches on D:, rosea-android named as Custos's gap
This commit is contained in:
@@ -0,0 +1,84 @@
|
||||
# Review: `feature/android-release-apk` (2026-11-21)
|
||||
|
||||
Analysis: [`../features/android-release-apk.md`](../features/android-release-apk.md). The brief was Mark's, relayed by
|
||||
the Aula session: release each app's APK after the most basic e2e on the Wave 10, through Fabrica's phone queue.
|
||||
|
||||
## What changed
|
||||
|
||||
- `.fabrica/tests.yaml`: the `phone` target says `reset: uninstall` and `maxMinutes: 20`.
|
||||
- `.fabrica/artifex/e2e.yaml`: new steps `apk` (`pnpm tauri:android`) and `phone` (`device: Wave 10`,
|
||||
`fabrica tests run --target phone`); `GRADLE_USER_HOME` on D:, `NDK_HOME` named.
|
||||
- `.fabrica/artifex/release.yaml`: the same two variables, and the header no longer claims Custos makes `rosea-android`.
|
||||
- `e2e/android/garden.android.ts`: force-stops the app in `finally`.
|
||||
- Docs: the analysis, G-T3 and G-F5 narrowed, G-F7 new, `fabrica-release.md` F4 corrected, the handover.
|
||||
|
||||
## Gates
|
||||
|
||||
See *Counts* at the end (filled in from the run of this branch).
|
||||
|
||||
Also run:
|
||||
|
||||
- `fabrica artifex check`: 2 pipelines, app.yaml, aula.yaml, tests.yaml and brief.md, 0 problems.
|
||||
- **Drill:** `reset: wipe-everything` planted in tests.yaml was refused with
|
||||
`targets[1].reset: clear (the app's data), uninstall or keep`, then restored by copy, not `git checkout`
|
||||
(lessons/process.md).
|
||||
- `fabrica tests list --target phone`: 1 test in 1 file.
|
||||
- **The release APK:**
|
||||
- `pnpm tauri:android-release` with Gradle, Cargo's target, TEMP and ANDROID_USER_HOME under `D:\build\rosea`: exit 0 in 27 min.
|
||||
- `android.ts verify`: no permission asked, no backup, metrics and Safe Browsing off.
|
||||
- `aapt2 dump badging`: `cz.mareknovak.domi.rosea`, versionCode 1000, versionName 0.1.0, arm64-v8a, not debuggable, 5.60 MiB, sha256 `4d52e9eca4cd2e56…`, unsigned.
|
||||
|
||||
## Findings
|
||||
|
||||
1. **The release pipeline does not require the phone test.** A tag can be released whose debug APK never passed on
|
||||
the Wave 10. *Deferred, with the reason.* A `device:` step in `release` would queue the whole release for the
|
||||
phone from the start, and the release runs on `windows`, not `windows-e2e` (docs/35 part 2). The gate is
|
||||
process for now: no tag on a commit until the e2e pipeline's `phone` step has passed on it (analysis §3). A
|
||||
pipeline `needs:` across pipelines would close it; Artifex has none today.
|
||||
2. **The phone tests a debug APK, and the release is a different build.** *Accepted, and stated (A1).* Only a debug
|
||||
WebView can be driven. The game bytes, the manifest patch and `MainActivity` are the same; the Rust profile and
|
||||
the key differ. A manual check of the signed release APK on the phone is in the matrix, for after the key exists.
|
||||
3. **`reset: uninstall` instead of the asked-for `clear`.** *Kept, with the reason (A3):* a release build on the
|
||||
phone would otherwise block every debug run. It loses nothing more than `clear` would.
|
||||
4. **`fabrica-release.md` F4 was wrong.** It said Custos makes `rosea-android` on the first release. Custos's
|
||||
`ANDROID_APPS` table never named Rosea (0.22.0: Postea; 0.24.0: Postea, Culina, Liber). *Fixed* in F4, G-T3 and
|
||||
the release.yaml header, and a lesson added (process.md). The release would have stopped at `no_key` after Mark's
|
||||
card, as Culina's and Liber's did.
|
||||
5. **The debug build in the e2e pipeline uses the default `ANDROID_USER_HOME`** (`%USERPROFILE%\.android` on C:).
|
||||
Gradle writes `debug.keystore` there if it is missing. *Accepted:* adb's pairing keys live in that folder too
|
||||
(docs/35 part 2), and moving it for the step could cut the runner off from the phone. It is one small file,
|
||||
and it is already there.
|
||||
6. **The pipelines keep Cargo's target in the checkout** (on F:, which is nearly full). *Accepted:* the
|
||||
installer's artifact glob is relative to it. Only the local build here used D:.
|
||||
7. **The new `finally` line was never run.** No run of the spec is possible outside the queue. *Not verified*:
|
||||
typecheck and lint only.
|
||||
8. **`fabrica devices list` did one reconnect pass** (adb `devices`, mDNS, `adb connect`), and `fabrica devices queue`
|
||||
asked again for the pending Custos card 836209. Neither installs, starts or taps anything on the phone. Both are
|
||||
stated here, so nobody reads "nothing touched the phone" as stronger than it is.
|
||||
9. **The proposed certificate CN *Rosea Domi* outlives the working name** (A7). *For Mark and Custos to decide.*
|
||||
|
||||
## Soul, privacy, reachability, offline
|
||||
|
||||
- **Soul:** no player-facing change. Nothing can make a person feel worse.
|
||||
- **Privacy:** the release APK asks for no `INTERNET` permission, has no backup, and has the WebView's metrics off
|
||||
(verified on the built file). The phone spec chooses *Not now*, so no town is set on the phone.
|
||||
- **Reachability:** none; there is no network.
|
||||
- **Offline:** unchanged; the APK cannot reach a network at all.
|
||||
|
||||
## Not verified
|
||||
|
||||
- The `phone` step and the phone target never ran. The Wave 10 is `connected (not paired in Fabrica)`, and
|
||||
pairing belongs to the Fabrica session.
|
||||
- No signature was made. `rosea-android` does not exist (G-F7).
|
||||
- No release, by G6.1 (G-F1).
|
||||
- The e2e pipeline was never started on the hub.
|
||||
|
||||
## Counts (this branch, 2026-11-21)
|
||||
|
||||
- `pnpm test`: **608 passed** (cpu-guard 13, identity 5, schema 19, content 88, storage 70, art-prep 80, release 8,
|
||||
engine 179, tauri 58, ui 88).
|
||||
- `pnpm lint`, `pnpm typecheck`: clean. `pnpm lint:copy`: 30 files, 0 problems.
|
||||
`pnpm validate:library`: 13 of 13 fixtures rejected.
|
||||
- `pnpm test:e2e` and `test:offline` were **not rerun**. Nothing the browser runs changed: the only code change is
|
||||
one line in the Android spec, which those suites do not include. Their last counts (26 and 1) are from
|
||||
`feature/fabrica-release`, on the same game.
|
||||
Reference in New Issue
Block a user