Skip to content

Commit 03d23c5

Browse files
committed
Document Android release failure stop rule
1 parent 0ea304d commit 03d23c5

3 files changed

Lines changed: 30 additions & 0 deletions

File tree

‎apps/android/README.md‎

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,15 @@ the screenshots, then shuts down the emulator it started.
8787

8888
`pnpm android:bundle:release` is an alias for the same Fastlane archive lane.
8989

90+
`pnpm android:release:archive` is for local archive validation only. It is not a
91+
fallback upload path after `pnpm android:release:upload` fails.
92+
93+
Agent-driven Google Play uploads must use `pnpm android:release:upload` as the
94+
only release path. If that command fails, stop and fix the failing screenshot,
95+
metadata, signing, validation, archive, or upload step before trying again. Do
96+
not upload archived artifacts through direct Fastlane lanes, Gradle artifacts,
97+
Google Play API commands, or Play Console mutation commands.
98+
9099
See `apps/android/VERSIONING.md` and `apps/android/fastlane/SETUP.md` for the release workflow.
91100

92101
Flavor-specific direct Gradle tasks:

‎apps/android/VERSIONING.md‎

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,12 @@ Recommended workflow:
5454
8. Run `pnpm android:release:upload` to upload metadata, screenshots, and the Play AAB to Google Play internal testing.
5555
9. Promote to production manually in Google Play Console.
5656

57+
If `pnpm android:release:upload` fails, stop at that failure. Do not continue by
58+
uploading archived artifacts through `pnpm android:release:archive`,
59+
`pnpm android:release:metadata`, direct Fastlane lanes, Gradle release artifacts,
60+
Google Play API mutation commands, or Play Console mutation commands. Fix the
61+
failing release-lane step, then rerun `pnpm android:release:upload`.
62+
5763
The third-party flavor is archived as a signed APK for non-Play distribution. It is not uploaded by the Play release lane.
5864

5965
## Release SHA tracking
@@ -81,6 +87,9 @@ immutable: the same ref at the same SHA is accepted, while the same ref at a
8187
different SHA fails. `GOOGLE_PLAY_VALIDATE_ONLY=1` still checks the ref but does
8288
not record it because no Play build is published.
8389

90+
Do not create this ref after a manual fallback upload. The ref is release-lane
91+
evidence, not a repair mechanism for a failed `pnpm android:release:upload` run.
92+
8493
Useful direct commands:
8594

8695
```bash
@@ -95,3 +104,7 @@ pnpm mobile:release:resolve -- --platform android --version 2026.6.10 --version-
95104
`sync:pull` decrypts the Play upload keystore and Gradle signing properties into `apps/android/build/release-signing/`. That directory is gitignored, and Fastlane exports the materialized values as Gradle project properties for the current release command.
96105

97106
If `MATCH_PASSWORD` is not set, the existing manual Gradle-property signing path still works: provide `OPENCLAW_ANDROID_STORE_FILE`, `OPENCLAW_ANDROID_STORE_PASSWORD`, `OPENCLAW_ANDROID_KEY_ALIAS`, and `OPENCLAW_ANDROID_KEY_PASSWORD` through your local Gradle user properties before running release tasks.
107+
108+
Agent-driven releases must not use those lower-level signing and upload surfaces
109+
to bypass a failed `pnpm android:release:upload` attempt. Report the failing
110+
step and wait for maintainer direction instead.

‎apps/android/fastlane/SETUP.md‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,9 @@ Archive locally without upload:
6262
pnpm android:release:archive
6363
```
6464

65+
This command is for local archive validation only. It is not a fallback upload
66+
path after `pnpm android:release:upload` fails.
67+
6568
Generate deterministic Google Play screenshots:
6669

6770
```bash
@@ -86,6 +89,10 @@ cd apps/android
8689
fastlane android release_upload
8790
```
8891

92+
Use the direct Fastlane entry point only for maintainer debugging when explicitly
93+
requested. Agent-driven releases must use `pnpm android:release:upload` and stop
94+
if it fails.
95+
8996
Release rules:
9097

9198
- `apps/android/version.json` is the pinned Android release version source.
@@ -107,6 +114,7 @@ Release rules:
107114
- `pnpm android:release:archive` builds the signed Play AAB and third-party APK into `apps/android/build/release-artifacts/`.
108115
- `pnpm android:release:upload` uploads the Play AAB to the configured Google Play track. The default track is `internal`.
109116
- Production promotion remains manual in Google Play Console.
117+
- If `pnpm android:release:upload` fails, agent-driven releases must stop and report the failing step. Do not fall back to `pnpm android:release:archive`, `pnpm android:release:metadata`, direct Fastlane lanes, Gradle release artifacts plus Google Play upload commands, or mobile release ref recording.
110118

111119
Screenshots:
112120

0 commit comments

Comments
 (0)