Skip to content

W-23599683: CI migrate runners + add macOS artifacts - #148

Merged
mlischetti merged 10 commits into
masterfrom
runners-migration
Jul 30, 2026
Merged

W-23599683: CI migrate runners + add macOS artifacts#148
mlischetti merged 10 commits into
masterfrom
runners-migration

Conversation

@mlischetti

Copy link
Copy Markdown
Contributor

Summary

  • ci.yml: keeps the mulesoft-ubuntu/mulesoft-windows runners, but removes all artifact upload + upload-prep steps — it now builds and runs tests only (no artifacts). Also drops the now-unused NATIVE_VERSION env.
  • main.yml / release.yml: replace mulesoft-* runners with GitHub-hosted ubuntu-latest + windows-latest.
  • main.yml / release.yml: add a macos-latest (Apple Silicon, arm64) matrix leg producing macOS-compatible artifacts. release.yml gains a dwlib.dylib release-upload step; main.yml's existing Upload native shared library step already listed dwlib.dylib.
  • Added an actions/setup-python@v5 step before the pip install on main.yml/release.yml so the new macOS leg gets a clean managed Python (avoids PEP 668 externally-managed-environment).

Artifact arch tokens derive from uname -m, so the macOS leg names artifacts ...-macos-arm64... automatically.

Design/spec: docs/superpowers/specs/2026-07-29-github-runners-migration-design.md

Notes

  • macOS native-lib native build uses -J-Xmx6G; macos-latest (arm64) has ~7GB RAM — worth watching on the first run.
  • The master-only regression + Node TCK lanes in main.yml will also run on the macOS leg for master pushes.

🤖 Generated with Claude Code

@mlischetti
mlischetti requested a review from a team as a code owner July 29, 2026 19:27
@mlischetti mlischetti changed the title CI: migrate runners + add macOS artifacts W-23599683: CI migrate runners + add macOS artifacts Jul 29, 2026
mlischetti and others added 5 commits July 29, 2026 16:43
Fixes Windows nativeCompile 'other has different root' on windows-latest:
GraalVM toolcache (C:) and workspace (D:) live on different drives, and
0.11.2 relativizes the native-image args-file path unconditionally.
0.11.5 guards relativize to same-root paths and falls back to absolute.
fail-fast: false stops one matrix leg's failure from cancelling the others.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Two failures surfaced once fail-fast:false let every leg run to completion:

1. Python wheel (ubuntu+macos): 'No module named setuptools'. The
   setup-python step I added put a second interpreter ahead of the one the
   Gradle daemon (started at Run Build) resolves as python3, so pip
   installed setuptools into the wrong interpreter. Removing setup-python
   restores the single-interpreter path that already passes; macOS image
   python allows the pip install, so the PEP 668 concern was moot.

2. Node package (windows): node-gyp 10 fails 'could not find Visual Studio
   2017 or newer' because windows-latest now ships VS 18. node-gyp 11
   recognizes it. Lockfile regenerated to resolve node-gyp 11.5.0.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
…r macOS pip

windows-latest rolled forward to Visual Studio 18 (VS 2026), which node-gyp
11.5.0 cannot detect ("unknown version undefined"). Pin the Windows matrix leg
to windows-2022, which ships the VS 2022 / v17 toolchain node-gyp 11 supports —
the same toolchain class the self-hosted mulesoft-windows runner uses. Still a
standard GitHub-hosted runner.

macOS system Python enforces PEP 668, so plain pip install is refused; add
--break-system-packages to the setuptools/wheel install step.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
native-cli:distro classifies macOS as "osx" (getOsName()), so the produced
zip is native-cli-<ver>-native-distro-osx.zip — but the staging step looked
for "-macos.zip" and failed the macOS leg at "Stage renamed CLI distro".
Add a distro_os matrix field (linux/windows/osx) for the SOURCE filename
while keeping script_name (macos) for the convention artifact name.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Update the spec to match what actually shipped and passed CI:
- Windows leg pinned to windows-2022 (VS 18 / node-gyp 11.5 incompatibility)
  with the node-gyp ^12 return-to-latest follow-up noted.
- distro_os matrix field documented (Gradle classifies macOS as "osx").
- New "Deviations discovered during CI" section records the GraalVM 0.11.5
  bump, the node-gyp ^11 bump, and the macOS --break-system-packages fix.
- Testing checks updated for windows-2022, distro_os, and the green run.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@mlischetti
mlischetti merged commit 0b4824d into master Jul 30, 2026
5 checks passed
@mlischetti
mlischetti deleted the runners-migration branch July 30, 2026 13:04
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