Inconsistent macOS unit tests failures in CI
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 35/100
Research direction
Start by inspecting the Buildkite macOS test step and the failed and passed builds linked in the issue; no repository file or test entry point is named. Compare agent and signing details to isolate the intermittent cancellation, then verify that the same commit completes the tests consistently across agents.
Written by the indexing model from the issue text.
Description
You may have noticed some builds failing the macOS tests step. Emphasis on some, because this doesn't seem to be related to the code but to the agent running the builds.
The failure
[16:45:44]: ▸ Build Succeeded
| [16:45:44]: ▸ ❌ error: Could not compute signing task inputs - operation was cancelled. (in target 'AutomatticTracksiOS_AutomatticTracksModelObjC' from project 'AutomatticTracksiOS')
| [16:45:44]: ▸ ❌ error: Could not compute signing task inputs - operation was cancelled. (in target 'AutomatticRemoteLogging' from project 'AutomatticTracksiOS')
| [16:45:44]: ▸ ❌ error: Could not compute signing task inputs - operation was cancelled. (in target 'AutomatticTracksConstantsObjC' from project 'AutomatticTracksiOS')
| [16:45:44]: ▸ ❌ error: Could not compute signing task inputs - operation was cancelled. (in target 'AutomatticTracksModelObjC' from project 'AutomatticTracksiOS')
| [16:45:44]: ▸ ❌ error: Could not compute signing task inputs - operation was cancelled. (in target 'AutomatticTracksiOS_AutomatticTracksTests' from project 'AutomatticTracksiOS')
| [16:45:44]: ▸ ❌ error: Could not compute signing task inputs - operation was cancelled. (in target 'AutomatticEncryptedLogs' from project 'AutomatticTracksiOS')
| [16:45:44]: ▸ ❌ error: Could not compute signing task inputs - operation was cancelled. (in target 'AutomatticTracksEventsForSwift' from project 'AutomatticTracksiOS')
| [16:45:44]: ▸ ❌ error: Could not compute signing task inputs - operation was cancelled. (in target 'AutomatticCrashLoggingUI' from project 'AutomatticTracksiOS')
| [16:45:44]: ▸ ❌ error: Could not compute signing task inputs - operation was cancelled. (in target 'AutomatticTracksModel' from project 'AutomatticTracksiOS')
| [16:45:44]: ▸ ❌ error: Could not compute signing task inputs - operation was cancelled. (in target 'AutomatticTracks' from project 'AutomatticTracksiOS')
| [16:45:44]: ▸ ❌ error: Could not compute signing task inputs - operation was cancelled. (in target 'AutomatticTracksEvents' from project 'AutomatticTracksiOS')
| [16:45:44]: ▸ ❌ error: Could not compute signing task inputs - operation was cancelled. (in target 'AutomatticTracksTestsObjC' from project 'AutomatticTracksiOS')
| [16:45:44]: ▸ ❌ error: Could not compute signing task inputs - operation was cancelled. (in target 'AutomatticTracksTests' from project 'AutomatticTracksiOS')
| [16:45:44]: ▸ ❌ error: Could not compute signing task inputs - operation was cancelled. (in target 'AutomatticExperiments' from project 'AutomatticTracksiOS')
| [16:45:44]: ▸ Testing failed:
| [16:45:44]: ▸ Could not compute signing task inputs - operation was cancelled.
| [16:45:44]: ▸ Testing cancelled because the build failed.
| [16:45:44]: ▸ ** TEST FAILED **
A quick Google search for this brings up a few results (e.g. this, this, and this) but all related to running tests via Fastlane on a Swift Package.
The inconsistency
It works on my machine... But not only that, the same commit can pass on one agent and fail on another. For example 10f02d
and ef5cc5a

I wonder if this has something to do with the agents? Although I don't recall there being any partial update of our fleet. Update: This turned out not to be the case, see details below.
Details
To verify whether we're facing an agent-based issue, I thought we could list failed builds and their agents. If the certain agents consistently pass or fail, that would be an indicator to further investigate the theory.
| Agent | Failed Build(s) | Passed Build(s) |
|---|---|---|
001 |
https://buildkite.com/automattic/tracks-ios/builds/179 | |
002 |
https://buildkite.com/automattic/tracks-ios/builds/179 | https://buildkite.com/automattic/tracks-ios/builds/177 (notice it was before all other failures, though, 2022/08/26 vs 08/29+ 🤔 ) |
004 |
https://buildkite.com/automattic/tracks-ios/builds/167 | https://buildkite.com/automattic/tracks-ios/builds/198 |
007 |
https://buildkite.com/automattic/tracks-ios/builds/180 | |
013 |
https://buildkite.com/automattic/tracks-ios/builds/167 | |
014 |
https://buildkite.com/automattic/tracks-ios/builds/167, https://buildkite.com/automattic/tracks-ios/builds/191 |
Notice that the table is quite empty right now. This repository doesn't see much action.
Update: As you can see, the MV-MKE-X64-004 agent has a failed and a successful build, so clearly the agent-based theory was wrong.
- Dominant language
- Swift
- Stars
- 47
- Forks
- 15
- Avg merge
- 1d 34m
- Merged PRs (30d)
- 1
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- No contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from Automattic/Automattic-Tracks-iOS
-
Difficulty 3/5 1-2 days Newbie friendliness 35/100
-
Difficulty 4/5 3-5 days Newbie friendliness 38/100
Automattic/Automattic-Tracks-iOS#305 · 1 reaction ·
-
Difficulty 5/5 Over a week Newbie friendliness 20/100
Automattic/Automattic-Tracks-iOS#298 · 1 reaction ·
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
All issues in Automattic/Automattic-Tracks-iOS
Similar issues
-
builtin-port enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
cmlarsen/writemorebetter#235 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
callstack/agent-device#3627 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
maziyarpanahi/openmed#4207 · 1 comment ·
Maintainers usually reply within 3 days
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 60/100
meshtastic/Meshtastic-Apple#2603 ·
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Maintainers usually reply within 1 day