Skip to content

chore: move Apple CI to Xcode 27 - #154332

Merged
steipete merged 19 commits into
mainfrom
codex/xcode-27-ci
Sep 21, 2026
Merged

steipete merged 19 commits into
mainfrom
codex/xcode-27-ci

Conversation

@steipete

@steipete steipete commented Sep 21, 2026 •

Copy link
Copy Markdown
Contributor

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-27 preview 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:

Measurement Xcode 26.6 Xcode 27
Mac packages job 7m17s 5m56s
Mac app build/test job 11m05s 16m19s
iOS smoke job 21m06s 36m42s
Mac test compilation 229.57s 469.75s
Mac bulk Swift Testing execution 233.493s 302.182s
Main shared-kit Swift Testing invocation 33.899s 33.868s

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.

@steipete steipete self-assigned this Sep 21, 2026
@clawsweeper

clawsweeper Bot commented Sep 21, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation scripts Repository scripts size: M maintainer Maintainer-authored PR labels Sep 21, 2026
@steipete
steipete marked this pull request as ready for review September 21, 2026 03:00
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Sep 21, 2026
@clawsweeper

clawsweeper Bot commented Sep 21, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed September 21, 2026, 4:48 PM ET / 20:48 UTC (Revision 20).

ClawSweeper review

What this changes

Moves 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
Reviewed head: 4e82c547c1cb419fd501aecd30ddfe3bfe61937e

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A sound, validated maintenance change with strong native execution evidence and no remaining actionable finding.
Proof confidence 🦞 diamond lobster (5/6) ✨ media proof bonus Sufficient (linked_artifact): The changed CI owner actually selected Xcode 27 and completed native app tests, package tests, iOS smoke, and all four analyzer consumers on the reviewed head. Captured observations establish completion of the repaired AppKit partitions; GitHub job/step results independently corroborate them. Detailed log retrieval was blocked by the reviewer environment, and the Windows regression remains supplemental mocked coverage.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Verified Sufficient (linked_artifact): The changed CI owner actually selected Xcode 27 and completed native app tests, package tests, iOS smoke, and all four analyzer consumers on the reviewed head. Captured observations establish completion of the repaired AppKit partitions; GitHub job/step results independently corroborate them. Detailed log retrieval was blocked by the reviewer environment, and the Windows regression remains supplemental mocked coverage.
Evidence reviewed 9 items Introduced change identity: Reviewed the pinned merge-base-to-head changes, separately from base-branch drift. The raw test-merge record has the specified base followed by the exact PR head; unrelated base-only changes were not attributed to this PR.
Existing toolchain owner and compatibility: The existing helper owns Xcode selection and bounded log forwarding while preserving command exit status. Swift 6.3 / Xcode 26.4 developer minimums remain unchanged; trusted platform checkouts now materialize this helper, and historical targets retain their original test partitions.
Still necessary on main: Inspected main still selects Xcode 26.6 and macos-26 for these Apple jobs and lacks the new selector. No merged replacement was established. The broader PR search was unavailable, and the latest-release workflow blob could not be inspected locally; neither limitation supports an implementation close.
Findings None None.
Security None None.

How this fits together

Apple 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
Loading

Before merge

None.

Agent review details

Security

None.

PR surface

Source +7, Tests +317, Docs +49, Config -39, Other +202. Total +536 across 41 files.

View PR surface stats
Area Files Added Removed Net
Source 1 12 5 +7
Tests 11 368 51 +317
Docs 5 64 15 +49
Config 7 83 122 -39
Generated 0 0 0 0
Other 17 350 148 +202
Total 41 877 341 +536

Review metrics

Metric Value Why it matters
Mac job budget 16m19s of 30m; 13m41s remaining Current-head native execution resolves the earlier timeout concern without extending the deadline.
Accepted iOS timing 21m06s baseline → 36m42s current smoke The maintainer explicitly accepts this observed slowdown; differing environments prevent treating it as a controlled compiler benchmark.

