Skip to content

fix(mobile): publish the Android APK's size and checksum with the release - #24037

Merged
nwparker merged 3 commits into
mainfrom
nwparker/bug-apk-missing-certificate-installation-failing
Sep 30, 2026
Merged

nwparker merged 3 commits into
mainfrom
nwparker/bug-apk-missing-certificate-installation-failing

Conversation

@nwparker

@nwparker nwparker commented Sep 30, 2026 •

Copy link
Copy Markdown
Contributor
Files Added Deleted Net
Test 0 0 0 0
Prod 2 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​84 $\color{#cf222e}{\Huge{\mathbf{−}}}$​16 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​68

ELI5

When someone says the Android app won't install, we currently have no way to check whether the file they downloaded is actually intact. This publishes the APK's exact file size and a fingerprint alongside it, so a broken download can be identified in one command instead of guessed at.

What Changed

Before: the Android release published app-release.apk and nothing else. No size, no checksum.

After: it also publishes app-release.apk.sha256 (in sha256sum -c format), and the release body carries the exact byte count and digest.

The mechanism is a new Checksum the APK step in .github/workflows/mobile-android-release.yml. It asserts the build produced exactly one APK, computes size and SHA-256, writes the sibling checksum file, and exposes all three as step outputs. Both release paths — gh release create and the gh release upload --clobber path for an existing tag — now upload the checksum file too. The body text is appended after the existing truncation logic, so the 125k character cap can't eat it. printf rather than a heredoc because YAML block indentation would otherwise leak into the Markdown.

Why

An install that fails with a missing certificate or "There was a problem parsing the package" is usually a download that died near the end. The APK's signature block sits in the last ~100 KB of a 133 MB file, so a truncated download produces a file that looks complete, is only slightly short, and carries no signature at all. Android then reports INSTALL_PARSE_FAILED_NO_CERTIFICATES — which reads to a user like the build is broken.

Because we published neither a size nor a digest, every such report has been unfalsifiable: nobody could separate "your download is short" from "the build is bad" without fetching the asset and deriving both by hand. That's a large part of why #24011, #12248 and #11444 have all stayed open. Fifteen lines makes every future report self-diagnosing, and gives a user a concrete recovery check rather than "try again".

Alternatives considered:

  • Put the digest only in the release notes. Half the value — a reader has to retype a 64-character hex string. The sibling file makes verification one command. Both are cheap, so ship both.
  • Attach the checksum to the GitHub Actions artifact only. Invisible to the people who actually hit this, who download from the release page.
  • Fix the download stall instead ([Improvement]: Android direct-download often stalls at 99% — make install path more resilient #11444). Worth doing and out of scope here; this is the diagnostic that tells us whether that's even what's happening.

Deliberately not in this PR:

  • v1 (JAR) signing. An earlier revision of this PR added it, on the theory that some non-stock installers only read the v1 signature and reject our v2-only APK. There's no evidence yet that this is what any reporter actually hit, and the stock installer path handles v2 correctly, so it's speculative. Dropped pending the details requested on [Bug]: APK missing certificate, installation failing #24011. (Note the constraint is not old devices — minSdk 24 already excludes anything below Android 7.)
  • A real release keystore ([Bug]: Android release APKs are signed with the public Expo template debug keystore #21808). These APKs are signed with the public expo-template-bare-minimum debug keystore, which is the genuinely serious issue. It needs a generated keystore plus repo secrets, and rotating the key breaks in-place updates for every existing install — a product decision, not a reviewable diff. No key changes here.

Linked Issue

Refs #24011, #12248, #11444.

Intentionally not Fixes — this does not resolve the root cause of any of them. It is the missing evidence that lets us pick which root cause applies.

Visual Proof

N/A — no UI or interaction change. The only user-visible surface is the Android release body, whose new section renders as:

### Verify your download

- Size: `133555371` bytes
- SHA-256: `79b285ca678e0fa00859f5d9348bfdd9d291eff7e1261cd12012c21e2234bad1`

A "no certificate" or "problem parsing the package" install failure is usually a
truncated download — check the size first, then `sha256sum -c app-release.apk.sha256`.

(Values above are the real ones for the current mobile-android-v0.0.50 asset.)

Testing

Platform: macOS, though nothing here is platform-dependent — the step runs only on the ubuntu-latest release runner.

  1. Replayed the Checksum the APK script against a fixture APK in a temp tree: it asserts the single-APK invariant, emits checksum / bytes / sha256 to $GITHUB_OUTPUT, and the file it writes passes shasum -a 256 -c.
  2. Checked the failure path — with zero or two APKs present the step exits non-zero with the count, so a build that silently changes its output shape fails the release rather than publishing an unverifiable asset.
  3. Rendered the release-notes printf to confirm the Markdown, including that the appended block survives the truncation step above it.
  4. Re-parsed the workflow YAML and confirmed step order and that steps.apk.outputs.* is referenced only after the step that defines it. Asset globs still match *.apk and do not pick up *.apk.sha256.

No automated tests added: this is workflow YAML with no test harness in the repo, and its logic was verified by replaying the script directly (2 and 3 above). The existing mobile/src/mobile-release/ tests cover the release script, which this doesn't touch.

  • I manually tested these changes locally
  • Automated tests added/updated, or explained why not below

Review

Agent skill upstream boundary

  • Not applicable, or this change follows docs/reference/agent-skill-sharing-upstream-boundary.md and copies or mechanically translates no upstream skill-installer source, tests, fixtures, registry entries, path tables, comments, or documentation.

Notes

  • Security: publishes a digest of an already-public artifact; no key, secret, or signing change. It's a mild improvement in provenance — until now the only way to check a download against the release was to already have the release. Note it does not establish authenticity: the signing key is still the public Expo debug keystore ([Bug]: Android release APKs are signed with the public Expo template debug keystore #21808).
  • Backwards compatibility: additive. Adds one release asset and one release-body section; the APK itself is byte-identical to what this workflow produced before.
  • Cross-platform / SSH / performance / mobile: not applicable. Release-workflow only, one sha256sum over a 133 MB file on the runner. No app code changes, so no iOS impact.

@coderabbitai

coderabbitai Bot commented Sep 30, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

Navigate logical layers of code changes, visualize relationships, and explore their blast radius.

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Advanced

Run ID: 1f200d5c-1689-4d20-b4d1-bcb6c4afd46b

📥 Commits

Reviewing files that changed from the base of the PR and between 13e4e75 and 077425f.

📒 Files selected for processing (2)
  • .github/workflows/mobile-android-release.yml
  • config/scripts/create-draft-release.mjs
🚧 Files skipped from review as they are similar to previous changes (1)
  • .github/workflows/mobile-android-release.yml

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 5 remain after this review.


📝 Walkthrough

Walkthrough

The Android release workflow now requires exactly one release APK. It records the APK’s size and SHA-256 digest, creates a .sha256 sidecar, and uploads both files as an artifact and as GitHub release assets. Release notes include verification details. When updating an existing release, the workflow replaces the previous verification section with current APK values. When creating a release, it reserves space for the verification details within the release body length limit.

Priority: ➖ Normal

Architecture Summary

Architecture risk: 🔵 Low · up to 13e4e

The changed surface does not map to a changed system, dependency edge, entrypoint, or external dependency.

Changed systems: None identified.

Architecture concerns
No architecture-level concerns identified.

Review details

Before / after behavior

  • observed — Modified behavior in .github/workflows/mobile-android-release.yml: Adds a checksum step that fails unless exactly one release APK exists, computes its byte size and SHA-256 digest, writes a binary-mode .sha256 sidecar, and exposes the checksum path, size, and digest as workflow outputs.
  • observed — Modified behavior in .github/workflows/mobile-android-release.yml: The uploaded artifact now includes both the APK and its .sha256 sidecar instead of only the APK.
  • observed — Modified behavior in .github/workflows/mobile-android-release.yml: Adds release-note helpers to generate a verification section from the APK size and digest and remove an existing section through end-of-body, including when its heading has CRLF line endings.
  • observed — Modified behavior in .github/workflows/mobile-android-release.yml: Existing releases now receive the checksum sidecar alongside the APK. After replacing the assets, the workflow removes the old verification section, appends one containing the current APK’s values, and updates the release notes.
🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly and concisely describes the main change: publishing the Android APK size and SHA-256 checksum with releases.
Description check ✅ Passed The description is complete and directly addresses the template. It explains the user impact, implementation, rationale, linked issues, testing, visual proof, scope limits, and compatibility considera…
Docstring Coverage ✅ Passed Docstring coverage is 100.00% which is sufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 1 functions across 3 files. (1 skipped: 1 …
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
📝 Generate docstrings
  • Commit to this branch
  • Create a new PR

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1


ℹ️ Review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Advanced

Run ID: f8f481ad-f602-4231-bed5-f37a4901a547

📥 Commits

Reviewing files that changed from the base of the PR and between c3183a4 and a0066d5.

📒 Files selected for processing (4)
  • .github/workflows/mobile-android-release.yml
  • mobile/app.json
  • mobile/plugins/android-apk-v1-signature.js
  • mobile/src/mobile-release/android-apk-v1-signature-plugin.test.ts

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 5 remain after this review.

@greptile-apps

greptile-apps Bot commented Sep 30, 2026 •

Copy link
Copy Markdown

RetriggerConfidence Score: 5/5

[Medium risk] Adds APK size and checksum publishing to the Android release workflow.

The PR appears safe to merge based on the reviewed changes.

Summary

The PR publishes an Android APK checksum alongside the APK and adds its size and digest to release notes.

  • Existing releases have their verification section refreshed when assets are replaced.
  • The new notes-writing path reserves space for that section within the release-body limit.

Reviews (4) · Last reviewed commit: "fix(mobile): reserve the verification se..."

@pullfrog pullfrog Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ℹ️ No critical issues — two minor suggestions inline.

Reviewed changes

  • v1 APK signature restored — new mobile/plugins/android-apk-v1-signature.js config plugin adds enableV1Signing true / enableV2Signing true to the signingConfigs.debug block during expo prebuild, registered in mobile/app.json. Anchored on the keyPassword 'android' line, throws on template drift, idempotent.
  • Size and SHA-256 published — .github/workflows/mobile-android-release.yml adds a Checksum the APK step (asserts one APK, writes app-release.apk.sha256, emits outputs), uploads the digest as an artifact, attaches it to both release paths, and appends a ### Verify your download block after the body truncation.
  • Plugin unit tests — new mobile/src/mobile-release/android-apk-v1-signature-plugin.test.ts covering flag insertion, idempotency, and the loud-failure anchor.

I verified the load-bearing AGP claim against AGP source (DefaultSigningConfig, SigningConfigImpl, SigningConfigVersionsWriterTask → signflinger): the flags are writable ApkSigningConfig properties, an explicit true overrides the minSdk >= 24 default, and the debug config's flags govern a release build type that references it — so the mechanism is sound. Test collection, mobile test scoping, and the allowJs typecheck path all check out, and the existing shell-switch workflow test is unaffected.

Pullfrog  | Fix all ➔ | Fix 👍s ➔ | View workflow run | Using DeepSeek Flash (free via Pullfrog for OSS) | 𝕏

…ease

An APK that fails to install with a missing certificate or a package-parse
error is usually a download that died near the end: the signature block sits
in the last ~100 KB of a 133 MB file, so a truncated APK looks complete and
carries no signature at all. The release published neither a size nor a digest,
so there was no way to tell that apart from a bad build without deriving both
from the asset by hand — which is why the reports have stayed unfalsifiable.

The release now uploads app-release.apk.sha256 next to the APK in
`sha256sum -c` format, and puts the exact byte size and digest in the release
body. The body line is appended after the existing truncation so the character
cap cannot eat it.
@nwparker
nwparker force-pushed the nwparker/bug-apk-missing-certificate-installation-failing branch from a0066d5 to 7c8cef3 Compare September 30, 2026 09:14
@nwparker nwparker changed the title fix(mobile): sign the Android APK for v1 verifiers and publish its checksum fix(mobile): publish the Android APK's size and checksum with the release Sep 30, 2026
Review catches on the checksum step:

`gh release upload --clobber` replaced the APK and its checksum file but left
the release body alone, so a rerun left a digest describing a file nobody could
download any more — worse than publishing none, because a reader comparing
against it would reject a good APK. The existing-release path now rewrites the
body from the current outputs, dropping any previous verification section and
keeping the generated notes. Both paths share one function that emits it.

The checksum file now uses the ` *` binary marker: Git Bash's sha256sum treats
text mode as a licence to translate line endings while hashing, which would
fail on a valid APK. The body also names `shasum -a 256 -c`, since a reader on
macOS has no sha256sum.
@nwparker

Copy link
Copy Markdown
Contributor Author

Addressed the review catches in 13e4e75. All three were real:

  • Stale digest on a rerun (@coderabbitai, @greptile-apps P1) — the --clobber path replaced the APK and checksum but left the body, so a rerun published a digest for a file nobody could download. That is worse than publishing none, since a reader comparing against it rejects a good APK. The existing-release path now rewrites the body from the current step outputs, dropping any previous verification section (tolerating the CRLFs an API round-trip adds) and keeping the generated notes. Both paths now emit the section from one shared function, so they cannot drift.
  • Text-mode checksum marker (@pullfrog) — switched to * binary mode. Git Bash's sha256sum reads text mode as licence to translate line endings while hashing, which would fail on a valid APK.
  • sha256sum missing on macOS (@pullfrog) — the body now names shasum -a 256 -c alongside it.

Verified by extracting the step's script from the YAML and running it against a stubbed gh for all three shapes: existing release whose body already carries a stale section (replaced, real notes preserved), existing release with no section yet (appended), and a fresh release on top of generated notes. Also confirmed a * checksum file passes shasum -a 256 -c.

The remaining P2 — that nothing verifies the built APK's signature schemes before publishing — no longer applies: the v1 signing plugin is out of this PR (see the Why section), so it now changes no signing behaviour at all. Worth doing as part of #21808, where the signing config is actually in play.

@pullfrog

pullfrog Bot commented Sep 30, 2026 •

Copy link
Copy Markdown
Contributor

Verified commit 13e4e75 against the current workflow and resolved the three open threads — no further code changes were needed.

  • Stale digest on rerun: the --clobber path now rebuilds the body from the current step outputs via a shared verification_section, dropping any prior section with drop_verification_section. Confirmed the sed drops both LF and CRLF-delimited sections and passes the generated notes through untouched when no section exists.
  • Binary checksum marker: printf '%s *%s\n' produces * mode; both sha256sum -c and shasum -a 256 -c accept the file.
  • macOS command: the body names shasum -a 256 -c alongside sha256sum -c.
  • Greptile P2 (signature schemes): the v1 signing plugin is out of the PR, so there is no signing behaviour left to verify; noted it belongs with the keystore work in [Bug]: Android release APKs are signed with the public Expo template debug keystore #21808.

Replied to and resolved the two Pullfrog threads and the greptile P2 thread. Working tree clean; nothing to push.

Task list (5/5 completed)
  • Checkout PR and read review threads
  • Verify the three fixes in commit 13e4e75 against the code
  • Re-read review threads fresh before finalizing
  • Reply to and resolve the addressed threads
  • Report final summary

Pullfrog  | View workflow run | via Pullfrog | Using DeepSeek Flash (free via Pullfrog for OSS) | 𝕏

@greptile-apps

greptile-apps Bot commented Sep 30, 2026

Copy link
Copy Markdown

Thanks — these changes address the previously reported issues. The existing-release path now replaces the verification section after clobbering the assets, so the release body stays synchronized with the current APK; the * checksum marker preserves binary hashing semantics; and the macOS shasum -a 256 -c alternative makes the verification instructions usable cross-platform. Given that this PR no longer changes signing configuration, the signature-scheme check belongs with the keystore/signing work in #21808 rather than blocking this change.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1


ℹ️ Review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Advanced

Run ID: 8a391783-34b4-4e84-9d20-8711dc5decb4

📥 Commits

Reviewing files that changed from the base of the PR and between 7c8cef3 and 13e4e75.

📒 Files selected for processing (1)
  • .github/workflows/mobile-android-release.yml

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 5 remain after this review.

@pullfrog pullfrog Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ No new issues found.

Reviewed changes

  • Checksum uses the binary * marker — Checksum the APK now writes printf '%s *%s\n', so Windows Git Bash's text-mode line-ending translation can't produce a spurious sha256sum -c mismatch on a valid APK.
  • Verification block names the macOS tool — the appended release-notes block is now the verification_section printf helper and names both sha256sum -c app-release.apk.sha256 and shasum -a 256 -c (macOS).
  • Reruns refresh the published digest — a new drop_verification_section helper (sed '/^### Verify your download\r*$/,$d') strips the previous section, and the existing-release path rewrites the body after --clobber uploads the new APK + checksum via gh release edit --notes-file, so the published size and digest can no longer describe a replaced asset.

I traced the new shell logic: the verification_section/drop_verification_section functions are defined before both branches, the body-rewrite pipeline sits under set -euo pipefail so a failed gh release view fails the step rather than truncating the notes, and the sed pattern behaves correctly for both LF and CRLF bodies under GNU sed (verified locally). The create path's truncateReleaseBody cap is 120000, leaving headroom under the 125000 API limit for the appended section; the rerun edit operates on an already-capped body and is net-neutral.

Pullfrog  | View workflow run | Using DeepSeek Flash (free via Pullfrog for OSS) | 𝕏

@coderabbitai

coderabbitai Bot commented Sep 30, 2026

Copy link
Copy Markdown
Contributor

Tip

For best results, initiate chat on the files or code changes.

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
set -euo pipefail
ast-grep outline .github/workflows/mobile-android-release.yml || true
nl -ba .github/workflows/mobile-android-release.yml | sed -n '1,320p'
gh pr diff 24037 --repo stablyai/orca

Length of output: 17378


@nwparker, thanks for the fixes and the scope clarification.

I checked .github/workflows/mobile-android-release.yml and the PR diff. The code addresses all three findings:

  • Reruns refresh the release body with the current size and digest while preserving the preceding notes.
  • The checksum file uses the * binary marker.
  • The instructions include shasum -a 256 -c for macOS.

I withdraw the remaining P2 signature-scheme finding. This PR does not change signing behavior. Signature-scheme verification belongs with the signing configuration work in #21808.

This was code inspection only; I did not rerun your manual checks.


✏️ Learnings added
Learnt from: nwparker
URL: https://github.com/stablyai/orca/pull/24037

Timestamp: 2026-09-30T09:45:00.662Z
Learning: In stablyai/orca, PR #24037 changes .github/workflows/mobile-android-release.yml to publish APK size and SHA-256 verification details, not signing behavior. The v1 signing plugin was removed from the PR. Signing configuration and related APK signature-scheme verification should be considered with issue #21808, rather than required for this diagnostic-only change.

Note: Learnings are effective only in the context of similar code segments. To apply general coding guidelines, please configure review instructions. You can manage existing learnings in the app.


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.

… cap

Appending the section after the truncation meant a near-limit body could push
the release past GitHub's character limit, failing `gh release create` — or, on
the upload path, failing `gh release edit` after --clobber had already replaced
the assets, leaving new files described by a stale digest. Both paths now build
the notes, truncate with the section's own length reserved out of the cap, then
append it, so the section always survives and the body always fits.

MAX_RELEASE_BODY_LENGTH is exported from the desktop release script rather than
restated here, so the reserve is computed against one source of truth.
@nwparker

Copy link
Copy Markdown
Contributor Author

Addressed the body-cap catch in 077425f (@coderabbitai). It was real on both paths, not just the upload one: appending the section after truncateReleaseBody meant a near-limit body could exceed the cap on gh release create too.

Both paths now build the notes, truncate with the section's own length reserved out of the cap, then append it — so the section always survives and the body always fits. MAX_RELEASE_BODY_LENGTH is now exported from config/scripts/create-draft-release.mjs rather than restated in the workflow, so the reserve is computed against one source of truth. (wc -c counts bytes, so the section's em dash over-reserves slightly, which errs toward a shorter body.)

Verified against the real truncation module with a 119,900-character existing body carrying a stale section: result is 119,998 characters, stale section replaced, generated notes preserved, fresh digest intact. Re-ran the short-body edit and fresh-create paths unchanged, plus create-draft-release, mobile-release-shell-switch-workflow, mobile-release-check-scope and verify-release-required-assets — 80 tests pass.

@pullfrog pullfrog Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ No new issues found.

Reviewed changes

The delta since the prior pullfrog review is one commit (077425f):

  • Verification section reserved out of the body cap — new write_notes_with_verification() subtracts the section's byte length (verification_section | wc -c) from MAX_RELEASE_BODY_LENGTH before truncating, then appends the section, so the final body can never exceed the cap.
  • The same helper now governs the existing-release path — that path previously stripped and re-appended the section without truncating; it now truncates to the reserved cap too, so a stored body near the API limit cannot push the gh release edit call over the line after --clobber has already replaced the assets.
  • MAX_RELEASE_BODY_LENGTH exported — changed from a module-local const to export const so the workflow's inline node snippet can import it; truncateReleaseBody's signature is unchanged (its second arg already existed).

I replayed the new shell + node logic against a fixture body at the old cap: the reserve computes to 332 bytes, the truncated body lands at exactly 120,000 with a single ### Verify your download section, and the previously appended section is stripped before the rewrite. The create path's if [ ! -s "$notes_file" ] fallback is preserved ahead of the helper, and set -euo pipefail still fails the step on a failed gh release view rather than writing an empty body. No new issues.

Pullfrog  | View workflow run | Using DeepSeek Flash (free via Pullfrog for OSS) | 𝕏

@coderabbitai

coderabbitai Bot commented Sep 30, 2026

Copy link
Copy Markdown
Contributor

Tip

For best results, initiate chat on the files or code changes.

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
set -euo pipefail
ast-grep outline .github/workflows/mobile-android-release.yml || true
ast-grep outline config/scripts/create-draft-release.mjs --match 'MAX_RELEASE_BODY_LENGTH|truncateReleaseBody' || true
git show 077425f -- .github/workflows/mobile-android-release.yml config/scripts/create-draft-release.mjs
rg -n -C 12 'MAX_RELEASE_BODY_LENGTH|truncateReleaseBody|verification|wc -c|gh release (create|edit)' .github/workflows/mobile-android-release.yml config/scripts/create-draft-release.mjs

Length of output: 25420


@nwparker, thanks for the fix and clarification. I checked 077425f and confirm that it addresses the body-cap finding on both release paths.

  • Both paths call write_notes_with_verification before publishing the release body.
  • The helper reserves space for the verification section before truncating the notes, then appends the section.
  • The helper imports MAX_RELEASE_BODY_LENGTH from config/scripts/create-draft-release.mjs.
  • The byte count conservatively reserves space for the section’s em dash.

This was code inspection only. I did not rerun your reported 80 tests.


✏️ Learnings added
Learnt from: nwparker
URL: https://github.com/stablyai/orca/pull/24037

Timestamp: 2026-09-30T09:57:31.063Z
Learning: In stablyai/orca, .github/workflows/mobile-android-release.yml must reserve space for the APK verification section before truncating release notes on both existing-release and fresh-release paths. The shared write_notes_with_verification helper imports MAX_RELEASE_BODY_LENGTH and truncateReleaseBody from config/scripts/create-draft-release.mjs, subtracts the section's byte length from the cap, truncates the notes, then appends the section. Counting the section with wc -c conservatively over-reserves for its non-ASCII characters.

Note: Learnings are effective only in the context of similar code segments. To apply general coding guidelines, please configure review instructions. You can manage existing learnings in the app.

You are interacting with an AI system.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant