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 |
|---|---|
Section parent: from merge to a tester's phone, the pieces and their history | |
The workflow that must be green on the push before anything is built | |
The poller that turns green pushes into builds: ordering, skip rules and commit statuses | |
testflight.sh: build number scheme, unsigned archive, re-seal, export and upload | |
Waiting for Apple, the export compliance fallback and the notification | |
The identities, profile and key files on the build Mac | |
Steps 12 to 15: merge, workflow run, build and internal testing | |
Clipper, the Mac where builds happen | |
The delivery commands | |
When delivery moved to the production bundle and ordered builds | |
No iOS build in CI; iOS only; no migration from React Native | |
The suite the worker runs again before every build |
Code
File | What |
|---|---|
triggers: pull requests and pushes to main that touch the app | |
steps: unit tests, real vault suite and worker tests | |
tick: ordering, skip rules, statuses and the shipped commit | |
deliver: pin Exact, reserve a build number, test, run testflight.sh | |
allocatebuild: days since 2019, hour, minute | |
status: the TestFlight / Clipper commit status | |
version, build number and the unsigned device archive | |
export compliance declared in the build | |
export, upload and verification | |
polling until the build is in internal testing; the notification | |
installs the LaunchAgent that runs the worker every 180 seconds | |
pinned Bun and the app version 0.1.0 |
Tests
File | What it checks |
|---|---|
testsuccessispublishedonceandrerunningagreenbuildisanoop | |
testpersonalbundleandfailedchecksdonotstartdelivery | |
testqueuedpusheswaitforchecksanddeployinorder | |
testpushesthatleavetheappalonearenotdelivered | |
testinterruptedstatusupdatedoesnotrepeatupload |
Do you like what you are reading? Subscribe to receive updates.
Unsubscribe anytime