Skip to content

ci: build with Xcode 27.1 and test on the newest simulator that runs each device - #888

Merged
Quick104 merged 2 commits into
mainfrom
ci/xcode-27-1
Oct 23, 2026
Merged

Quick104 merged 2 commits into
mainfrom
ci/xcode-27-1

Conversation

@Quick104

@Quick104 Quick104 commented Oct 23, 2026 •

Copy link
Copy Markdown
Contributor

Problem

Related issue: N/A
Validation tasks: none

Release and regression builds use Xcode 27.0, whose iOS SDK runs the app letterboxed on the iPhone Duo. Xcode 27.1 is the first SDK that lays the app out on the Duo's screens. Moving to it breaks the regression job's iOS tests: the iOS 27.1 simulator runtime runs only the iPhone Duo, and the job creates its iPhone 17 Pro from the runtime that matches the SDK version.

Approach

  • release.yml, player-regression.yml, and sideload-ipa.yml select Xcode 27.1. tvOS and macOS keep their 27.0 SDKs, which Xcode 27.1 ships.
  • apple-build-metadata.py owns the test simulator rule. The test runtime is the newest one from the SDK's major release, no newer than the SDK, that runs the scheme's test device (iPhone 17 Pro or Apple TV 4K). Under Xcode 27.1 that is iOS 27.0 for an iOS 27.1 SDK.
  • The regression job gets its runtime and device from the script's new --test-simulator option, run from the controller checkout. The release job's live toolchain discovery uses the same rule, so release proof from the regression job still matches the release job's toolchain.
  • A prepared runtime is still rejected when it comes from another major release, can't run the test device, or a newer runtime that runs the device is installed.

Testing on the iPhone Duo was the other option. A player layout test fails there because its windows are larger than the folded screen, and every iOS test would run on that small screen.

Validation

  • CI script tests: apple-build-metadata 37 passed (new runtime-rule tests included), find-regression-proof 35 passed, select-apple-platforms 51 passed.
  • Simulator selection step run locally under Xcode 27.1: iPhone 17 Pro on iOS 27.0, Apple TV 4K on tvOS 27.0. Live metadata records iOS SDK 27.1 with runtime 27.0.
  • Full SiloTests on iPhone 17 Pro / iOS 27.0, built with Xcode 27.1 and ad hoc signed as in CI: 3,327 tests, 0 failures.
  • Workflow YAML parses; the edited step passes bash -n.
  • Runtime download fallback, run against stubbed xcrun and xcodebuild: selects iOS 27.0 with nothing installed, with only 27.1 installed, and with 27.0 installed.
  • Not run: this workflow on GitHub's xcode-27 runner. Its image ships Xcode 27.1 build 27A9275; the local checks used 27A9269.

Evidence

Evidence: https://evidence.siloserver.org/r/silo-apple/pr-888/

On the iPhone Duo, main built with Xcode 27.0 runs scaled up in compatibility mode, folded and open, with the bottom tab bar. Built with Xcode 27.1 it runs at native scale, and the system replaces the tab bar with its rail of destinations; #889 lays the app out for that. Other devices don't change: iPhone and iPad run at native scale with either SDK, and tvOS and macOS keep their 27.0 SDKs. The page also has the steps and test results.

Risks

  • Regression proof recorded under Xcode 27.0 no longer matches the release toolchain. Releases reuse proof only from main runs after this merges.
  • iOS tests run on the iOS 27.0 simulator until Apple ships an iOS 27.x runtime that runs the iPhone 17 Pro. The rule picks it up then.

Checklist

  • I read and can explain the complete diff.
  • This pull request addresses one concern.
  • The Evidence section shows every change a user can see, or says there is none.

AI Disclosure

  • Harness: Claude Code (in T3 Code)
  • Tool(s): Claude Code
  • Model(s): claude-opus-5-5
  • Involvement: Fully AI-generated; the developer directed the change and chose the runtime approach
  • Adversarial review: n/a

🤖 Generated with Claude Code

Note

Build CI with Xcode 27.1 and pick the newest compatible simulator per device

  • Updates the Xcode version from 27.0 to 27.1 across the regression, release, and sideload IPA workflows.
  • Adds a new test_simulator mode in apple-build-metadata.py. It picks the newest available runtime in the SDK's major release that supports the scheme's test device and is no newer than the SDK version. The regression workflow uses this to prepare its simulator, with a fallback that downloads the major release's .0 platform when no compatible simulator exists.
  • Tightens prepared-runtime validation: a captured runtime must be the newest compatible candidate and support the required device, not just match the SDK version exactly.
  • Command failures now raise a RuntimeError that names only the executable, so secret arguments stay hidden.
  • Extends apple-build-metadata.test.py with fixtures and tests for device compatibility, runtime ordering, point-release fallback, and sanitized command failures.
  • Behavioral Change: mobile toolchain metadata may now record an earlier compatible runtime in the same SDK major release instead of the exact SDK runtime; captured inventories still require the requested runtime identity.

Macroscope summarized bbd7a1d.

