Skip to content

fix(mobile): build the first release on a channel without a prior build - #360

Merged
nixuuu merged 1 commit into
devfrom
fix/mobile-release-first-build
Nov 8, 2026
Merged

nixuuu merged 1 commit into
devfrom
fix/mobile-release-first-build

Conversation

@nixuuu

@nixuuu nixuuu commented Nov 8, 2026

Copy link
Copy Markdown
Member

The Mobile release run for v0.2.0-nightly.103 failed with mobile-publish-update.sh: line 59: 2: Runtime required. scripts/mobile-release.sh looks 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 the nightly channel, last_runtime is 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

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
nixuuu merged commit cb368e5 into dev Nov 8, 2026
10 checks passed
@nixuuu
nixuuu deleted the fix/mobile-release-first-build branch November 8, 2026 16:37
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.
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