Skip to content

Conversation

@cxzl25
Copy link
Contributor

@cxzl25 cxzl25 commented Oct 28, 2025

What changes were proposed in this pull request?

Why are the changes needed?

https://github.com/actions/runner-images/issues/12934

Success https://github.com/apache/orc/actions/runs/17684310687/job/50265505914

Runner Image
  Image: macos-14-arm64
  Version: 20250901.1774
  Included Software: https://github.com/actions/runner-images/blob/macos-14-arm64/20250901.1774/images/macos/macos-14-arm64-Readme.md

Failed https://github.com/apache/orc/actions/runs/18735596344/job/53524232003?pr=2452

Runner Image
  Image: macos-14-arm64
  Version: 20251013.0032
  Included Software: https://github.com/actions/runner-images/blob/macos-14-arm64/20251013.0032/images/macos/macos-14-arm64-Readme.md

How was this patch tested?

Was this patch authored or co-authored using generative AI tooling?

@github-actions github-actions bot added the INFRA label Oct 28, 2025
@cxzl25 cxzl25 marked this pull request as draft October 28, 2025 13:46
@cxzl25 cxzl25 force-pushed the env_cmake branch 4 times, most recently from 9688759 to abfbf54 Compare October 28, 2025 14:28
@dongjoon-hyun
Copy link
Member

dongjoon-hyun commented Oct 28, 2025

Thank you, @cxzl25 . If it's difficult, we may want to upgrade MacOS CI inevitably in branch-1.9 from 14 to 15+.

ORC-1995: Add `MacOS 26` to GitHub Action CI and docs
ORC-1895: Add `MacOS 15` to `macos-cpp-check` GitHub Action job
ORC-1783: Add MacOS 15 to GitHub Action MacOS CI and docs

@cxzl25
Copy link
Contributor Author

cxzl25 commented Oct 28, 2025

we may want to upgrade MacOS CI inevitably in branch-1.9 from 14 to 15+.

As described in the issue associated with the PR, I estimate that the reason is that the CI of the 1.9 branch failed due to the upgrade of macos image cmake from version 3.x to 4.x.
After upgrading to macos15, the cmake version is also 4.x. After testing, it also failed.

@dongjoon-hyun
Copy link
Member

Got it. Thank you for investigating.

- name: Install CMake
if: matrix.os == 'macos-14'
run: |
# Pin cmake to 3.31.6 due to a backward compatibility issue
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Refer to this code to install cmake 3.x version.

https://github.com/actions/runner-images/pull/12791

@dongjoon-hyun
Copy link
Member

If this is ready, could you make this Ready status, @cxzl25 ?

@dongjoon-hyun
Copy link
Member

cc @williamhyun , too.

@dongjoon-hyun
Copy link
Member

dongjoon-hyun commented Jan 3, 2026

IIUC, the error message looks like the following, right?

CMake Error at /Users/runner/work/orc/orc/build/snappy_ep-prefix/src/snappy_ep-stamp/snappy_ep-configure-RELWITHDEBINFO.cmake:49 (message):
  Command failed: 1

   '/opt/homebrew/bin/cmake' '-DCMAKE_INSTALL_PREFIX=/Users/runner/work/orc/orc/build/c++/libs/thirdparty/snappy_ep-install' '-DBUILD_SHARED_LIBS=OFF' '-DCMAKE_INSTALL_LIBDIR=lib' '-DSNAPPY_BUILD_TESTS=OFF' '-GUnix Makefiles' '-S' '/Users/runner/work/orc/orc/build/snappy_ep-prefix/src/snappy_ep' '-B' '/Users/runner/work/orc/orc/build/snappy_ep-prefix/src/snappy_ep-build'
Make Error at CMakeLists.txt:1 (cmake_minimum_required):
  Compatibility with CMake < 3.5 has been removed from CMake.

  Update the VERSION argument <min> value.  Or, use the <min>...<max> syntax
  to tell CMake that the project requires at least <min> but has been updated
  to work with policies introduced by <max> or earlier.

  Or, add -DCMAKE_POLICY_VERSION_MINIMUM=3.5 to try configuring anyway.

@cxzl25 cxzl25 marked this pull request as ready for review January 3, 2026 13:25
@cxzl25
Copy link
Contributor Author

cxzl25 commented Jan 3, 2026

the error message looks like the following

Yes, because after the macos image was upgraded, the cmake version was also upgraded, causing CI to fail.

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR addresses a backward compatibility issue introduced by a GitHub Actions runner image update on macOS-14 that broke the build. The solution pins CMake to version 3.31.6 using Homebrew to maintain compatibility with the project's CMake configuration.

Key Changes

  • Added a new step to install a pinned version of CMake (3.31.6) on macOS-14 runners
  • Uses Homebrew tap mechanism to install a specific CMake version from a historical commit

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@dongjoon-hyun
Copy link
Member

Could you file an official JIRA issue and use it in the PR title?

@dongjoon-hyun dongjoon-hyun added this to the 1.9.8 milestone Jan 3, 2026
@dongjoon-hyun
Copy link
Member

Since milestone is set, we can remove [1.9] from the PR title, too.

Screenshot 2026-01-03 at 22 29 24

@cxzl25 cxzl25 changed the title [1.9] CMAKE_POLICY_VERSION_MINIMUM=3.5 ORC-2046: Fix macos-14-arm64 CI failure Jan 3, 2026
@cxzl25
Copy link
Contributor Author

cxzl25 commented Jan 3, 2026

Could you file an official JIRA issue and use it in the PR title?

Sure. I've created the JIRA issue and updated the PR title.

Copy link
Member

@dongjoon-hyun dongjoon-hyun left a comment

Choose a reason for hiding this comment

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

+1, LGTM.

@dongjoon-hyun
Copy link
Member

When you have some time, could you do the review and the final sign-off as a release manager, @williamhyun ?

Copy link
Member

@williamhyun williamhyun left a comment

Choose a reason for hiding this comment

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

+1
Thank you @cxzl25 and @dongjoon-hyun, will be merging this now!

williamhyun pushed a commit that referenced this pull request Jan 3, 2026
### What changes were proposed in this pull request?

### Why are the changes needed?
```
actions/runner-images#12934
```

Success https://github.com/apache/orc/actions/runs/17684310687/job/50265505914
```
Runner Image
  Image: macos-14-arm64
  Version: 20250901.1774
  Included Software: https://github.com/actions/runner-images/blob/macos-14-arm64/20250901.1774/images/macos/macos-14-arm64-Readme.md
```

Failed https://github.com/apache/orc/actions/runs/18735596344/job/53524232003?pr=2452

```
Runner Image
  Image: macos-14-arm64
  Version: 20251013.0032
  Included Software: https://github.com/actions/runner-images/blob/macos-14-arm64/20251013.0032/images/macos/macos-14-arm64-Readme.md
```

### How was this patch tested?

### Was this patch authored or co-authored using generative AI tooling?

Closes #2455 from cxzl25/env_cmake.

Authored-by: sychen <sychen@ctrip.com>
Signed-off-by: William Hyun <william@apache.org>
@williamhyun williamhyun closed this Jan 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants