Repository navigation
ci(mobile): publish a permanent latest-Android-APK download link - #22894
jasons2000 wants to merge 5 commits into
Conversation
Every Android release also uploads its APK as orca-android.apk to a fixed mobile-android-latest release, so the README, docs and desktop app can link to one URL that never goes stale. Closes stablyai#7583
There was a problem hiding this comment.
ℹ️ No critical issues — one doc follow-up and a couple of small notes.
Reviewed changes
- Rolling Android release step — new final step in
mobile-android-release.ymlthat copies the versioned release APK to a dedicatedmobile-android-latestprerelease, guarded so only the highestmobile-android-v*version can update it. - README (all locales) + docs site — Android download links repointed from version-pinned
mobile-android-v0.0.50/0.0.48to the stablemobile-android-latestURL. - Desktop in-app links —
mobile-platform-copy.tsandMobileSettingsPane.tsxnow use the stable URL.
I checked the gh contract this step depends on: gh release list includes prereleases and drafts by default, gh release create --latest=false is valid, and --target accepts a full SHA and is ignored when the tag already exists. The guard also fails closed when the release list can't be read. The workflow logic itself looks sound.
ℹ️ Install guide still names the old APK filename
docs/site/content/docs/android-apk.mdx:9 tells users to open Downloads and tap app-release.apk, but the links this PR changes now deliver orca-android.apk. A user following README → Download APK → Install guide, or the desktop pairing screen → Install guide, is told to look for a file that no longer appears. This is only benign if the external onorca.dev download page keeps serving the versioned asset, which the PR notes may change.
Technical details
# Install guide names a filename the new links no longer produce
## Affected sites
- `docs/site/content/docs/android-apk.mdx:9` — instructs tapping `app-release.apk`.
- `README.md:235` (and locale variants) — links this guide next to the new `orca-android.apk` download URL.
- `src/renderer/src/components/mobile/mobile-platform-copy.ts:10` — `ANDROID_INSTALL_GUIDE_URL` reaches the same guide from the desktop in-app flow.
## Required outcome
The install guide should not direct users to a filename the current download links don't produce. Either update it to `orca-android.apk` (or drop the filename, since the browser names the file), or confirm the onorca.dev page keeps serving the versioned asset and leave it.
## Open questions for the human (optional)
- Does the onorca.dev download page repoint at `mobile-android-latest`, and if so, under which filename? That decides whether this is a fix or a no-op.ℹ️ Nitpicks
- The newest-tag probe uses
gh release list --limit 200and then takes the max by version. It fails closed when the current tag falls outside the 200 most recent releases, but it can fail open — overwriting a newer APK with an older one — if a strictly newermobile-android-v*release has aged out of that window while the current one is inside it. Low probability, and it mirrors the existingprevious_taglookup, so no change required unless you want a tag-namespace query instead. - The merge note is accurate: links 404 until
mobile-android-latestexists. Merging just before the next Android release, or seeding once with the provided command, avoids a broken window.
DeepSeek Flash (free via Pullfrog for OSS) | 𝕏
|
Navigate logical layers of code changes, visualize relationships, and explore their blast radius. Note Reviews pausedIt looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the Use the following commands to manage reviews:
Use the checkboxes below for quick actions:
📝 WalkthroughWalkthroughThe Android release workflow selects the highest non-draft Priority: ➖ Normal Severity of issue fixed: Medium Merge Risk: 🟡 Moderate · up to Android download links will not work until the rolling APK is published. Create and verify that release before the links go live. 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
Full details: Docstring CoverageExplanation Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 2 functions across 2 files. (7 skipped: 7 unsupported.)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 3
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Advanced
Run ID: 78e7960e-894c-45a6-bb7a-b4373a600fe3
📒 Files selected for processing (11)
.github/workflows/mobile-android-release.ymlREADME.mddocs/readme/README.es.mddocs/readme/README.fr.mddocs/readme/README.ja.mddocs/readme/README.ko.mddocs/readme/README.pt.mddocs/readme/README.zh-CN.mddocs/site/content/docs/mobile.mdxsrc/renderer/src/components/mobile/mobile-platform-copy.tssrc/renderer/src/components/settings/MobileSettingsPane.tsx
Included review availability: Your plan provides up to 10 included reviews per hour; 9 remain after this review.
Move the rolling-release update into its own job with a concurrency group so an older run cannot overwrite a newer APK, page through all releases instead of the newest 200, fail loudly when the release list cannot be read, and stop naming a download filename in the Android install guide.
|
Thanks for the reviews. Changes in 45f320b:
@coderabbitai summary items
|
|
Re-reviewed
No code changes needed. The only outstanding item is intentional: the new links 404 until the
|
There was a problem hiding this comment.
Caution
Some comments are outside the diff and can’t be posted inline due to GitHub limitations.
🟡 Minor · Retain all pending rolling updates. · mobile-android-release.yml:170-217
.github/workflows/mobile-android-release.yml:170-217
🗄️ Data Integrity & Integration | 🟡 Minor | ⚡ Quick winRetain all pending rolling updates.
The default concurrency queue keeps only one pending job. If v3 publishes while the v1 rolling job runs, then v2 publishes later, the v2 job replaces the pending v3 job. The v2 job sees v3 as newest and exits, so v3 never updates
mobile-android-latest.Enable the larger queue for this concurrency group.
Suggested fix
concurrency: group: mobile-android-latest cancel-in-progress: false + queue: max
🟡 Minor · Create mobile-android-latest before exposing this URL. · README.md:235
README.md:235
🎯 Functional Correctness | 🟡 Minor | ⚡ Quick winCreate
mobile-android-latestbefore exposing this URL.The Android release workflow does not run on a merge. It runs on an
mobile-android-v*tag or manual dispatch, and it createsmobile-android-latestonly after the Android build publishes. If that rolling release does not exist when this merge exposes the README link, GitHub returns 404 for the APK. The changed site, localized README, and app links use the same tag and asset, so delaying only documentation deployment does not prevent the failure. Create the rolling release before merging, or before exposing any of these links.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Advanced
Run ID: e89a7742-7206-4767-a4b9-8fc40f196ba9
📒 Files selected for processing (2)
.github/workflows/mobile-android-release.ymldocs/site/content/docs/android-apk.mdx
🚧 Files skipped from review as they are similar to previous changes (1)
- .github/workflows/mobile-android-release.yml
Included review availability: Your plan provides up to 10 included reviews per hour; 8 remain after this review.
There was a problem hiding this comment.
ℹ️ No critical issues — one minor action-version alignment note.
Reviewed changes
- Rolling update split into its own job —
android-latestnowneeds: android-build, downloads theorca-mobile-apkartifact, and owns theconcurrency: { group: mobile-android-latest, cancel-in-progress: false }lock andcontents: write, so versioned releases stay parallel and only the rolling upload is serialized. - Job outputs added —
android-buildexportstagandpublish_releaseso the new job can gate on the resolved version. - Newest-tag probe paginates — replaced
gh release list --limit 200withgh api --paginate .../releases?per_page=100, and an empty result is nowexit 1rather than a silent skip. - Install guide filename dropped —
android-apk.mdxno longer tells users to tapapp-release.apk.
I verified the artifact name/path pairing, the paginated query under set -euo pipefail, that the rolling tag is excluded by the ^mobile-android-v filter, and that config/scripts/mobile-release-shell-switch-workflow.test.mjs still passes (12 tests). The guard plus job-level concurrency is sound: the versioned release is created before the dependent job runs, and serialization prevents an older run from clobbering a newer APK.
DeepSeek Flash (free via Pullfrog for OSS) | 𝕏
|
Tip For best results, initiate chat on the files or code changes. 🧩 Analysis chain🏁 Script executed: #!/bin/bash
set -euo pipefail
for name in mobile-android-release.yml android-apk.mdx mobile-platform-copy.ts MobileSettingsPane.tsx; do
echo "=== Locate $name ==="
fd -a -F "$name" . || true
done
echo '=== Workflow content ==='
sed -n '1,300p' .github/workflows/mobile-android-release.yml
echo '=== Install guide content ==='
cat docs/site/content/docs/android-apk.mdx
echo '=== Mobile copy outline and content ==='
ast-grep outline src/renderer/src/components/mobile/mobile-platform-copy.ts --items all || true
cat src/renderer/src/components/mobile/mobile-platform-copy.ts
echo '=== Settings pane outline and content ==='
ast-grep outline src/renderer/src/components/settings/MobileSettingsPane.tsx --items all || true
cat src/renderer/src/components/settings/MobileSettingsPane.tsxLength of output: 18476
You are right about docstring coverage. The changed URLs are constants, not functions that need new docstrings. I withdraw that summary item. The permanent links still need One small cleanup remains: the comment beside ✏️ Learnings added
If you found this review helpful, would you consider giving us a shout-out on X? Thank you for using CodeRabbit! You are interacting with an AI system. |
Each rolling-update run now downloads the APK from the newest mobile-android-v* release instead of using its own build, so a re-run of an older version or a queued run GitHub drops can no longer leave the permanent link stale. This also removes the cross-job artifact download.
|
@coderabbitai re the outside-diff note "Retain all pending rolling updates": fixed in d57a313, a different way from |
There was a problem hiding this comment.
Actionable comments posted: 1
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Advanced
Run ID: f287f734-d2e3-412a-9463-3f29c84d7e47
📒 Files selected for processing (1)
.github/workflows/mobile-android-release.yml
Included review availability: Your plan provides up to 10 included reviews per hour; 9 remain after this review.
There was a problem hiding this comment.
✅ No new issues found.
Reviewed changes
- Rolling job now sources the APK from the release itself —
android-latestdropped the cross-joborca-mobile-apkartifact download and now runsgh release downloadfor the APK on the newestmobile-android-v*release. - Per-run "is this newest?" skip removed — every rolling run publishes whichever
mobile-android-v*release is highest at execution time, making the job idempotent so a re-run or a GitHub-dropped pending run can no longer downgrade or stale the rolling link. tagjob output removed — the rolling job no longer readsneeds.android-build.outputs.tag;publish_releaseremains the gate.
I re-checked the pieces the new step depends on: gh release download --dir creates its target directory (the same invocation is used unchaperoned in packaged-browser-e2e.yml) so removing download-artifact@v4 leaves no missing-directory gap; the ^mobile-android-v filter still excludes mobile-android-latest; --pattern '*.apk' pulls only assets and fails closed on no match; and no remaining code or docs reference needs.android-build.outputs.tag or the artifact name. The idempotent design also closes the concurrency-queue hole flagged earlier — the last rolling job to execute always re-queries the release list, so the newest version is the one published.
DeepSeek Flash (free via Pullfrog for OSS) | 𝕏
|
Tip For best results, initiate chat on the files or code changes. 🧩 Analysis chain🏁 Script executed: #!/bin/bash
set -euo pipefail
file=.github/workflows/mobile-android-release.yml
ast-grep outline "$file" || true
rg -n -C 8 'android-latest:|concurrency:|mobile-android-v|release download|release upload|--latest=false|--prerelease|publish_release|gh api|gh release' "$file"Length of output: 8655
✏️ Learnings added
You are interacting with an AI system. |
Upload the new APK under a staging name, then delete the old asset and rename the staged one, so the permanent link no longer 404s for the whole upload or after a failed one.
There was a problem hiding this comment.
✅ No new issues found.
Reviewed changes
- Staged the rolling APK before replacing it — on an existing
mobile-android-latestrelease, the step now copies the newest APK to$RUNNER_TEMP/orca-android.next.apk, uploads that with--clobber, deletes the previousorca-android.apkby asset ID, and renames the staged asset into place, so the permanent URL stays live for the whole upload instead of being deleted up front. - Added a post-upload guard — the step fails if the staged asset is missing after upload, and only deletes the current asset when one exists.
I traced the swap: --clobber deletes only same-name assets, so the staged upload cannot touch orca-android.apk; the asset_id helper exact-matches on name, so the renamed asset is the one just uploaded; and the create path still produces an asset literally named orca-android.apk. There is no non-error path that leaves the wrong or a stale asset behind.
DeepSeek Flash (free via Pullfrog for OSS) | 𝕏
Resolve README conflicts: keep main's removal of the TestFlight link and point the Android links at the permanent mobile-android-latest asset.
|
@Jinwoo-H @brennanb2025, a gentle nudge on this one. I've merged |
There was a problem hiding this comment.
Actionable comments posted: 1
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Advanced
Run ID: a253cc8d-c513-41fe-85bf-75d79c71d1ff
📒 Files selected for processing (7)
README.mddocs/readme/README.es.mddocs/readme/README.fr.mddocs/readme/README.ja.mddocs/readme/README.ko.mddocs/readme/README.pt.mddocs/readme/README.zh-CN.md
🚧 Files skipped from review as they are similar to previous changes (4)
- docs/readme/README.ja.md
- docs/readme/README.es.md
- docs/readme/README.zh-CN.md
- README.md
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review.
| Surveillez et pilotez vos agents depuis votre téléphone — soyez notifié quand un agent termine, et envoyez des instructions de suivi où que vous soyez. | ||
|
|
||
| [App Store iOS](https://apps.apple.com/us/app/orca-ide/id6766130217) · [APK Android 0.0.50](https://github.com/stablyai/orca/releases/download/mobile-android-v0.0.50/app-release.apk) · [Docs →](https://www.onorca.dev/docs/mobile) | ||
| [App Store iOS](https://apps.apple.com/us/app/orca-ide/id6766130217) · [APK Android](https://github.com/stablyai/orca/releases/download/mobile-android-latest/orca-android.apk) · [Docs →](https://www.onorca.dev/docs/mobile) |
There was a problem hiding this comment.
🩺 Stability & Availability | 🟡 Minor | ⚡ Quick win
🔎 Supported by static analysis
🏁 Script executed:
git diff 3c1af16e8b989a99940bbfba527771d305b1be54 e61fff753b0368d1ca87e3ddbf227a0a33553e33 -- .github/workflows/mobile-android-release.yml docs/readme/README.fr.md | head -230Repository: stablyai/orca
Length of output: 6163
🏁 Script executed:
set -e
printf '%s\n' '--- workflow head ---'
git show e61fff753b0368d1ca87e3ddbf227a0a33553e33:.github/workflows/mobile-android-release.yml | nl -ba | sed -n '1,270p'
printf '%s\n' '--- related references in head tree ---'
git grep -n -E 'mobile-android-latest|publish_release|mobile-android-v' e61fff753b0368d1ca87e3ddbf227a0a33553e33 -- .github docs README.md 2>/dev/null | head -240 || true
printf '%s\n' '--- repository refs containing rolling tag ---'
git ls-remote --tags https://github.com/stablyai/orca.git 'refs/tags/mobile-android-latest' 'refs/tags/mobile-android-v*' 2>/dev/null | tail -30 || true
printf '%s\n' '--- GitHub release evidence ---'
curl -LfsS --max-time 20 -H 'Accept: application/vnd.github+json' 'https://api.github.com/repos/stablyai/orca/releases?per_page=100' \
| python3 -c 'import json,sys; rows=json.load(sys.stdin); print(json.dumps([{"tag_name":r.get("tag_name"),"draft":r.get("draft"),"prerelease":r.get("prerelease"),"assets":[a.get("name") for a in r.get("assets",[])]} for r in rows if r.get("tag_name","").startswith("mobile-android")], indent=2))'Repository: stablyai/orca
Length of output: 20929
🏁 Script executed:
set -e
git show e61fff753b0368d1ca87e3ddbf227a0a33553e33:.github/workflows/mobile-android-release.yml | nl -ba | sed -n '1,270p'Repository: stablyai/orca
Length of output: 12255
Bootstrap mobile-android-latest before publishing these links.
The workflow runs only for a mobile-android-v* tag push or manual dispatch. A README update does not trigger it. The inspected release inventory contains mobile-android-v0.0.50 with app-release.apk, but no mobile-android-latest release. Therefore these links can return 404 until the rolling release is created. Run the workflow manually with publish_github_release=true and confirm that orca-android.apk exists before publishing the README changes.
🧰 Tools
🪛 LanguageTool
[typographical] ~43-~43: Grupperingssymboler: ']' ser ut att saknas
Context: ...bile-android-latest/orca-android.apk) · [Docs →](https://www.onorca.dev/docs/mobi...
(UNPAIRED_BRACKETS)
There was a problem hiding this comment.
✅ No new issues found.
Reviewed changes
- Merged
main(3c1af16e8b) into the branch and resolved the README conflicts by keeping main's removal of theTestFlightlink while retaining the permanentmobile-android-latestAndroid links inREADME.mdand all seven localized READMEs. - Confirmed the merge resolution is clean:
git diff 3c1af16e8b..e61fff7 -- README.md docs/readme/contains only the Android-link change, so the branch tracks main everywhere else, and no conflict markers remain. - No authored change to the workflow or renderer files in this delta; they are byte-identical to the previously reviewed
49c3dc1state.
DeepSeek Flash (free via Pullfrog for OSS) | 𝕏
|
| gh release create "$latest_tag" \ | ||
| --repo "$GITHUB_REPOSITORY" \ | ||
| --target "$GITHUB_SHA" \ | ||
| --title "Orca Mobile Android (latest)" \ | ||
| --prerelease \ | ||
| --latest=false \ | ||
| --notes "$notes" \ | ||
| "$stable_apk" |
There was a problem hiding this comment.
Download links start at 404 The README, docs, and desktop app switch to
mobile-android-latest/orca-android.apk immediately, but this job creates that release only after a later Android release runs. Until then, users cannot download the APK from those links. The proposed manual seed is not a reliable workaround: the repository's release policy deletes a manually published mobile-android-latest release because its tag is outside the allowed patterns. Create and verify the asset through a policy-compatible path before switching the links.
| if [ -n "$current_id" ]; then | ||
| gh api -X DELETE "repos/$GITHUB_REPOSITORY/releases/assets/$current_id" | ||
| fi | ||
| # A failure here leaves only the staged asset; re-running the job completes the swap. | ||
| gh api -X PATCH "repos/$GITHUB_REPOSITORY/releases/assets/$staged_id" \ | ||
| -f name=orca-android.apk --silent |
There was a problem hiding this comment.
Failed rename breaks downloads If deleting the current APK succeeds but the following rename request fails, the job stops with only
orca-android.next.apk on the release. The permanent orca-android.apk URL then returns 404 until someone reruns the job or another Android release succeeds. Retry the rename or restore the previous asset on failure.
|
Thanks for this! A stable Android link landed in #28143 (5a77f06): https://www.onorca.dev/download/android always redirects to the newest APK, and the README, docs and Settings pane use it, with the redirect bumped on each release. Closing as superseded. |

ELI5
The "download the Android app" links in the README, the docs and the desktop app all name one specific version, so they go out of date whenever a new version ships. This adds one permanent link that always gives you the newest Android app.
What Changed
Before: every Android download link points at a fixed version, such as
.../mobile-android-v0.0.50/app-release.apk. Someone has to bump them by hand after each release (e.g. #21605, #22740), and they drift. Today the README is on 0.0.50, but the desktop app's pairing screen, Settings → Mobile and the docs site still send people to 0.0.48.After: all of those links point at
.../releases/download/mobile-android-latest/orca-android.apk, which always serves the newest build. The Android install guide no longer names a specific filename.Mechanism: the Android release workflow gets a second job,
android-latest. It runs after the existingandroid-buildjob publishes the versioned release, and only when that job published one.mobile-android-v*.orca-android.apkon a singlemobile-android-latestrelease. The job creates that release on first run, marked pre-release and--latest=falseso it never takes the desktop app's "Latest" badge.mobile-android-latestconcurrency group, so each run reads the release list after the previous upload has finished. The versioned release job is outside the group and unchanged.orca-android.next.apk, deletes the old asset, then renames the new one. The link is unavailable only between the delete and the rename, not for the whole ~134 MB upload, and a failed upload leaves the previous APK serving.mobile-android-latesttag and its source archives stay where they were first created, and the release notes link to the versioned release for source and changelog.Why
GitHub's built-in
releases/latest/download/...link can't be used, because desktop releases hold "latest" in this repo. A dedicated release gives Android its own stable URL. Everything that reads Android releases filters on themobile-android-vprefix (the notes-base lookup,prepare-android-release.mjs, and the update-check PRs #18089 and #11825), so the extra release is invisible to them.Alternatives considered:
mobile-android-latesttag on every release. Keeps its source archives in sync, but needs a force-push of a tag from CI. Not worth it for a download link.Linked Issue
Fixes #7583
Visual Proof
N/A. The only user-visible change is where the existing "Download APK" buttons and links go. No layout or copy changes, except that the version number is dropped from link text that can no longer promise a specific version.
Testing
Parsed the workflow YAML, checked the job graph (
needs,if,concurrency,permissions, job outputs), and ranbash -non the new job's script.Ran the new job's release lookup read-only against this repo: it pages through 960 non-draft releases and picks
mobile-android-v0.0.50.gh release download mobile-android-v0.0.50 --pattern '*.apk'returns exactly one APK (134 MB).pnpm test config/scripts/mobile-release-shell-switch-workflow.test.mjs src/renderer/src/components/mobile/MobileHero.test.tsx: 27 passed.Pre-commit oxlint and oxfmt pass.
Not run end to end: the job only runs on a real Android release with
contents: write, which I can't trigger from a fork.Tested on Windows.
I manually tested these changes locally
Automated tests added/updated, or explained why not below
No new automated test: the added logic is a shell job inside a release workflow, and the repo has no harness that runs release steps against the GitHub API.
Merge note: the new links return 404 until
mobile-android-latestexists. Either merge just before the next Android release, or seed it once now from the current APK:The link changes in
mobile-platform-copy.tsandMobileSettingsPane.tsxtouch the same lines as #18089, so whichever lands second needs a one-line rebase. The onorca.dev download page lives outside this repo and could also point at the new URL.AI Disclosure
Drafted with an AI coding assistant (Claude); reviewed by me.
Review
AI code review summary (Claude), covering the areas CONTRIBUTING.md asks for:
ubuntu-latestonly, as before. The desktop change is two URL string constants in the renderer, with no platform-specific code. The permanent URL is the same on every platform.GITHUB_TOKENandcontents: writescope the build job already has. It republishes an APK already published on amobile-android-v*release, adds no new trust source and never force-pushes a tag. Separately, the APK is still signed with the public Expo debug key ([Bug]: Android release APKs are signed with the public Expo template debug keystore #21808). This PR neither causes nor fixes that.mobile-android-latestexists before the new links are used (see the merge note).Agent skill upstream boundary
docs/reference/agent-skill-sharing-upstream-boundary.mdand copies or mechanically translates no upstream skill-installer source, tests, fixtures, registry entries, path tables, comments, or documentation.Notes
Security: see Review above. Cross-platform, SSH and backwards compatibility: no runtime code paths change. Old desktop builds keep their old versioned links, which still work.
Checklist
N/Awith reasonpnpm lint,pnpm typecheck,pnpm test, andpnpm buildpass (or CI will cover; local preferred)