Repository navigation
fix(mobile): build the first release on a channel without a prior build - #360
Merged
Merged
Conversation
The mobile release planner asked the update service for the latest update of the last delivered build's runtime. On the first release after OTA support there is no delivered build on the new channel, the runtime was empty, and the publisher exited with 'Runtime required', so nightly.103 shipped no iOS build. Skip the lookup when there is no delivered build. Fixes: #357
nixuuu
added a commit
that referenced
this pull request
Nov 8, 2026
Fixes: #357 The first mobile release after #357/#360 (`nightly.104`, run 42501709806) queued the iOS build and TestFlight submission, but OTA publication failed: > EAS Update code signing requires a subscription to the EAS Production or Enterprise plan. This account (itsol) currently has a subscription to the Starter plan. The maintainer chose unsigned EAS Update on Starter until the company's own Expo Updates server replaces EAS. Trust now rests on EAS and HTTPS, without an independent Canopy signature; compromise of the EAS account or service could replace JS. Signing will return with the self-hosted server. Changes: - Remove the app's signing configuration, public certificate, `.gitignore` exception and explicit fingerprint input. Both platform fingerprints change, so the next iOS release needs a full build. The already submitted `nightly.104` binary embeds the certificate and will receive no unsigned OTA until replaced. - Publish without a private key or `--private-key-path`; remove the signing-key requirement from history and deduplication. Preserve exact release-message matching, runtime/branch filtering, rollback exclusion, channel isolation, build-versus-OTA planning, manual-only Android builds, idempotency and older-commit skipping. - Stop passing `EXPO_UPDATES_PRIVATE_KEY` in the workflow. Leave the GitHub secret untouched and unused for signing's return. Preserve the server-swap boundary: `updates.url` and `mobile-publish-update.sh`. - Replace signer-file tests with unsigned publication, deduplication and failure coverage; update Polish mobile/release docs and the mobile instructions. Validation: - `bun install`, `bun run gen:check`, `bun run typecheck` (including mobile), `bun run lint`, `bun run format:check`, `bun run check:tmp`, and `bun run --filter @canopy/web build`. - `bun test scripts/mobile-release.test.ts`: 17 passed. - Full `check:tmp`: 1,804 passed, 161 skipped, zero failures; no test temp directories left. Scratch data stayed under the worktree, with a Git discovery ceiling so plain-folder fixtures could not discover the parent checkout. - `bunx --no-install expo config --type public --json`: no `codeSigningCertificate` or `codeSigningMetadata`; offline `@expo/fingerprint` generation succeeded for both platforms and confirmed changed hashes. - actionlint 1.7.12, shellcheck 0.11.0, `bunx --no-install expo lint`, and Expo Doctor (20/20 checks). - No real EAS build, submit or update commands were run. The existing GitHub secret was not modified. Copy audit: no UI text changed; the Settings update line is unchanged.
This was referenced Nov 13, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The Mobile release run for
v0.2.0-nightly.103failed withmobile-publish-update.sh: line 59: 2: Runtime required.scripts/mobile-release.shlooks up the latest OTA update for the runtime of the last delivered iOS build on the channel. This is the first release after #357, so there is no delivered build on thenightlychannel,last_runtimeis empty and the publisher refuses the lookup — the whole planner aborts and no iOS build reaches TestFlight.The planner now skips the lookup when there is no delivered build (nothing can have been published to a runtime that was never shipped), so the first release falls through to a full native build as intended.
Tests: new offline planner case "the first release on a channel without a delivered build builds iOS" fails on the old script and passes now; all 13 mobile release policy tests pass. Typecheck, lint and format clean.
Copy audit: no UI text changed.
Fixes: #357