Repository navigation
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
Conversation
… 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
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.
What
SampleBufferRenderertakes the display layer'ssampleBufferRendereronce on the main actor at construction. The decode thread enqueues, flushes and reads status only through that renderer, and the synchronizer gets the same renderer. The pre-18 branch, which drove the layer itself throughstatus/error/flushAndRemoveImage(), is deleted, andDisplayFlushOpwith it. Every availability check the new floor makes always true is gone.xcode-27preview image) runsswift teston the 27 runtime and buildsAetherEngineTestsfor tvOS. The weekly beta SDK watcher is removed; its only subject was macOS/iOS 27 SDK: AVSampleBufferDisplayLayer is main-actor isolated, 12 warning sites in the renderer #351.Why the floor
status,errorandflushAndRemoveImage()exist only onAVSampleBufferDisplayLayer, with no counterpart onAVQueuedSampleBufferRendering. 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)
swift build --build-tests: 0 warnings (was 12).swift test: XCTest 610 (the 4 DisplayFlushOp tests removed), swift-testing 2983, all green.AetherEngineRelease tvOS + iOS, visionOS Simulator;AetherEngineSMBRelease iOS + macOS;AetherEngineTestsbuild-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