Technical review

Best 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.

Labels

Label justifications:

  • P2: This is a bounded Apple CI toolchain qualification with supporting native-test and process-cleanup repairs.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🦞 diamond lobster and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (linked_artifact): The changed CI owner actually selected Xcode 27 and completed native app tests, package tests, iOS smoke, and all four analyzer consumers on the reviewed head. Captured observations establish completion of the repaired AppKit partitions; GitHub job/step results independently corroborate them. Detailed log retrieval was blocked by the reviewer environment, and the Windows regression remains supplemental mocked coverage.
  • proof: sufficient: Contributor real behavior proof is sufficient. The changed CI owner actually selected Xcode 27 and completed native app tests, package tests, iOS smoke, and all four analyzer consumers on the reviewed head. Captured observations establish completion of the repaired AppKit partitions; GitHub job/step results independently corroborate them. Detailed log retrieval was blocked by the reviewer environment, and the Windows regression remains supplemental mocked coverage.

Evidence

What I checked:

Likely related people:

  • Peter Steinberger: Raw commit 3e68350 adds src/agents/provider-local-service-process.ts:16 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 3e68350c7cd4; files: src/agents/provider-local-service-process.ts)

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

History

Review history (19 earlier review cycles; latest 8 shown)
  • reviewed 2026-09-21T12:01:46.860Z sha e3931a40b4df5c798783d74514cdf14a501a9a23 :: blocked before merge. :: none
  • reviewed 2026-09-21T12:38:59.222Z sha 631ad6b :: blocked before merge. :: none
  • reviewed 2026-09-21T13:49:30.918Z sha e487f7a :: blocked before merge. :: none
  • reviewed 2026-09-21T14:11:27.565Z sha e487f7a :: blocked before merge. :: none
  • reviewed 2026-09-21T15:34:45.191Z sha 5d6743a :: blocked before merge. :: none
  • reviewed 2026-09-21T16:33:13.858Z sha 5d6743a :: blocked before merge. :: none
  • reviewed 2026-09-21T19:59:51.218Z sha 4e82c54 :: needs maintainer review before merge. :: none
  • reviewed 2026-09-21T20:24:25.130Z sha 4e82c54 :: needs maintainer review before merge. :: none

@clawsweeper clawsweeper Bot added status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Sep 21, 2026
@openclaw-barnacle openclaw-barnacle Bot added app: macos App: macos app: ios App: ios labels Sep 21, 2026
@openclaw-barnacle openclaw-barnacle Bot reopened this Sep 21, 2026
@clawsweeper clawsweeper Bot added rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. and removed rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. labels Sep 21, 2026
@clawsweeper clawsweeper Bot added the merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. label Sep 21, 2026
@clawsweeper clawsweeper Bot added rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. and removed rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. labels Sep 21, 2026
@steipete

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

Current head 4e82c547c1cb419fd501aecd30ddfe3bfe61937e now completes every retained Mac test partition on hosted Xcode 27: Mac job. The complete job passed in 16m19s within the existing 30-minute budget. The bulk partition passed 2,269 Swift tests in 302.182s; the ordered Quick Chat flow passed in 6.913s; the named-profile XCTest passed in 8.766s and its four Swift tests passed in 0.145s.

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.

@clawsweeper

clawsweeper Bot commented Sep 21, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event exact_review_queue).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

@clawsweeper clawsweeper Bot added the proof: sufficient ClawSweeper judged the real behavior proof convincing. label Sep 21, 2026
@steipete
steipete merged commit 6869ace into main Sep 21, 2026
248 of 249 checks passed
@steipete
steipete deleted the codex/xcode-27-ci branch September 21, 2026 20:57
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 22, 2026
* 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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agents Agent runtime and tooling app: ios App: ios app: macos App: macos docs Improvements or additions to documentation maintainer Maintainer-authored PR P2 Normal backlog priority with limited blast radius. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. scripts Repository scripts size: XL status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant