As a maintainer, I want to find out why a merged change did not reach TestFlight and get it delivered, so that testers are never stuck on an old build without anyone knowing why.
Situation
A change was merged a while ago and a tester says there is no new build. I can open GitHub and sign in to the build Mac.
What I do
Open the merged commit on GitHub and read its "TestFlight / Clipper" status.
If there is no status, open the "Seed Exact" run for that commit.
On the build Mac, read the delivery error log and the logs of that build.
Fix the cause.
Re-run the failed "Seed Exact" run on GitHub to ask for another attempt, or let the next merge carry the change.
What I should see
The status tells me where to look: yellow while building or waiting for Apple, green when testers have the build, red with "Delivery failed" and the build number, or missing.
A missing status on a merge that did not change the app is normal. Nothing was built on purpose.
A missing status on a merge that did change the app means the "Seed Exact" run failed, is still running or did not start.
The delivery error log has a line beginning "TestFlight delivery failed:" with the reason.
Each build keeps three logs: one for the build, one for signing and upload, one for the wait on Apple.
A long wait is usually Apple: the third log shows the processing state, and the wait gives up after 45 minutes.
Re-running the failed run on GitHub makes a new attempt with a new build number.
Re-running a run whose build already shipped does nothing. If nobody retries, the next passing merge contains the missing change.
When something goes wrong
The log says "export/upload failed": signing or upload was refused, often an expired certificate or profile. I renew both together and ask for another attempt.
The log says to install another Bun version and update the launch agent: the pinned Bun changed. I install it and run the installer again.
The log says the signing keychain cannot be opened or unlocked: the keychain or its password file is missing on the build Mac. I restore it.
Not included
A failure is reported once. Nothing retries by itself, and nobody is alerted beyond the red status.
There is one build Mac. If it is off or signed out, no builds happen.
An unsigned Apple agreement has no message of its own. It would appear as a refused request. See Troubleshooting a delivery.
A build made by hand is not recorded, so it may be built again.
Trace
Story US-TEAM-07, 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 |
|---|---|
Symptoms, causes and actions; requesting another attempt; running a delivery by hand | |
The whole path, to place a failure in one of its steps | |
The state file, admission rules, retries and the LaunchAgent | |
Why a run did not trigger or failed, and how the worker reads it | |
Each step of the build script and its error messages | |
Build states, timeouts and exit codes while waiting for Apple | |
Keychain, certificate, profile and key files; expiry and renewal | |
When something stops after merge | |
The delivery commands to run by hand | |
The build Mac | |
The Exact pin the worker checks out, and the build verb that can fail |
Code
File | What |
|---|---|
tick: which pushes are waited for, skipped or retried | |
admission: in-progress runs block, failures skip, unchanged app is passed over | |
pending, failure and success statuses and the reported flag | |
the Bun version check and the build number probe | |
the build number check | |
build failed: build.log | |
Info.plist mismatch | |
keychain unlock and export/upload failed | |
TestFlight verification failed | |
rejected, not testable, export compliance and the 45 minute timeout | |
the Bun check on installation | |
where to look and how to request another attempt |
Tests
File | What it checks |
|---|---|
testfailurewaitsforanewattempt | |
testanundeliveredappchangeisbuiltwiththenextpush | |
testinterruptedstatusupdatedoesnotrepeatupload | |
testpersonalbundleandfailedchecksdonotstartdelivery | |
testqueuedpusheswaitforchecksanddeployinorder |
Do you like what you are reading? Subscribe to receive updates.
Unsubscribe anytime