Skip to content

ci: test on macOS 27 via the xcode-27 runner - #31

Merged
erunion merged 3 commits into
masterfrom
erunion/macos-27-xcode-runner-c2c8
Dec 1, 2026
Merged

erunion merged 3 commits into
masterfrom
erunion/macos-27-xcode-runner-c2c8

Conversation

@erunion

@erunion erunion commented Dec 1, 2026 •

Copy link
Copy Markdown
Member

GitHub Actions has no macos-27 label. The macOS 27 Apple Silicon image is xcode-27 (generally available since October 15, 2026), so the test matrix now builds and runs Node 22, 24, and 26 on that image alongside macos-26 and macos-15-intel.

The darwin arm64 prebuild stays on macos-26. MACOSX_DEPLOYMENT_TARGET is unset in the workflow, so building that binary on xcode-27 would use the macOS 27 SDK and can raise the minimum OS the published .node file requires. A binary built on macOS 26 still runs on macOS 27. A comment in publish.yml records that so the publish host is not switched later.

The first xcode-27 run failed only on Node 24, in can track objects to free on context shutdown. That worker calls global.gc() until the heap stops shrinking. On Node 24 built with Xcode 27 that loop ran past the 30s test limit; the counts did match, and the history walk's later "failure" message then failed the following tests. The worker now caps those collections and does not report failure once the count has been sent. Late worker events can no longer call done() on the next test.

Xcode 27's libc++ does not support a deployment target below macOS 11, and this addon was pinned to 10.11. Builds against an SDK of 27 or newer now use 11.0. The macOS 26 publish image still resolves to 10.11, so the published binary's minimum OS does not change.

CLAUDE.md names the macOS 27 test image.

Open in Web Open in Cursor 

GitHub has no macos-27 label. The macOS 27 arm64 image is xcode-27, so the test matrix runs Node 22, 24, and 26 there while the darwin prebuild stays on macos-26.

Co-authored-by: Jon Ursenbach <erunion@users.noreply.github.com>
@greptile-apps

greptile-apps Bot commented Dec 1, 2026 •

Copy link
Copy Markdown

Confidence Score: 5/5RetriggerView in Greptile

[Medium impact] The PR appears safe to merge; no actionable bugs were established.

Reviews (1) · Last reviewed commit: "ci: test on macOS 27 via the xcode-27 ru..." · Reviewed by Greptile

greptile-apps[bot]
greptile-apps Bot previously approved these changes Dec 1, 2026
The context-shutdown worker collected garbage until the heap stopped shrinking, which ran past the 30s limit on Node 24 built with Xcode 27. The history walk then posted failure and failed the following tests. Cap those collections, ignore the walk's end after the count is reported, and build Xcode 27 with a macOS 11 deployment target so libc++ is supported. Prebuilds on older SDKs stay at 10.11.

Co-authored-by: Jon Ursenbach <erunion@users.noreply.github.com>
@greptile-apps
greptile-apps Bot dismissed their stale review December 1, 2026 23:11

Dismissed because a newer commit was pushed; Greptile will re-review the current head.

js-beautify joins the Xcode 27 deployment-target notes into the binding.gyp dictionary, so configure fails before the tests start.

Co-authored-by: Jon Ursenbach <erunion@users.noreply.github.com>
@erunion
erunion merged commit cbb5532 into master Dec 1, 2026
15 checks passed
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.

2 participants