Repository navigation
GH-1429: Match macOS JNI source selection to Linux #1430
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
efegokdemir
wants to merge
6
commits into
apache:main
Choose a base branch
from
efegokdemir:efe/arrow-java-macos-json-test
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
3ad6f87
GH-1429: Match macOS JNI source selection to Linux
efegokdemir d56d356
GH-1429: Address JNI source and JSON test review feedback
efegokdemir 9e0570c
GH-1429: Fail when the JSON dataset test is not discovered
efegokdemir 0a96c1a
GH-1429: Use the latest Arrow C++ release for non-scheduled JNI builds
jbonofre 5033974
Merge current master for macOS JNI validation fix
efegokdemir 8e046d0
Use current release candidate for macOS JNI builds
efegokdemir File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -114,12 +114,13 @@ jobs: | |||||
| - name: Download the latest Apache Arrow C++ | ||||||
| if: github.event_name != 'schedule' | ||||||
| run: | | ||||||
| ci/scripts/download_cpp.sh | ||||||
| ci/scripts/download_cpp.sh latest-rc | ||||||
| - name: Checkout Apache Arrow C++ | ||||||
| if: github.event_name == 'schedule' | ||||||
| uses: actions/checkout@v7 | ||||||
| with: | ||||||
| repository: apache/arrow | ||||||
| ref: main | ||||||
| path: arrow | ||||||
| - name: Checkout apache/arrow-testing | ||||||
| uses: actions/checkout@v7 | ||||||
|
|
@@ -178,7 +179,12 @@ jobs: | |||||
| - name: Extract source archive | ||||||
| run: | | ||||||
| tar -xf apache-arrow-java-*.tar.gz --strip-components=1 | ||||||
| - name: Download the latest Apache Arrow C++ | ||||||
| if: github.event_name != 'schedule' | ||||||
| run: | | ||||||
| ci/scripts/download_cpp.sh latest-rc | ||||||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Same here:
Suggested change
|
||||||
| - name: Checkout Apache Arrow C++ | ||||||
| if: github.event_name == 'schedule' | ||||||
| uses: actions/checkout@v7 | ||||||
| with: | ||||||
| repository: apache/arrow | ||||||
|
|
@@ -267,6 +273,16 @@ jobs: | |||||
| # make brew Java available to CMake | ||||||
| export JAVA_HOME=$(brew --prefix openjdk@17)/libexec/openjdk.jdk/Contents/Home | ||||||
| ci/scripts/jni_macos_build.sh . arrow build jni | ||||||
| - name: Test JSON dataset read | ||||||
|
efegokdemir marked this conversation as resolved.
Resolved
|
||||||
| run: | | ||||||
| JAVA_HOME="$(brew --prefix openjdk@17)/libexec/openjdk.jdk/Contents/Home" | ||||||
| export JAVA_HOME | ||||||
| # Install dependencies without applying the dataset-only test filter to them. | ||||||
| mvn -Parrow-jni -pl dataset -am install -DskipTests \ | ||||||
| -Darrow.c.jni.dist.dir="$PWD/jni" -Darrow.cpp.build.dir="$PWD/jni" | ||||||
| mvn -Parrow-jni -pl dataset test \ | ||||||
| -Darrow.c.jni.dist.dir="$PWD/jni" -Darrow.cpp.build.dir="$PWD/jni" \ | ||||||
| -Dtest='TestFileSystemDataset#testBaseJsonRead' -DfailIfNoTests=true | ||||||
| - name: Compress into single artifact to keep directory structure | ||||||
| run: tar -cvzf jni-macos-${{ matrix.platform.arch }}.tar.gz jni/ | ||||||
| - name: Upload artifacts | ||||||
|
|
||||||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -16,4 +16,5 @@ | |
| # under the License. | ||
|
|
||
| brew "openjdk@17" | ||
| brew "maven" | ||
| brew "sccache" | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
My earlier suggestion to pass
latest-rcwas wrong, sorry about that.download_cpp.sh latest-rconly works while an Arrow C++ RC is staged in https://dist.apache.org/repos/dist/dev/arrow/, which only happens during a vote. Right now that directory only hasKEYSandjava/. Thegrepmatches nothing,pipefailmakes the script exit 1, and the Linux and macOS JNI jobs fail after a few seconds.rc.ymlruns on every push, PR and tag, so after merge this would break CI onmaintoo. It also moves this Linux job offlatest-release, which is whatmainuses today.Could we go back to the default (
latest-release) for both jobs? That's what you did initially, and you were right: