7.4 KiB
7.4 KiB
Review: feature/android-release-apk (2026-11-21)
Analysis: ../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: thephonetarget saysreset: uninstallandmaxMinutes: 20..fabrica/artifex/e2e.yaml: new stepsapk(pnpm tauri:android) andphone(device: Wave 10,fabrica tests run --target phone);GRADLE_USER_HOMEon D:,NDK_HOMEnamed..fabrica/artifex/release.yaml: the same two variables, and the header no longer claims Custos makesrosea-android.e2e/android/garden.android.ts: force-stops the app infinally.- Docs: the analysis, G-T3 and G-F5 narrowed, G-F7 new,
fabrica-release.mdF4 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-everythingplanted in tests.yaml was refused withtargets[1].reset: clear (the app's data), uninstall or keep, then restored by copy, notgit checkout(lessons/process.md). fabrica tests list --target phone: 1 test in 1 file.- The release APK:
pnpm tauri:android-releasewith Gradle, Cargo's target, TEMP and ANDROID_USER_HOME underD:\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, sha2564d52e9eca4cd2e56…, unsigned.
Findings
- 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 inreleasewould queue the whole release for the phone from the start, and the release runs onwindows, notwindows-e2e(docs/35 part 2). The gate is process for now: no tag on a commit until the e2e pipeline'sphonestep has passed on it (analysis §3). A pipelineneeds:across pipelines would close it; Artifex has none today. - 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
MainActivityare 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. reset: uninstallinstead of the asked-forclear. Kept, with the reason (A3): a release build on the phone would otherwise block every debug run. It loses nothing more thanclearwould.fabrica-release.mdF4 was wrong. It said Custos makesrosea-androidon the first release. Custos'sANDROID_APPStable 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 atno_keyafter Mark's card, as Culina's and Liber's did.- The debug build in the e2e pipeline uses the default
ANDROID_USER_HOME(%USERPROFILE%\.androidon C:). Gradle writesdebug.keystorethere 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. - 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:.
- The new
finallyline was never run. No run of the spec is possible outside the queue. Not verified: typecheck and lint only. fabrica devices listdid one reconnect pass (adbdevices, mDNS,adb connect), andfabrica devices queueasked 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.- 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
INTERNETpermission, 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
phonestep and the phone target never ran. The Wave 10 isconnected (not paired in Fabrica), and pairing belongs to the Fabrica session. - No signature was made.
rosea-androiddoes 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:e2eandtest:offlinewere 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 fromfeature/fabrica-release, on the same game.
Addendum, 2026-11-21 (fix/phone-target-run): the phone target ran through the queue
The Fabrica session got the queue working on the Wave 10. The hub's e2e runner is not added yet, so the target
ran from this session with fabrica tests run --target phone --as claude, which takes the phone through the
hub's queue.
| Run | What | Result |
|---|---|---|
20261121-101158-uckm |
the spec as merged (f5d8d2c), debug APK sha256 bd59ff908125… |
1 passed, 0 failed (7.9 s). Waited 12 s behind Culina's run. Fabrica uninstalled, installed, started; the WebView was drivable. |
20261121-101303-zvve |
drill: Days of care 2 planted |
error, 0 run. Waited 424 s behind Postea and Culina, then adb install failed with an empty reason. Not the planted fault. |
20261121-102500-crkf |
the same drill, once more | 0 passed, 1 failed. Received Days of care1 after the close and reopen, so the test checks persistence for real. |
The spec was restored by copy after each drill, and git status was checked after.
Findings:
- One
adb installfailed with no reason, on a phone that two other apps' runs had just used. The next run'spm uninstallansweredDELETE_FAILED_INTERNAL_ERROR (not installed), so nothing was left behind. Not reproduced; not Rosea's code. For the Fabrica session: the CLI could print adb's stderr when stdout ends with:. - The Aula session's interim rule 2 says
reset: keepunless the app's data may be wiped. Rosea's data on the test phone may be wiped (CLAUDE.md §3:check-garden.ts androidalreadypm clears the test app), and the test needs a first open.uninstallkept (A3). - The drill ran on the Wi-Fi line (
192.168.100.127:5555, rule 1 of the same message) and the passing run on USB. Both are the same phone. Nothing to fix.