You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by "Reranko05 (via GitHub)" <gi...@apache.org> on 2026/07/22 15:12:03 UTC

[PR] GH-50565: [CI][C++] Add a JNI Windows CI job [arrow]

Reranko05 opened a new pull request, #50606:
URL: https://github.com/apache/arrow/pull/50606

   ### Rationale
   
   This adds a Windows CI job for the JNI build configuration, following the existing Linux and macOS JNI CI jobs. The new job uses a dedicated CMake preset to match the build options used by the Windows JNI build.
   
   ### What changes are included?
   
   - Add a `ninja-release-jni-windows` CMake preset.
   - Add a `jni-windows` job to `cpp_extra.yml`.
   
   Fixes: #50565


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] GH-50565: [CI][C++] Add a JNI Windows CI job [arrow]

Posted by "kou (via GitHub)" <gi...@apache.org>.
kou commented on PR #50606:
URL: https://github.com/apache/arrow/pull/50606#issuecomment-5066406709

   The Ubuntu job also builds the example: https://github.com/apache/arrow/actions/runs/30065810827/job/89396497420#step:7:6453


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] GH-50565: [CI][C++] Add a JNI Windows CI job [arrow]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #50606:
URL: https://github.com/apache/arrow/pull/50606#issuecomment-5047937917

   :warning: GitHub issue #50565 **has been automatically assigned in GitHub** to PR creator.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] GH-50565: [CI][C++] Add a JNI Windows CI job [arrow]

Posted by "Reranko05 (via GitHub)" <gi...@apache.org>.
Reranko05 commented on PR #50606:
URL: https://github.com/apache/arrow/pull/50606#issuecomment-5054021349

   @kou The new JNI Windows job was canceled during the build. Could you please rerun it so I can verify it completes successfully?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] GH-50565: [CI][C++] Add a JNI Windows CI job [arrow]

Posted by "Reranko05 (via GitHub)" <gi...@apache.org>.
Reranko05 commented on code in PR #50606:
URL: https://github.com/apache/arrow/pull/50606#discussion_r3637281339


##########
.github/workflows/cpp_extra.yml:
##########
@@ -351,6 +351,128 @@ jobs:
           path: ccache
           key: jni-macos
 
+  jni-windows:
+    needs: check-enabled
+    if: needs.check-enabled.outputs.is_enabled == 'true'
+    name: JNI Windows
+    runs-on: windows-2022
+    timeout-minutes: 45

Review Comment:
   Thanks! I increased the timeout to 240 minutes (matching other long-running Windows jobs in the repository) so we can determine the actual runtime.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] GH-50565: [CI][C++] Add a JNI Windows CI job [arrow]

Posted by "Reranko05 (via GitHub)" <gi...@apache.org>.
Reranko05 commented on PR #50606:
URL: https://github.com/apache/arrow/pull/50606#issuecomment-5048514367

   @kou Could you approve the C++ Extra workflow so that I can verify the fix?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] GH-50565: [CI][C++] Add a JNI Windows CI job [arrow]

Posted by "kou (via GitHub)" <gi...@apache.org>.
kou commented on code in PR #50606:
URL: https://github.com/apache/arrow/pull/50606#discussion_r3643695721


##########
cpp/CMakePresets.json:
##########
@@ -681,6 +681,28 @@
         "PARQUET_REQUIRE_ENCRYPTION": "OFF",
         "re2_SOURCE": "BUNDLED"
       }
+    },
+    {
+      "name": "ninja-release-jni-windows",
+      "inherits": [
+        "base-release"
+      ],
+      "displayName": "Build for JNI on Windows",
+      "cacheVariables": {
+        "ARROW_ACERO": "ON",
+        "ARROW_BUILD_SHARED": "OFF",
+        "ARROW_BUILD_STATIC": "ON",
+        "ARROW_CSV": "ON",
+        "ARROW_DATASET": "ON",
+        "ARROW_DEPENDENCY_USE_SHARED": "OFF",
+        "ARROW_ORC": "ON",
+        "ARROW_PARQUET": "ON",
+        "ARROW_S3": "ON",
+        "ARROW_SUBSTRAIT": "ON",

Review Comment:
   Could you add https://github.com/apache/arrow-java/blob/21b6a05154b7713b12ace4c0ba3572ba5cc8fe66/ci/scripts/jni_windows_build.sh#L80-L83 too?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] GH-50565: [CI][C++] Add a JNI Windows CI job [arrow]

Posted by "conbench-apache-arrow[bot] (via GitHub)" <gi...@apache.org>.
conbench-apache-arrow[bot] commented on PR #50606:
URL: https://github.com/apache/arrow/pull/50606#issuecomment-5077810749

   After merging your PR, Conbench analyzed the 4 benchmarking runs that have been run so far on merge-commit 5a0b57aac5d6953601cbf86e5094ea0781691a35.
   
   There were no benchmark performance regressions. 🎉
   
   The [full Conbench report](https://github.com/apache/arrow/runs/89663496381) has more details. It also includes information about 26 possible false positives for unstable benchmarks that are known to sometimes produce them.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] GH-50565: [CI][C++] Add a JNI Windows CI job [arrow]

Posted by "raulcd (via GitHub)" <gi...@apache.org>.
raulcd commented on code in PR #50606:
URL: https://github.com/apache/arrow/pull/50606#discussion_r3637110710


##########
.github/workflows/cpp_extra.yml:
##########
@@ -351,6 +351,128 @@ jobs:
           path: ccache
           key: jni-macos
 
+  jni-windows:
+    needs: check-enabled
+    if: needs.check-enabled.outputs.is_enabled == 'true'
+    name: JNI Windows
+    runs-on: windows-2022
+    timeout-minutes: 45

Review Comment:
   I've retried. It seems to be cancelled after 45 minutes due to timeout. Can you increase the timeout to see what is a more appropriate one?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] GH-50565: [CI][C++] Add a JNI Windows CI job [arrow]

Posted by "Reranko05 (via GitHub)" <gi...@apache.org>.
Reranko05 commented on PR #50606:
URL: https://github.com/apache/arrow/pull/50606#issuecomment-5066184109

   @kou The original linking issue is resolved and the build/tests now pass. The remaining failure is in the Build example step. I copied this step from the macOS JNI workflow when creating the Windows job, but I noticed none of the other Windows workflows (or the Linux JNI workflow) build the minimal example. Should we keep this validation in the Windows JNI job, or is it OK to remove it?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] GH-50565: [CI][C++] Add a JNI Windows CI job [arrow]

Posted by "kou (via GitHub)" <gi...@apache.org>.
kou commented on PR #50606:
URL: https://github.com/apache/arrow/pull/50606#issuecomment-5063440157

   Could you try this?
   
   ```diff
   diff --git a/cpp/src/arrow/engine/CMakeLists.txt b/cpp/src/arrow/engine/CMakeLists.txt
   index adf98087ad..c610eea836 100644
   --- a/cpp/src/arrow/engine/CMakeLists.txt
   +++ b/cpp/src/arrow/engine/CMakeLists.txt
   @@ -72,8 +72,7 @@ endforeach()
    
    set(ARROW_SUBSTRAIT_TEST_LINK_LIBS ${ARROW_SUBSTRAIT_LINK_lIBS} ${ARROW_TEST_LINK_LIBS})
    if(ARROW_TEST_LINKAGE STREQUAL "static")
   -  list(APPEND ARROW_SUBSTRAIT_TEST_LINK_LIBS arrow_substrait_static
   -       arrow_substrait_static)
   +  list(APPEND ARROW_SUBSTRAIT_TEST_LINK_LIBS arrow_substrait_static)
    else()
      list(APPEND ARROW_SUBSTRAIT_TEST_LINK_LIBS arrow_substrait_shared)
    endif()
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] GH-50565: [CI][C++] Add a JNI Windows CI job [arrow]

Posted by "Reranko05 (via GitHub)" <gi...@apache.org>.
Reranko05 commented on PR #50606:
URL: https://github.com/apache/arrow/pull/50606#issuecomment-5060251525

   @raulcd @kou I've investigated this further but I'm stuck on the remaining linker failure and would appreciate some guidance.
   
   The Windows JNI job now builds almost completely and only fails while linking `arrow-substrait-substrait-test` with these two unresolved symbols:
   
   - `arrow::engine::internal::CreateScanProjectSubstrait`
   - `arrow::engine::internal::CreateScanAggSubstrait`
   
   Both are defined and declared in `test_plan_builder.{cc,h}`
   
   So far I've verified that:
   - `test_plan_builder.cc` is included in `ARROW_SUBSTRAIT_SRCS`.
   - `arrow_substrait_static` is linked into `arrow-substrait-substrait-test`.
   - The linker reports these two symbols as `__declspec(dllimport)`.
   - I also investigated `ARROW_ENGINE_STATIC`, but unlike other modules I couldn't find it being propagated anywhere in the CMake build (it's only referenced in Meson/pkg-config), so I'm not convinced that's the root cause.
   
   Most other symbols from `arrow_substrait_static` link successfully; only these two remain unresolved.
   
   At this point I'm not sure where to continue debugging.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] GH-50565: [CI][C++] Add a JNI Windows CI job [arrow]

Posted by "Reranko05 (via GitHub)" <gi...@apache.org>.
Reranko05 commented on PR #50606:
URL: https://github.com/apache/arrow/pull/50606#issuecomment-5067029096

   @kou I found the remaining issue. The minimal example was being configured as a Debug build, while the installed Arrow libraries were built in Release mode. Explicitly configuring the example with `-DCMAKE_BUILD_TYPE=Release `fixes the build.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] GH-50565: [CI][C++] Add a JNI Windows CI job [arrow]

Posted by "Reranko05 (via GitHub)" <gi...@apache.org>.
Reranko05 commented on PR #50606:
URL: https://github.com/apache/arrow/pull/50606#issuecomment-5067206926

   @kou I have disabled ARROW_JSON for MacOS 11.3 SDK which is used in Crossbow `test-r-macos-as-cran` job, please re-run the Crossbow job to verify whether this resolves the issue?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] GH-50565: [CI][C++] Add a JNI Windows CI job [arrow]

Posted by "kou (via GitHub)" <gi...@apache.org>.
kou commented on PR #50606:
URL: https://github.com/apache/arrow/pull/50606#issuecomment-5066402709

   Please keep the example build step. JNI build in apache/arrow-java uses `find_package(Arrow)` and the example build step checks it.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] GH-50565: [CI][C++] Add a JNI Windows CI job [arrow]

Posted by "Reranko05 (via GitHub)" <gi...@apache.org>.
Reranko05 commented on PR #50606:
URL: https://github.com/apache/arrow/pull/50606#issuecomment-5067963512

   Sure. I'll investigate `apache/arrow-java#1243` soon and work on reproducing and fixing the issue there. Thanks!


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] GH-50565: [CI][C++] Add a JNI Windows CI job [arrow]

Posted by "Reranko05 (via GitHub)" <gi...@apache.org>.
Reranko05 commented on code in PR #50606:
URL: https://github.com/apache/arrow/pull/50606#discussion_r3643719933


##########
cpp/CMakePresets.json:
##########
@@ -681,6 +681,28 @@
         "PARQUET_REQUIRE_ENCRYPTION": "OFF",
         "re2_SOURCE": "BUNDLED"
       }