…each device

Xcode 27.1 is the first SDK that lays the app out on the iPhone Duo.
Its iOS 27.1 simulator runtime runs only the iPhone Duo, so the
regression job's iPhone 17 Pro could no longer be created from the
SDK-matching runtime.

apple-build-metadata.py now picks the test simulator: the newest
runtime from the SDK's major release, no newer than the SDK, that runs
the scheme's test device. The regression job asks it for the runtime
and device, and the release job's live discovery uses the same rule,
so release-proof toolchains still match.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@silo-triage silo-triage Bot added the size/M 50–199 added + deleted lines (all files); change volume, not priority. label Oct 23, 2026
@coderabbitai

coderabbitai Bot commented Oct 23, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 8 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

⚙️ Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: eb994714-fc76-4b78-9eba-b8f5695d6d35
📥 Commits

Reviewing files that changed from the base of the PR and between bab2d8e and bbd7a1d.

📒 Files selected for processing: 6
  • .github/workflows/player-regression.yml
  • .github/workflows/release.yml
  • .github/workflows/sideload-ipa.yml
  • scripts/ci/apple-build-metadata.py
  • scripts/ci/apple-build-metadata.test.py
  • scripts/ci/find-regression-proof.test.py
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@silo-kody

silo-kody Bot commented Oct 23, 2026 •

Copy link
Copy Markdown

Silo Kody — review complete

Review finished. Check the inline comments for findings and verify each suggestion against the code and tests.

Reviewing changes in Silo
  • Include the related issue, expected behavior, and validation steps in the PR description.
  • For API changes, describe the effect on Apple and Android clients and Jellyfin compatibility.
  • For plugin changes, identify the affected SDK contract, plugin, and catalog entry.
  • Follow this repository's AGENTS.md and CONTRIBUTING.md.
  • Request another review with @kody start-review in a PR comment.
  • React with 👍 or 👎 to give feedback on individual suggestions.
Review settings
Review Options

The following review options are enabled or disabled:

Options Enabled
Bug ✅
Performance ✅
Security ✅
Business Logic ❌

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 23, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-23T21:36:49.300440Z bbd7a1d New commits
🔒 Security Review ✅ Completed 2026-10-23T21:37:42.938039Z bbd7a1d New commits
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@silo-triage silo-triage Bot added bug Something isn't working impact: compat Breaks a supported client or server path priority: P2 Limited scope, workaround exists, or polish labels Oct 23, 2026
@silo-triage

silo-triage Bot commented Oct 23, 2026

Copy link
Copy Markdown

The problem statement says Xcode 27.1 removes letterboxing on iPhone Duo, so this changes visible layout even though only build tooling changes. Please replace the no-visible-change claim with before-and-after captures of the same screen and data on iPhone Duo, folded and open, naming the builds.

Comment thread .github/workflows/player-regression.yml Resolved
Comment thread scripts/ci/apple-build-metadata.py Resolved
When no installed runtime runs the test device, the regression job
downloaded the SDK's own runtime. Under Xcode 27.1 that is iOS 27.1,
which runs only the iPhone Duo, so the iPhone 17 Pro job still had no
runtime. It now tries the release's .0 runtime next.

Build metadata commands that fail or can't launch now raise an error
naming only the tool, as timeouts already did.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@silo-triage silo-triage Bot added size/L 200–499 added + deleted lines (all files); change volume, not priority. and removed size/M 50–199 added + deleted lines (all files); change volume, not priority. labels Oct 23, 2026
@silo-kody

silo-kody Bot commented Oct 23, 2026 •

Copy link
Copy Markdown

Silo Kody — review complete

Review finished. Check the inline comments for findings and verify each suggestion against the code and tests.

Reviewing changes in Silo
  • Include the related issue, expected behavior, and validation steps in the PR description.
  • For API changes, describe the effect on Apple and Android clients and Jellyfin compatibility.
  • For plugin changes, identify the affected SDK contract, plugin, and catalog entry.
  • Follow this repository's AGENTS.md and CONTRIBUTING.md.
  • Request another review with @kody start-review in a PR comment.
  • React with 👍 or 👎 to give feedback on individual suggestions.
Review settings
Review Options

The following review options are enabled or disabled:

Options Enabled
Bug ✅
Performance ✅
Security ✅
Business Logic ❌

@Quick104

Copy link
Copy Markdown
Contributor Author

Right, the SDK change is visible on the iPhone Duo. The Evidence section and page now show main built with Xcode 27.0 and with 27.1, folded and open, on the same library: compatibility-mode scaling with the bottom tab bar before, native scale with the system rail after. Other devices are unaffected and the PR says why.

@Quick104
Quick104 merged commit a74e602 into main Oct 23, 2026
10 checks passed
@Quick104
Quick104 deleted the ci/xcode-27-1 branch October 23, 2026 22:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working impact: compat Breaks a supported client or server path priority: P2 Limited scope, workaround exists, or polish size/L 200–499 added + deleted lines (all files); change volume, not priority.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant