Repository navigation
chore: move Apple CI to Xcode 27 - #154332
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs maintainer review before merge. Reviewed September 21, 2026, 4:48 PM ET / 20:48 UTC (Revision 20). ClawSweeper reviewWhat this changesMoves Apple CI to Xcode 27, updates native test execution and diagnostic capture, and prevents Windows shutdown retries from signaling a previously disappeared child PID. Merge readiness✅ Ready for maintainer review Keep open as useful, validated work that is not implemented on inspected main. Current native results resolve the earlier timeout concern, and this review found no blocking correctness or security defect. Priority: P2 Review scores
Verification
How this fits togetherApple CI builds and tests the native apps and runs dead-code analysis before changes land. Its toolchain selector, isolated test launcher, and log capture turn repository source into validation results and diagnostic artifacts. flowchart TD
A[Repository source] --> B[Trusted workflow checkout]
B --> C[Xcode 27 selection]
C --> D[Native builds and isolated tests]
C --> E[Four dead-code scans]
D --> F[Logs and native evidence]
D --> G[CI result gate]
E --> G
Before mergeNone. Agent review detailsSecurityNone. PR surfaceSource +7, Tests +317, Docs +49, Config -39, Other +202. Total +536 across 41 files. View PR surface stats
Review metrics
Technical reviewBest possible solution: Retain the centralized toolchain selection, complete isolated native coverage, bounded diagnostic output, and monotonic Windows PID retirement. Do we have a high-confidence way to reproduce the issue? Not applicable to the primary toolchain migration. The native failure and recovery are documented in the supplied evidence; this read-only review verified current-head execution results without reproducing locally. Is this the best way to solve the issue? Yes. Extending the existing toolchain and test-lifecycle owners preserves coverage and developer requirements without introducing a competing implementation. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 267bb9d27fa1. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (19 earlier review cycles; latest 8 shown)
|
b4dbad6 to
7faac61
Compare
a9b35fd to
ea7a8b1
Compare
72c8441 to
e3931a4
Compare
e3931a4 to
631ad6b
Compare
10dd948 to
4e82c54
Compare
|
@clawsweeper re-review Current head The attributed accessibility-title exception was reproduced with LLDB, repaired in the shared test adapter and all consumers, and verified in the disposable VM and this hosted job. No assertions or deadlines were weakened. Main's independently landed fixture and Windows settlement repairs have been consumed; only the proven Windows PID-absence latch remains in this PR. The packages job and iOS/shared Periphery consumers passed. The Mac Periphery run is retrying because GitHub artifact finalization returned HTTP 403; that is the sole failed step. Final iOS/aggregate CI and timing collection are still running. The PR body records retained release and screenshot qualification separately from current-head proof. Please refresh the earlier timeout assessment against this code and completed Mac evidence. |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
Merged via squash.
|
* ci: validate Apple builds and tests with Xcode 27 * fix(ci): include Swift selection in trusted platform checkouts * fix(ci): retain Periphery index layout and report Swift crashes * fix(test): adapt native validation to Xcode 27 runtime and indexing * test: run Quick Chat presentation flows with Swift Testing * docs: clarify Xcode analyzer compatibility requirements * test: diagnose early AppKit test process exit * test: give rendered Mac tests an AppKit event loop * test: await AppKit event processing before rendered tests * test: wait for the rendered Quick Chat model picker * fix(ci): isolate Apple test logs and await fixture readiness * test: retain all default-profile capture evidence * fix(ci): repair Apple qualification diagnostics and fixtures * test: surface Quick Chat sends rejected before transport entry * test: capture suspended Quick Chat tasks during CI stalls * test: read attributed accessibility titles without abandoning Swift tasks * test: normalize accessibility titles across native fixtures * test: find named-profile model controls by accessible name * fix: retain lost Windows PID authority through shutdown retries Co-authored-by: Peter Steinberger <[email protected]>
What Problem This Solves
Apple CI needs to qualify Xcode 27 without hanging native tests or losing their failure diagnostics.
User Impact
Apple builds, native tests, screenshots, release preparation, and all four Periphery consumers now select Xcode 27.0 / Swift 6.4 on GitHub's
xcode-27preview image. The developer minimum remains Swift 6.3 / Xcode 26.4. CodeQL is unchanged; no release is published.Xcode 27 is deliberately adopted despite slower app builds and iOS validation. The Mac app job now completes within its existing 30-minute budget.
Why This Change Was Made
The existing Swift toolchain helper owns selection, including trusted historical-target checkouts. Periphery retains its native SwiftPM index layout, four approved declaration-specific SwiftUI annotations, and the zero-finding policy. The iOS typography audit recognizes whole-file macOS-only envelopes.
The Mac timeout was a test-adapter failure: SwiftUI returned an attributed accessibility title, and the typed String getter raised an Objective-C exception that stranded a Swift task. The shared adapter and its consumers now normalize those titles. Quick Chat's three flows retain their original order under Swift Testing, with AppKit owning its event loop in a fresh default-profile process. Picker actions use the current accessibility control, and provider-entry waits also observe rejected sends. Assertions, coverage, and deadlines are preserved.
Apple commands keep full file logs, bounded console output, and original exit status. SwiftPM output is unbuffered so stalled diagnostics remain visible. The existing launcher retains process-group, pipe, state, and Keychain cleanup ownership.
Main independently landed the broader Windows child-close/signal settlement repair and the encountered rail, lease-clock, readiness, duration, and recovery-fixture fixes. Those implementations are consumed here. The remaining Windows change remembers PID disappearance so shutdown retries cannot signal a recycled PID before the old child's exit callback arrives.
Evidence
Current CI passed on
4e82c547c1cb419fd501aecd30ddfe3bfe61937e, including every Mac partition, iOS smoke, Windows, Linux, and Android tests. All four Periphery consumers and their zero-finding intersection passed: macOS, iOS, and shared consumers. The Mac scan required one rerun after GitHub artifact finalization returned HTTP 403; no source changed for that retry.Observed timings against the Xcode 26.6 baseline:
The hosted Mac run passed 2,269 bulk Swift tests, the ordered Quick Chat flow, and the named-profile XCTest plus four Swift tests. iOS Debug compilation took 16m11s versus 10m20s; its voice-cleanup step took 16m42s versus 8m07s and retained the 600-second simulator diagnostic-collection timeout after successful tests. These are observed CI samples with differing caches, OS versions, and intervening main changes, not identical-source compiler benchmarks. Earlier Xcode 27 samples included an 11m21s packages job and a 32m16s iOS smoke job.
The earlier full native run passed Mac Release/packages, iOS Release, lifecycle/voice-cleanup/Watch checks, both screenshot shards, and screenshot reduction. Its older Mac test failure is superseded by the completed current partitions. Live speech playback was intentionally skipped and is not claimed as tested.
All selected changed checks, workflow/materialization/log/launcher contracts, formatting, and independent review pass. The Windows PID-absence regression fails on untouched main and passes with the correction. Disposable-Mac proof also passed all three ordinary partitions in 6m08s, retaining three existing opt-in skips. No full native suite or AppKit test UI ran on an operator desktop.