Repository navigation
Link the Android APK through a stable URL and bump it on release - #28143
Conversation
READMEs, the docs site, and the desktop app now link https://www.onorca.dev/download/android, which the marketing site redirects to the current APK, so none of them need a per-release edit. A published Android release opens a PR on the marketing site that bumps its one ANDROID_RELEASE_VERSION constant; a failed bump is reported in the job summary and does not fail the release. Claude-Session: https://claude.ai/code/session_01JNnE9qzUZMMnqpZWCqM3nb
7f02260 to
2d8761d
Compare
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info
📝 Walkthrough
Priority: ➖ Normal Merge Risk: 🟡 Moderate · up to
|
There was a problem hiding this comment.
Actionable comments posted: 2
ℹ️ Review info
⚙️ Run configuration
- Configuration used: Repository UI
- Review profile: CHILL
- Plan: Advanced
- Run ID:
78cdc4c9-2157-406f-9a3b-fe34c7261d99
📒 Files selected for processing (13)
.github/workflows/mobile-android-release.ymlREADME.mdconfig/scripts/bump-android-apk-download-version.mjsconfig/scripts/bump-android-apk-download-version.test.mjsdocs/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: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 8 remain after this review.
| if: failure() | ||
| run: | | ||
| echo "::warning::The release is published, but the site's Android APK download was not bumped to $VERSION." | ||
| printf '### Android APK download not bumped\n\nThe release is published, but /download/android still serves the previous APK. Rerun this job, or set `ANDROID_RELEASE_VERSION` in `src/lib/downloadTargets.ts` of %s to `%s` by hand.\n' "$SITE_REPO" "$VERSION" >> "$GITHUB_STEP_SUMMARY" |
There was a problem hiding this comment.
📐 Maintainability & Code Quality | 🟡 Minor | ⚡ Quick win
Suppress the false-positive ShellCheck diagnostic.
The Markdown backticks in this single-quoted printf format are intentional. ShellCheck reports SC2016 here, and actionlint reports that diagnostic as an error. Add a targeted # shellcheck disable=SC2016 before this command so actionlint validation passes. Do not switch to double quotes; the backticks would then have shell meaning. (github.com)
Source: Linters/SAST tools
| const ANDROID_COPY: InstallCopy = { | ||
| ctaLabel: 'Download APK', | ||
| url: 'https://github.com/stablyai/orca/releases/download/mobile-android-v0.0.52/app-release.apk' | ||
| url: 'https://www.onorca.dev/download/android' |
There was a problem hiding this comment.
🎯 Functional Correctness | 🟠 Major | ⚡ Quick win
✅ Runtime observed
🏁 Script executed:
#!/bin/bash
set -euo pipefail
curl --fail --silent --show-error --location --max-redirs 10 \
--output /dev/null \
--write-out 'HTTP %{http_code}\nFinal URL: %{url_effective}\n' \
'https://www.onorca.dev/download/android'Repository: stablyai/orca
Length of output: 262
Deploy the Android download route before merging this URL.
https://www.onorca.dev/download/android currently returns HTTP 404. Until the marketing-site route is deployed, the changed Android links lead to a missing page. Confirm that the route returns HTTP 200 and redirects to the current APK asset.
Validation command
curl --fail --silent --show-error --location --max-redirs 10 \
--output /dev/null \
--write-out 'HTTP %{http_code}\nFinal URL: %{url_effective}\n' \
'https://www.onorca.dev/download/android'
What this does
After an Android release, nobody has to edit APK links anymore.
mobile-android-release.ymlpublishes a GitHub Release, a newbump-apk-downloadjob opens a PR on the marketing site that changes its singleANDROID_RELEASE_VERSIONconstant. Merging that PR updates the redirect, the download page, and the site docs together.Why this design
releases/latestbelongs to desktop, and Android releases are published as prereleases.How the bump behaves
bump/android-apk-<version>, and a rerun updates the existing open PR instead of opening a second one.continue-on-error. If it fails, the run summary says so and explains how to fix it by hand.homebrew-bump.yml, becauseGITHUB_TOKENcan't push to another repo and PRs it opens don't run checks. It pushes only one commit that changes a.tsfile, so it can't hit the "workflowsscope" push error.Setup needed (Jinwoo)
homebrew-bump.ymlsays the app is installed org-wide, but I can't see installations from here. If it's installed only on selected repos, add the marketing repo.[skip ci]dummy commit message onmain, so the site never deploys. That's why Supportcmd + shift + xfor striking through texts in the visual markdown editor #336 needed a manual deploy. The one-time fix is in the marketing repo settings: set the squash merge default message to "Pull request title and description". Until then, merge bump PRs with a merge commit, or rundeploy.yamlby hand. Details are in stablyai/orca-marketing-website#337.BUFO_BOT_PRIVATE_KEYis already a secret here (used byhomebrew-bump.yml). Nothing new is needed unless it's scoped to an environment.Testing
config/scripts/bump-android-apk-download-version.test.mjscovers: bump, numeric comparison (0.0.9 to 0.0.10), no-op for the same or a newer version, and a loud failure if the declaration moves.gh. The first run created the branch and PR. A rerun force-updated the same branch and reused the PR. An older version was a no-op.check-readme-local-links, the changed-code quality gate, and the renderer mobile/settings tests pass.Not verified
The job hasn't run on GitHub. That needs a real Android release. The first live run will show whether the app token can reach the marketing repo.