Repository navigation
ci(apple): build and test the tvOS app on every pull request - #62
Merged
Merged
Conversation
Running the suites with CODE_SIGNING_ALLOWED=NO strips the Keychain entitlement: about 150 of the first 1,000 iOS tests failed with keychain_read_failed(-34018), and a test waiting on the network hung the run for two hours. Signed locally, the same suites finish in minutes with 9 iOS and 5 tvOS failures, all tracked separately. scripts/apple-test.sh regenerates the project, picks a simulator, signs locally, runs in the US region the expected dates assume, gives every test a time limit, and accepts test classes and a skip list. AGENTS.md and docs/mac-builder.md point at it for work on a Mac.
Matching names that start with "Apple TV" missed a renamed Apple TV simulator. Choose by runtime and family instead, reuse a booted simulator when there is one, and document SILO_SKIP_TESTS.
CI ran only script tests on Linux, so no pull request was ever compiled or unit-tested before merge. This job runs scripts/apple-test.sh for Silo, SiloTV and SiloMac on a hosted macOS runner with the newest Xcode 27, skipping the tests that already fail on main, each listed with the issue that tracks it.
…le-only Review found the name match missed renamed simulators, such as an Apple TV called Living Room; match the device type identifier instead. SiloMac now rejects test classes rather than silently ignoring them, AGENTS.md says it is compile-only, and the new docs section links to the existing signing explanation instead of repeating it.
The macos-26 image ships only Xcode 26, so every job stopped at setup. Use the xcode-27 image the sideload and release workflows use, pin the stable 27.2 rather than the newest install (the image also has a 27.3 beta), and skip only the four PlayerSurfaceLayoutTests that #59 names.
Without XcodeGen installed the check never ran and the script exited 127; validate arguments first so bad input always gets exit 2.
There was a problem hiding this comment.
Hey - I've found 1 issue
Prompt for AI Agents
Please address the comments from this code review:
## Individual Comments
### Comment 1
<location path=".github/workflows/apple-tests.yml" line_range="47" />
<code_context>
+ # The stable release this repo builds with locally; the image also carries betas.
+ - name: Select Xcode 27.2
+ run: |
+ sudo xcode-select -s /Applications/Xcode_27.2.app
+ xcodebuild -version
+
</code_context>
<issue_to_address>
**Release compiler remains untested**
A change that builds and passes tests with Xcode 27.2 but fails with Xcode 27.1 passes this workflow and then breaks the release build, so the mismatch is caught only after merge.
Use the same Xcode version as the release workflows, or test both versions.
</issue_to_address>Testing with 27.2 while release.yml and sideload-ipa.yml build with 27.1 would let a change that breaks the release compiler pass here.
The hosted runner runs the iOS suite about three times slower than a local Mac. An ASS renderer test went past the 60-second limit, and the bearer-rotation playback test missed its fixed 5-second subtitle wait. Give each test 180 seconds in CI and skip the playback test until #64 fixes its wait.
A local xcconfig that turned signing off would strip the Keychain entitlement again, so pass CODE_SIGNING_ALLOWED=YES with the ad-hoc identity, as the CONTRIBUTING simulator recipe does. A booted simulator on a runtime older than the deployment target in project.yml was preferred over a usable one; skip those.
The sed pattern only matched double quotes, so a single-quoted or bare deploymentTarget left the minimum empty and simulator selection crashed. Accept any quote style and fail with a clear message when the key is missing.
The lookup ran first, so a project.yml it could not read stopped the run even though the error told you to set SILO_SIM_ID. Read it only for automatic selection, and allow a trailing YAML comment.
This fork keeps only the Apple TV app, so drop the iOS and Mac jobs and the iOS-only PlayerSurfaceLayoutTests skips.
Code Review Completed! 🔥The code review was successfully completed. |
Xcode re-resolved packages during tests, so a lockfile the release lanes would reject could pass CI. Pass the same two flags as the Fastfile.
Code Review Completed! 🔥The code review was successfully completed. |
Code Review Completed! 🔥The code review was successfully completed. |
Code Review Completed! 🔥The code review was successfully completed. |
2 of 3 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
Related issue: #57, #58, #64
Validation tasks: none
Other clients: Android N/A (Apple CI); Roku N/A (Apple CI); Web N/A (Apple CI)
CI on this repository runs only script tests on Linux.
No pull request is compiled or unit-tested before merge, so bugs that only a build or a test would catch rely on local runs and review bots.
Approach
Adds
.github/workflows/apple-tests.yml: aSiloTVbuild-and-test job on the hostedxcode-27image the sideload and release workflows use, on pull requests and pushes tomain.It tests only tvOS, because this fork keeps only the Apple TV app.
It pins Xcode 27.1, the version the release workflows build with, installs XcodeGen with the existing pinned action, and runs
scripts/apple-test.shfrom the PR this one stacks on.Tests that already fail on
mainare skipped throughSILO_SKIP_TESTS, each with the issue that tracks it, so the job is green onmainand red only for new failures.Each test gets 180 seconds in CI (
SILO_TEST_TIMEOUT), because the hosted runner runs the suite about three times slower than a local Mac.The local test script (#61) is already merged.
Validation
actionlintpasses.test (SiloTV)job passed on every run of this PR before the iOS and Mac jobs were dropped.macos-26, which ships only Xcode 26, and stopped at setup; review caught it and the job now usesxcode-27.Evidence
Evidence: none, no user-visible change.
Risks
actionlintdoesn't list thexcode-27label yet; the existing release workflows already run on it.Checklist
AI Disclosure
ELI5
Every change now gets built and tested as an Apple TV app on a real Mac before it can be merged.