apache / apache/arrow-java

[CI] Mac jar build uses a different LLVM version than Linux

オープン
#862 コメント 2 件 リアクション 0 件 担当者 0 名 GitHub で見る
Type: bug
主要言語
Java
スター
94
フォーク
152
平均マージ
3日 16時間
マージ済み PR(30日)
11

説明

### Describe the bug, including details regarding any error messages, version, and platform.

The Mac build uses an older LLVM version (15) than Linux (18). This seems to be related to the CI code and the fact that the mac github runners have llvm installed via brew
https://github.com/actions/runner-images/blob/releases/macos-14-arm64/20250915/images/macos/macos-14-arm64-Readme.md
Even newer runners only have LLVM 17.

The discrepancy could lead to hard to find bugs or performance issues.

Is it possible to use vcpkg for the mac builds? That way we could be assured that they are always consistent across platforms.

A few related changes I found:
Unpin the llvm version in arrow/cpp/Brewfile. I think this might mean that theoretically the latest llvm could be installed but since the runner image already has an older one installed, that is used instead.
https://github.com/apache/arrow/commit/c1f995226c46c2bba9c5fbf988cf9b247f87adad

A related change talking about llvm 14. https://github.com/apache/arrow/pull/14310

コントリビューションガイド

コントリビューションガイドを開く

調査の方向性

macOS と Linux の jar-build の CI 定義を見つけ、LLVM の選択方法を比較し、その後 arrow/cpp/Brewfile とリンク先の runner-image の詳細を調べます。ビルドが一貫した LLVM バージョンを使用するか、プラットフォーム間のバージョン差異が明示的に文書化され、正当化されていれば完了です。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
github-actions, java
領域
build-system, ci-cd
issue の種類
バグ
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
説明が足りない
初心者へのやさしさ
38/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。