Get every merged app change on TestFlight
A tester wants every merged change to the app to arrive on TestFlight by itself, in order, without asking anyone for a build.

As a tester, I want every merged change to the app to arrive on TestFlight by itself, so that I always try the latest app without asking anyone for a build.

Situation

I am an internal tester of Seed with TestFlight on my iPhone. A change to the mobile app has just been merged.

What I do

    Do nothing at first: no request, no button.

    A few minutes after the merge, open TestFlight and look at Seed.

    Tap "Update" and open the app.

    If I want to know which change a build contains, open the merged commit on GitHub and read its "TestFlight / Clipper" status.

What I should see

    Every merge that changes the app produces a new build without anyone starting it.

    The build appears in TestFlight for internal testers, usually within minutes of the merge when the build Mac is online.

    The version stays "0.1.0". Each build has its own number of three parts, such as "2893.14.7": days since the start of 2019, then the hour and minute of the build.

    The merged commit carries a "TestFlight / Clipper" status: first "Building Seed Exact" with the build number, then "Available to internal testers" with the same number.

    The status turns green only after Apple reports the build as available for internal testing.

    Builds arrive in the order the changes were merged. Merges made while the build Mac was offline are built in order when it returns.

    A merge that leaves the app unchanged produces no build and no status.

    A change whose tests failed after the merge is not built.

    TestFlight does not ask the export compliance question for a build.

    The project lead receives a message that the build "is on TestFlight and available to internal testers. Open TestFlight to update."

When something goes wrong

    No new build appears and the commit's status is red with "Delivery failed" and a build number: nothing reached TestFlight. I tell a maintainer, who re-runs the failed "Seed Exact" check on GitHub to ask for another attempt. If nobody does, the next merge that passes is built and contains the missing change. See Find out why a build did not ship and fix it.

Not included

    Builds go to internal testers only. There is no external testing group and no App Store release.

    Only the project lead is notified. Other testers find the build in TestFlight.

    The interface tests are not run before a build, only the unit tests. See GitHub Actions workflow.

    Installs of the older React Native app are not migrated. See Current limits and known gaps.

Trace

Story US-TEAM-01, status Shipped. These links are kept in step with the traceability matrix and with the "User stories" section of every page listed here.

Design

This story is about the team's tooling. No design page takes part.

Implementation

Page

Part it plays

CI and delivery

Section parent: from merge to a tester's phone, the pieces and their history

GitHub Actions workflow

The workflow that must be green on the push before anything is built

The Clipper delivery worker

The poller that turns green pushes into builds: ordering, skip rules and commit statuses

Building and uploading to TestFlight

testflight.sh: build number scheme, unsigned archive, re-seal, export and upload

Verifying a build on App Store Connect

Waiting for Apple, the export compliance fallback and the notification

Signing and credentials

The identities, profile and key files on the build Mac

From user workflow to TestFlight

Steps 12 to 15: merge, workflow run, build and internal testing

Clipper and the Ion simulator

Clipper, the Mac where builds happen

Commands and verbs

The delivery commands

History and the React Native archive

When delivery moved to the production bundle and ordered builds

Current limits and known gaps

No iOS build in CI; iOS only; no migration from React Native

Bun unit tests

The suite the worker runs again before every build

Code

File

What

.github/workflows/seed-exact.yml L3-13

triggers: pull requests and pushes to main that touch the app

.github/workflows/seed-exact.yml L25-45

steps: unit tests, real vault suite and worker tests

tools/clipper-deploy.py L83-158

tick: ordering, skip rules, statuses and the shipped commit

tools/clipper-deploy.py L51-80

deliver: pin Exact, reserve a build number, test, run testflight.sh

tools/clipper-deploy.py L40-48

allocatebuild: days since 2019, hour, minute

tools/clipper-deploy.py L35-37

status: the TestFlight / Clipper commit status

tools/testflight.sh L25-37

version, build number and the unsigned device archive

tools/testflight.sh L53-58

export compliance declared in the build

tools/testflight.sh L91-142

export, upload and verification

tools/testflight-verify.mjs L68-113

polling until the build is in internal testing; the notification

tools/install-clipper-ci.sh

installs the LaunchAgent that runs the worker every 180 seconds

package.json L25-26

pinned Bun and the app version 0.1.0

Tests

File

What it checks

tools/test_clipper_deploy.py

testsuccessispublishedonceandrerunningagreenbuildisanoop

tools/test_clipper_deploy.py

testpersonalbundleandfailedchecksdonotstartdelivery

tools/test_clipper_deploy.py

testqueuedpusheswaitforchecksanddeployinorder

tools/test_clipper_deploy.py

testpushesthatleavetheappalonearenotdelivered

tools/test_clipper_deploy.py

testinterruptedstatusupdatedoesnotrepeatupload

Delivery

Delivered by #1470, #1472, #1496.

Do you like what you are reading? Subscribe to receive updates.

Unsubscribe anytime

Connections0
Linked document ยท Outgoing linkLinked documentLinked document ยท Outgoing linkLinked documentLinked document ยท Outgoing linkLinked documentLinked document ยท Outgoing linkLinked documentLinked document ยท Outgoing linkLinked documentLinked document ยท Outgoing linkLinked documentLinked document ยท Outgoing linkLinked documentLinked document ยท Outgoing linkLinked documentLinked document ยท Outgoing linkLinked documentLinked document ยท Outgoing linkLinked documentLinked document ยท Outgoing linkLinked documentLinked document ยท Outgoing linkLinked documentLinked document ยท Outgoing linkLinked documentLinked document ยท Outgoing linkLinked documentLinked document ยท Outgoing linkLinked documentLinked document ยท Outgoing linkLinked documentLinked document ยท Outgoing linkLinked documentGet every merged app change on TestFlightGet every merged app chanโ€ฆ
Citations 0Children & links 17

Loading child documentsโ€ฆ

Connections show where other documents or comments link to this document.

Related documents

Loading connectionsโ€ฆ