Skip to content

COMP: Move the macOS CI jobs to macos-15 and macos-15-intel - #78

Merged
hjmjohnson merged 3 commits into
InsightSoftwareConsortium:mainfrom
hjmjohnson:ci-macos-15
Nov 6, 2026
Merged

hjmjohnson merged 3 commits into
InsightSoftwareConsortium:mainfrom
hjmjohnson:ci-macos-15

Conversation

@hjmjohnson

@hjmjohnson hjmjohnson commented Nov 2, 2026 •

Copy link
Copy Markdown
Member

Moves the macOS CI jobs off retired and retiring images: macos-13 becomes macos-15-intel, and macos-14 becomes macos-15, both with Xcode 16.2, matching ITKRemoteModuleBuildTestPackageAction. GitHub retired macos-13 and retires macos-14 on November 2, 2026 (actions/runner-images#13518). A second commit moves the ITK pins to 5.4.7, because the prebuilt ITK 5.4.0 Python build cannot be used on macos-15.

Notes
  • The Xcode 14.3.1 and 15.0.1 selections do not exist on the macos-15 images, so the two per-image steps become one step selecting Xcode_16.2.app.
  • Xcode 16 prints ranlib "table of contents is empty" and ld "no platform load command" warnings for the bundled third-party libraries. The dashboard script fails on any warning, so both patterns are added to its warning exceptions. Checked against the earlier macos-15-intel log: with them, every compiler and linker warning in it is matched.
  • The prebuilt ITK 5.4.0 Python build was made on Xcode 15.0.1 and its build.ninja names that SDK's libiconv.tbd, which macos-15 lacks (build-macos-arm-py). itk-git-tag, itk-wheel-tag, and itk-python-package-tag therefore move together to v5.4.7. Other modules use ITKRemoteModuleBuildTestPackageAction@v5.4.6. The 5.4.7 wheels cover Python 3.9 to 3.11 only, so 3.8 is dropped from the Linux and Windows wheel matrices, the macOS steps that skipped it are removed, and requires-python becomes >=3.9.
  • The GitHub Actions move to the versions ITKRemoteModuleBuildTestPackageAction uses (checkout@v5, setup-python@v6, get-cmake@v4.4.2, upload-artifact@v6, download-artifact@v7), because GitHub is forcing the Node 20 actions onto Node 24.
  • MACOSX_DEPLOYMENT_TARGET=11.0 for the arm64 wheels is unchanged.
  • The module was not built locally: its bundled TensorStore and Abseil do not build with the current macOS SDK on arm64, so CI is the first run of the ITK 5.4.7 change.
AI assistance
  • Tool: Claude Code (claude-opus-5-5)
  • Role: updated the runner and Xcode selection, found the unmatched warning classes in the macOS log, and drafted the version bump. A person reviewed the changes.

@hjmjohnson
hjmjohnson marked this pull request as ready for review November 2, 2026 14:08

@dzenanz dzenanz left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. We might want to remove Co-Authored-By trailer from the commit message. There are also some test failures. It is worthwhile to look into them now.

@hjmjohnson

Copy link
Copy Markdown
Member Author

The lint failure here is not from this change: the lint action reference and missing .gitattributes are fixed separately in #79. Once #79 merges I will rebase this onto it.

Remaining macOS failures
  • build-test-cxx (macos-15-intel): all tests pass, but the dashboard script fails on the linker and ranlib warnings that Xcode 16 reports for the bundled third-party libraries. This needs warning exceptions in CTest, to be added here.
  • build-macos-arm-py: the prebuilt ITKPythonPackage build references MacOSX14.0.sdk/usr/lib/libiconv.tbd, which macos-15 does not have. That needs a newer ITKPythonPackage build, not a change in this repository.
  • build-linux-py (10): a generated protobuf header failed to compile on one Python version only; likely transient.

@hjmjohnson
hjmjohnson force-pushed the ci-macos-15 branch 2 times, most recently from 6beaeb8 to 502a09c Compare November 3, 2026 20:35
@hjmjohnson

Copy link
Copy Markdown
Member Author

Thanks @dzenanz. Removed the Assisted-by trailer and looked into the failures: the first force-push is a plain rebase onto main (it picks up the lint fix from #79); the second adds the two Xcode 16 warning exceptions for macos-15-intel and moves the ITK pins to 5.4.7, since the prebuilt 5.4.0 Python build names an Xcode 15.0.1 SDK path that macos-15 lacks. CI is running on that head.

GitHub retired the macos-13 runner image and retires macos-14 on
November 2, 2026 (actions/runner-images#13518). Use macos-15-intel and
macos-15 with Xcode 16.2, matching ITKRemoteModuleBuildTestPackageAction;
the Xcode 14.3.1 and 15.0.1 selections do not exist on those images.

Xcode 16 reports new ranlib and ld warnings for the bundled third-party
libraries, and the dashboard script fails on any warning, so add them to
the warning exceptions.
@hjmjohnson
hjmjohnson force-pushed the ci-macos-15 branch 2 times, most recently from 1cdeb5b to ef94508 Compare November 3, 2026 21:34
@hjmjohnson

Copy link
Copy Markdown
Member Author

Force-push: the ITK 5.4.7 prebuilt archives have no Python 3.8 build (tar: ITKPythonPackage/ITK-cp38*: Not found in archive), which failed the Linux and Windows 3.8 wheel jobs and cancelled the rest of their matrices. This push drops 3.8 from those two matrices, in the 5.4.7 commit; the first commit is unchanged.

The prebuilt ITK 5.4.0 Python build that the macOS wheel jobs download
was made on Xcode 15.0.1, and its build.ninja names that SDK's
libiconv.tbd, which the macos-15 image does not have. The 5.4.7 build
and ITKPythonPackage scripts exist, and later 5.4 releases build with
Xcode 16.2 in ITKRemoteModuleBuildTestPackageAction, so move the ITK
checkout, the wheel build, and the packaging scripts together.

The 5.4.7 wheels cover Python 3.9 to 3.11 only, so drop 3.8 from the
Linux and Windows wheel matrices, remove the macOS steps that skipped
3.8, and require Python 3.9.
GitHub is forcing the Node 20 actions onto Node 24. Use the versions that
ITKRemoteModuleBuildTestPackageAction uses for checkout, setup-python,
get-cmake, upload-artifact, and download-artifact.
@hjmjohnson

Copy link
Copy Markdown
Member Author

Content-only force-push, no rebase (main has not moved): the 5.4.7 commit now also removes the macOS steps that skipped Python 3.8 and sets requires-python to >=3.9 (the ITK 5.4.7 wheels cover 3.9 to 3.11), and a new commit moves the GitHub Actions to the versions ITKRemoteModuleBuildTestPackageAction uses. TensorStore is unchanged.

@hjmjohnson
hjmjohnson merged commit 569bcda into InsightSoftwareConsortium:main Nov 6, 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