Skip to content

7.0: platform floor iOS 18 / tvOS 18 / macOS 15, no main-actor isolation warnings on the 27 SDKs (#351), Xcode 27 CI lane - #540

Merged
superuser404notfound merged 3 commits into
mainfrom
feat/351-platform-floor-18
Sep 16, 2026
Merged

superuser404notfound merged 3 commits into
mainfrom
feat/351-platform-floor-18

Conversation

@superuser404notfound

Copy link
Copy Markdown
Owner

What

Why the floor

status, error and flushAndRemoveImage() exist only on AVSampleBufferDisplayLayer, with no counterpart on AVQueuedSampleBufferRendering. Below 18 the queue target was the layer itself, so those three sites could not leave the layer while that branch existed.

Verified locally (Xcode 27.0, 27A266a)

  • Clean swift build --build-tests: 0 warnings (was 12).
  • swift test: XCTest 610 (the 4 DisplayFlushOp tests removed), swift-testing 2983, all green.
  • xcodebuild AetherEngine Release tvOS + iOS, visionOS Simulator; AetherEngineSMB Release iOS + macOS; AetherEngineTests build-for-testing on the tvOS 27 and iOS 27 simulators. All 0 warnings.

This PR's CI run is the Xcode 26.3 check and the first run of the new lane.

🤖 Generated with Claude Code

https://claude.ai/code/session_018837p54rigmt9MMyzSmYXY

Vincent Herbst and others added 3 commits September 16, 2026 14:32
… renderer reaches the layer only on the main actor (#351)

The 27 SDKs annotate AVSampleBufferDisplayLayer `@MainActor`, and the software path reached it from
the decode thread at twelve sites, `displayLayer.sampleBufferRenderer` on every back-pressure check
among them. Warnings today, because the annotation comes through an ObjC import.

SampleBufferRenderer now takes the layer's `sampleBufferRenderer` once, on the main actor at
construction, and stores it next to the layer. The decode thread enqueues, flushes and reads
status only through that renderer, and AudioOutput hands the synchronizer the same renderer
instead of reading it off the layer. The objection in #351 to a stored renderer (the layer is
swapped on an HDR change) no longer holds: `displayLayer` is assigned once, HDR output flips
`preferredDynamicRange` on the same layer, so both are now `let`. The init and the layer factory
are `@MainActor`; the one production caller, SoftwarePlaybackHost, already is, and the 31 tests
that build a renderer directly are marked `@MainActor` per test function (all synchronous, none
waits on the main queue).

The last three sites, `status`, `error` and `flushAndRemoveImage()` on the pre-18 branch where the
queue target was the layer itself, have no counterpart on AVQueuedSampleBufferRendering, so the
floor moves to iOS 18 / tvOS 18 / macOS 15 and that branch is deleted, together with
DisplayFlushOp, whose only remaining decision was the legacy one. visionOS stays at 1.0; its two
1.1 checks (readyForDisplay, render metrics) keep naming it. Every other check the new floor makes
always true is removed: the VideoToolbox require-hardware spec and per-frame HDR metadata
propagation are unconditional, the tvOS 17 display-criteria guard is gone.

Measured on Xcode 27.0 (27A266a): clean `swift build --build-tests` 0 warnings (was 12), `swift
test` green (XCTest 610, the 4 DisplayFlushOp tests removed; swift-testing 2983), xcodebuild
AetherEngine Release tvOS + iOS, visionOS Simulator, AetherEngineSMB Release iOS + macOS,
AetherEngineTests build-for-testing on the tvOS 27 and iOS 27 simulators, all 0 warnings.

BREAKING CHANGE: iOS 16/17, tvOS 17 and macOS 14 are no longer supported. No public symbol changed.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_018837p54rigmt9MMyzSmYXY
…a SDK watcher goes

Every CI job resolves `latest-stable` on macos-15, which is Xcode 26.3, while the engine is now
built and released from Xcode 27. Both drifts found on the first 27 build were invisible to that:
macOS 27's ICU names `com` and failed an AE#458 test, and Swift 6.4 rejects isolation shapes 6.3
accepted. Two jobs on the `xcode-27` preview image run `swift test` on the 27 runtime and build
AetherEngineTests against the tvOS 27 SDK. The 26.3 lane stays, since a consumer on Xcode 26 is
still a consumer.

The weekly beta SDK watcher existed for one subject, the #351 isolation sites, which the 7.0
platform floor removes, and it ran on the same preview label this lane now uses on every push.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_018837p54rigmt9MMyzSmYXY
… a GA macOS 27 image exists

The first run of the lane failed `swift test` twice with a different set each time: Vision text
recognition returns nil on the `xcode-27` preview image, and loopback-origin tests starve there (a
global-queue block not scheduled within 30 s, a TLS relay request timing out, a HEAD probe never
arriving). That image runs a beta macOS 27 (26A5406e) with Xcode 27 beta 6; the same 2983 tests pass
on macOS 27 GA locally. A lane that is red for its image is noise, so it now compiles the package and
its test targets against the 27 toolchain on macOS as well as tvOS, which is the Swift 6.4 half of
what it exists for. `swift test` joins it with the GA image.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_018837p54rigmt9MMyzSmYXY
@superuser404notfound
superuser404notfound merged commit 11b96a8 into main Sep 16, 2026
7 checks passed
@superuser404notfound
superuser404notfound deleted the feat/351-platform-floor-18 branch September 16, 2026 13:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant