Repository navigation
feat(release): automate iOS and Android store releases - #158807
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs real behavior proof before merge. Reviewed September 26, 2026, 7:19 AM ET / 11:19 UTC (Revision 4). ClawSweeper reviewWhat this changesThe branch adds manual iOS and Android store release workflows and a shared local command to plan versions and notes, sign and upload builds, and save recovery artifacts. Merge readiness⛔ Blocked before merge - 15 items remain Keep this PR open. The dispatch-commit pin addresses the earlier source-drift finding, but both new store environments currently lack release-manager approval rules, and the upload path does not recheck a dispatcher's access after a queued run starts. Priority: P2 Review scores
Verification
How this fits togetherOpenClaw's mobile release tooling takes a selected main-branch commit and live Apple or Google store state, then produces signed builds and store metadata. GitHub Actions and local commands feed the same upload paths, which record source refs and recovery artifacts afterward. flowchart LR
A[Manual dispatch or local command] --> B[Source and authority checks]
B --> C[Store state and version plan]
C --> D[Release notes and signed build]
D --> E[Apple or Google upload]
E --> F[Recovery artifacts and source ref]
Decision needed
Why: The existing beta environments and removed authority action enforce those boundaries, while the new environments currently have no reviewer rules; choosing broader release authority requires an explicit release-owner decision. Before merge
Findings
Agent review detailsSecurityNeeds attention: The release cutover weakens the approval and live-authorization boundary around credentialed store uploads. PR surfacePR surface statistics unavailable: the file list is incomplete. Review metrics
Stored data modelPersistent data-model change detected: Root-cause clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Protect both new environments with release-manager review, revalidate live dispatcher authority immediately before credentialed effects, and verify the saved-plan cutover and recovery behavior against representative existing store state before enabling uploads. Do we have a high-confidence way to reproduce the issue? Not applicable as a feature PR. The live environment API establishes the missing reviewer rules, while no credentialed store upload was run for this review. Is this the best way to solve the issue? No, not as submitted: a shared release entry point is reasonable, but it should preserve the existing release approval boundary and prove the Android cutover against existing store state. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 1d109710cd98. LabelsLabel changes: No label changes. Label justifications:
EvidenceSecurity concerns:
What I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (3 earlier review cycles)
|
Add no-input iOS and Android release workflows that share preparation and upload commands with local releases. After successful uploads, finalize release metadata through recoverable PRs that preserve linear main history. Use ios-store-release and android-store-release environments and select /Applications/Xcode.app without requiring a specific Xcode version.
Keep Android version defaults unchanged during store releases. Carry the selected version and build codes in a saved plan tied to the source commit, and retain it for local archive builds. Continue finalizing changed release notes after upload. Rename the manual workflows to iOS Store Release and Android Store Release, and update their documentation.
ba1a726 to
674875b
Compare
Add manually triggered iOS Store Release and Android Store Release workflows with the same local release commands. Derive store versions and OpenAI release notes at build time, retain recovery artifacts, and avoid generated metadata commits. Pin queued releases to their dispatch commit, qualify native iOS behavior before signing, and improve Android screenshots and interrupted artifact recovery. Validation includes focused release/planner tests, workflow and type checks, native iOS qualification, Android screenshot capture, and historical release-note exercises. CI failure attribution and remaining hosted release verification are documented in the PR. Closes openclaw#158806
Closes #158806
What Problem This Solves
Mobile maintainers need one repeatable way to prepare and upload a store release from GitHub or a local checkout, without editing and committing generated versions or changelogs.
User Impact
Adds iOS Store Release and Android Store Release, each manually triggered from
mainwith no inputs. They run the same commands as local releases:pnpm ios:release:uploadandpnpm android:release:upload. Preparation derives versions, build numbers, and release notes automatically, without creating metadata commits or PRs.Before the first upload, configure the
ios-store-releaseandandroid-store-releaseenvironments and the documented signing/store secrets;OPENAI_API_KEYis required in CI and locally. App Review submission and Android production promotion remain manual.Why This Change Was Made
Evidence
/Applications/Xcode.appand the pinned native tools.actexercised artifact selection after a failed producer. Its artifact server rejected the pinned upload action's transport, so actual GitHub artifact delivery and cancellation behavior remain to be verified.No builds were published during validation. Hosted runner availability, configured credentials, signing/upload acceptance, and GitHub artifact behavior still require hosted verification. The Android test host used Node 24.19.0; the release workflow selects 24.21.0.
CI corrections and review
ba1a726ab9dalso passed all 229 cases: CLI 5/5 in 3.461s, workflow tools 23/23 in 12.510s, and planner 201/201 in 144.295s. Both enclosing jobs were subsequently cancelled during fail-fast cleanup; these are passing test-file results, not successful job conclusions.Earlier hosted CI also found failures outside the branch changes:
EPROCESSGROUP_CLEANUP_FAILEDwhile finalizing a synthetic preparation child, before oxlint started. The failing test, lint runners, process owner, fixture helpers, configurations, and dependencies are unchanged between the tested main parent and merge. The changed iOS sibling finished 28.5s earlier and uses isolated child environments and temporary directories. One original-plan, two-worker replay passed all 49 files (1,365 tests; 184.933s); the failing file passed 40/40. This is non-reproduction, not a fix: macOS, local fs-safe 0.18.2 versus CI's 0.20.0, an unrelated sibling difference, and platform-specific cases limit the replay. CI did not capture the exact residual process or thread.The second run's iOS build and screenshot jobs were cancelled by fail-fast after the planner failure; they did not establish build or screenshot failures. Pre-rebase CI on
ba1a726ab9dis settled. Its actual failures are the unchanged lint-process test and repeated macOS/shared Periphery findings; the aggregate CI gate is red and other jobs were cancelled. No remaining failure is directly related to this branch. The scoped release and planner tests above completed successfully before cancellation. The user authorized an admin squash bypass for unrelated required-gate failures once the final head has settled.Main subsequently introduced conflicts in two tests retired by this change. The branch was rebased onto
443a0676b92; those retired tests remain removed, and applicable main cleanup was carried into the retained workflow tests. On head674875b9010, all 229 focused tests pass in 108.93s (planner 77.480s, CLI 6.807s, workflow tools 15.362s), alongside workflow validation, root test typechecking, targeted formatting/lint, and diff checks. Fresh independent review found no actionable P0–P2 findings. CI for this refreshed head has settled: 103 successful checks, 110 cancellations, 20 skips, one neutral CodeQL result, and six failure reports (four underlying failures plus two aggregate gates). No remaining failure is directly related to this branch.Final-head attribution for CI run 36238101506:
extensions/qa-channel/src/protocol.ts, removed by main commiteaf8d916f7f(refactor(channels): deslop small channel and access plugins #158441). The QA source, scenarios, and dependency lock are identical between tested merged222ab2da6aand its main parent0805a9d7f59. A focused replay at that merge reproduced the identical missing-reference assertion (3.06s).chat-model-controls.e2e.test.tstimed out clicking the first account-group toggle. Its retained diagnostic shows a renderer-evaluation deadline without a page/browser close event. The entire UI, core/plugin source, test helpers, and runner are unchanged by this branch. One bounded original-shard replay using the exact merge source passed all 80 files / 378 cases in 371.773s, with an identical file set. All 13 affected-file cases passed; the pointer case took 1.916s. This is non-reproduction, not a fix; macOS arm64/Node 24.21 differs from hosted Linux x64/Node 24.19.Squash-merged as
cd2724e4329under the operator’s explicit admin-bypass authorization after CI settled. The operator-authorized iOS and Android store workflows were then dispatched from that squash commit; hosted release verification is in progress.