+    },
+    {
+      "name": "ninja-release-jni-windows",
+      "inherits": [
+        "base-release"
+      ],
+      "displayName": "Build for JNI on Windows",
+      "cacheVariables": {
+        "ARROW_ACERO": "ON",
+        "ARROW_BUILD_SHARED": "OFF",
+        "ARROW_BUILD_STATIC": "ON",
+        "ARROW_CSV": "ON",
+        "ARROW_DATASET": "ON",
+        "ARROW_DEPENDENCY_USE_SHARED": "OFF",
+        "ARROW_ORC": "ON",
+        "ARROW_PARQUET": "ON",
+        "ARROW_S3": "ON",
+        "ARROW_SUBSTRAIT": "ON",

Review Comment:
   Added.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] GH-50565: [CI][C++] Add a JNI Windows CI job [arrow]

Posted by "kou (via GitHub)" <gi...@apache.org>.
kou merged PR #50606:
URL: https://github.com/apache/arrow/pull/50606


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] GH-50565: [CI][C++] Add a JNI Windows CI job [arrow]

Posted by "kou (via GitHub)" <gi...@apache.org>.
kou commented on PR #50606:
URL: https://github.com/apache/arrow/pull/50606#issuecomment-5063708628

   Could you also try this?
   
   ```diff
   diff --git a/cpp/src/arrow/engine/CMakeLists.txt b/cpp/src/arrow/engine/CMakeLists.txt
   index adf98087ad..438e00936e 100644
   --- a/cpp/src/arrow/engine/CMakeLists.txt
   +++ b/cpp/src/arrow/engine/CMakeLists.txt
   @@ -70,6 +70,10 @@ foreach(LIB_TARGET ${ARROW_SUBSTRAIT_LIBRARIES})
      target_compile_definitions(${LIB_TARGET} PRIVATE ARROW_ENGINE_EXPORTING)
    endforeach()
    
   +if(ARROW_BUILD_STATIC AND WIN32)
   +   target_compile_definitions(arrow_substrait_static PUBLIC ARROW_ENGINE_STATIC)
   + endif()
   +
    set(ARROW_SUBSTRAIT_TEST_LINK_LIBS ${ARROW_SUBSTRAIT_LINK_lIBS} ${ARROW_TEST_LINK_LIBS})
    if(ARROW_TEST_LINKAGE STREQUAL "static")
      list(APPEND ARROW_SUBSTRAIT_TEST_LINK_LIBS arrow_substrait_static
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org