You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by "kou (via GitHub)" <gi...@apache.org> on 2025/02/05 01:06:36 UTC
[PR] GH-45423: [C++] Don't require Boost library with ARROW_TESTING=ON/ARROW_BUILD_SHARED=OFF [arrow]
kou opened a new pull request, #45424:
URL: https://github.com/apache/arrow/pull/45424
### Rationale for this change
We can use `libarrow_testing.a` without `boost::filesystem` when `arrow::util::Process` isn't used.
### What changes are included in this PR?
`ARROW_TESTING=ON` requires Boost. If `ARROW_BUILD_SHARED=ON` is also used, Boost libraries are also required.
### Are these changes tested?
Yes.
### Are there any user-facing changes?
No.
--
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-45423: [C++] Don't require Boost library with ARROW_TESTING=ON/ARROW_BUILD_SHARED=OFF [arrow]
Posted by "kou (via GitHub)" <gi...@apache.org>.
kou commented on PR #45424:
URL: https://github.com/apache/arrow/pull/45424#issuecomment-2635477533
@github-actions crossbow submit test-build-cpp-fuzz
--
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-45423: [C++] Don't require Boost library with ARROW_TESTING=ON/ARROW_BUILD_SHARED=OFF [arrow]
Posted by "kou (via GitHub)" <gi...@apache.org>.
kou commented on code in PR #45424:
URL: https://github.com/apache/arrow/pull/45424#discussion_r1942166829
##########
cpp/cmake_modules/ThirdpartyToolchain.cmake:
##########
@@ -1256,14 +1256,19 @@ endif()
# - Gandiva has a compile-time (header-only) dependency on Boost, not runtime.
# - Tests need Boost at runtime.
# - S3FS and Flight benchmarks need Boost at runtime.
+# - arrow_testing uses boost::filesystem. So arrow_testing requires
Review Comment:
Hmm. We may need to use `boost::filesystem` here...: https://github.com/apache/arrow/blob/1567be0d74c5ee90c3d989f6fcefb32c402a736c/cpp/src/arrow/testing/process.cc#L290-L292
--
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-45423: [C++] Don't require Boost library with ARROW_TESTING=ON/ARROW_BUILD_SHARED=OFF [arrow]
Posted by "wgtmac (via GitHub)" <gi...@apache.org>.
wgtmac commented on code in PR #45424:
URL: https://github.com/apache/arrow/pull/45424#discussion_r1943003911
##########
cpp/cmake_modules/ThirdpartyToolchain.cmake:
##########
@@ -1256,14 +1256,19 @@ endif()
# - Gandiva has a compile-time (header-only) dependency on Boost, not runtime.
# - Tests need Boost at runtime.
# - S3FS and Flight benchmarks need Boost at runtime.
+# - arrow_testing uses boost::filesystem. So arrow_testing requires
Review Comment:
I didn't find any issue after a quick search. Is this something that worth doing? Perhaps we need to vendor a lightweight platform-independent process library like https://gitlab.com/eidheim/tiny-process-library to get rid of boost::process.
--
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-45423: [C++] Don't require Boost library with ARROW_TESTING=ON/ARROW_BUILD_SHARED=OFF [arrow]
Posted by "conbench-apache-arrow[bot] (via GitHub)" <gi...@apache.org>.
conbench-apache-arrow[bot] commented on PR #45424:
URL: https://github.com/apache/arrow/pull/45424#issuecomment-2640050039
After merging your PR, Conbench analyzed the 4 benchmarking runs that have been run so far on merge-commit deccce15041809157a84ff2b869015a36bdf2270.
There were 8 benchmark results with an error:
- Commit Run on `test-mac-arm` at [2025-02-06 11:26:22Z](https://conbench.ursa.dev/compare/runs/1b4bd3a261694917bc0eb4481d1b250b...0045a865bcc542e480fbf992158faa3a/)
- [`tpch` (R) with engine=arrow, format=native, language=R, memory_map=False, query_id=TPCH-03, scale_factor=1](https://conbench.ursa.dev/benchmark-results/067a49c7f2137c8b80001d12cddedee7)
- [`tpch` (R) with engine=arrow, format=parquet, language=R, memory_map=False, query_id=TPCH-03, scale_factor=1](https://conbench.ursa.dev/benchmark-results/067a49c89545753580001a826a1243b9)
- and 6 more (see the report linked below)
There were no benchmark performance regressions. 🎉
The [full Conbench report](https://github.com/apache/arrow/runs/36793126478) has more details. It also includes information about 2 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-45423: [C++] Don't require Boost library with ARROW_TESTING=ON/ARROW_BUILD_SHARED=OFF [arrow]
Posted by "wgtmac (via GitHub)" <gi...@apache.org>.
wgtmac commented on code in PR #45424:
URL: https://github.com/apache/arrow/pull/45424#discussion_r1943024005
##########
cpp/cmake_modules/ThirdpartyToolchain.cmake:
##########
@@ -1256,14 +1256,19 @@ endif()
# - Gandiva has a compile-time (header-only) dependency on Boost, not runtime.
# - Tests need Boost at runtime.
# - S3FS and Flight benchmarks need Boost at runtime.
+# - arrow_testing uses boost::filesystem. So arrow_testing requires
Review Comment:
I believe this is worthwhile and I just did similar things for the Apache Avro C++ library: https://issues.apache.org/jira/browse/AVRO-4095. However, I don't know if there is any good alternative to boost::process. If the solution is clear, I'm happy to fix this.
--
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-45423: [C++] Don't require Boost library with ARROW_TESTING=ON/ARROW_BUILD_SHARED=OFF [arrow]
Posted by "raulcd (via GitHub)" <gi...@apache.org>.
raulcd commented on code in PR #45424:
URL: https://github.com/apache/arrow/pull/45424#discussion_r1943011527
##########
cpp/cmake_modules/ThirdpartyToolchain.cmake:
##########
@@ -1256,14 +1256,19 @@ endif()
# - Gandiva has a compile-time (header-only) dependency on Boost, not runtime.
# - Tests need Boost at runtime.
# - S3FS and Flight benchmarks need Boost at runtime.
+# - arrow_testing uses boost::filesystem. So arrow_testing requires
Review Comment:
I thought I heard @pitrou suggesting we wanted to remove our boost dependencies (or something related) but I might be mistaken
--
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-45423: [C++] Don't require Boost library with ARROW_TESTING=ON/ARROW_BUILD_SHARED=OFF [arrow]
Posted by "kou (via GitHub)" <gi...@apache.org>.
kou commented on code in PR #45424:
URL: https://github.com/apache/arrow/pull/45424#discussion_r1942165470
##########
cpp/cmake_modules/ThirdpartyToolchain.cmake:
##########
@@ -1256,14 +1256,19 @@ endif()
# - Gandiva has a compile-time (header-only) dependency on Boost, not runtime.
# - Tests need Boost at runtime.
# - S3FS and Flight benchmarks need Boost at runtime.
+# - arrow_testing uses boost::filesystem. So arrow_testing requires
Review Comment:
Ah, wait. We may be able to replace `boost::filesystem` with `std::filesystem`. We don't need to use `boost::filesystem` by replacing `boost::filesystem` with `std::filesystem` here: https://github.com/apache/arrow/blob/1567be0d74c5ee90c3d989f6fcefb32c402a736c/cpp/src/arrow/testing/process.cc#L251-L283
--
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-45423: [C++] Don't require Boost library with ARROW_TESTING=ON/ARROW_BUILD_SHARED=OFF [arrow]
Posted by "wgtmac (via GitHub)" <gi...@apache.org>.
wgtmac commented on code in PR #45424:
URL: https://github.com/apache/arrow/pull/45424#discussion_r1942182890
##########
cpp/cmake_modules/ThirdpartyToolchain.cmake:
##########
@@ -1256,14 +1256,19 @@ endif()
# - Gandiva has a compile-time (header-only) dependency on Boost, not runtime.
# - Tests need Boost at runtime.
# - S3FS and Flight benchmarks need Boost at runtime.
+# - arrow_testing uses boost::filesystem. So arrow_testing requires
Review Comment:
Fine... It seems requiring non-trivial work to replace boost::process.
--
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-45423: [C++] Don't require Boost library with ARROW_TESTING=ON/ARROW_BUILD_SHARED=OFF [arrow]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #45424:
URL: https://github.com/apache/arrow/pull/45424#issuecomment-2635479694
Revision: 06a70af5b883ab11fd95a14f50ff0ad11351fd91
Submitted crossbow builds: [ursacomputing/crossbow @ actions-a3bc80b5c0](https://github.com/ursacomputing/crossbow/branches/all?query=actions-a3bc80b5c0)
|Task|Status|
|----|------|
|test-build-cpp-fuzz|[](https://github.com/ursacomputing/crossbow/actions/runs/13148039578/job/36690239878)|
--
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-45423: [C++] Don't require Boost library with ARROW_TESTING=ON/ARROW_BUILD_SHARED=OFF [arrow]
Posted by "pitrou (via GitHub)" <gi...@apache.org>.
pitrou commented on code in PR #45424:
URL: https://github.com/apache/arrow/pull/45424#discussion_r1943203196
##########
cpp/cmake_modules/ThirdpartyToolchain.cmake:
##########
@@ -1256,14 +1256,19 @@ endif()
# - Gandiva has a compile-time (header-only) dependency on Boost, not runtime.
# - Tests need Boost at runtime.
# - S3FS and Flight benchmarks need Boost at runtime.
+# - arrow_testing uses boost::filesystem. So arrow_testing requires
Review Comment:
Yes, unfortunately we must rely on `boost::process` for now. The only alternative AFAIK would be to write our own cross-platform process-launching code.
--
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-45423: [C++] Don't require Boost library with ARROW_TESTING=ON/ARROW_BUILD_SHARED=OFF [arrow]
Posted by "kou (via GitHub)" <gi...@apache.org>.
kou merged PR #45424:
URL: https://github.com/apache/arrow/pull/45424
--
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-45423: [C++] Don't require Boost library with ARROW_TESTING=ON/ARROW_BUILD_SHARED=OFF [arrow]
Posted by "wgtmac (via GitHub)" <gi...@apache.org>.
wgtmac commented on code in PR #45424:
URL: https://github.com/apache/arrow/pull/45424#discussion_r1942156943
##########
cpp/cmake_modules/ThirdpartyToolchain.cmake:
##########
@@ -1256,14 +1256,19 @@ endif()
# - Gandiva has a compile-time (header-only) dependency on Boost, not runtime.
# - Tests need Boost at runtime.
# - S3FS and Flight benchmarks need Boost at runtime.
+# - arrow_testing uses boost::filesystem. So arrow_testing requires
Review Comment:
Can we replace `boost::filesystem` with `std::filesystem`?
--
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-45423: [C++] Don't require Boost library with ARROW_TESTING=ON/ARROW_BUILD_SHARED=OFF [arrow]
Posted by "kou (via GitHub)" <gi...@apache.org>.
kou commented on code in PR #45424:
URL: https://github.com/apache/arrow/pull/45424#discussion_r1942163931
##########
cpp/cmake_modules/ThirdpartyToolchain.cmake:
##########
@@ -1256,14 +1256,19 @@ endif()
# - Gandiva has a compile-time (header-only) dependency on Boost, not runtime.
# - Tests need Boost at runtime.
# - S3FS and Flight benchmarks need Boost at runtime.
+# - arrow_testing uses boost::filesystem. So arrow_testing requires
Review Comment:
No... It's used by `boost::process`...: https://github.com/apache/arrow/blob/1567be0d74c5ee90c3d989f6fcefb32c402a736c/cpp/src/arrow/testing/process.cc#L76-L92
--
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-45423: [C++] Don't require Boost library with ARROW_TESTING=ON/ARROW_BUILD_SHARED=OFF [arrow]
Posted by "kou (via GitHub)" <gi...@apache.org>.
kou commented on code in PR #45424:
URL: https://github.com/apache/arrow/pull/45424#discussion_r1943869929
##########
cpp/cmake_modules/ThirdpartyToolchain.cmake:
##########
@@ -1256,14 +1256,19 @@ endif()
# - Gandiva has a compile-time (header-only) dependency on Boost, not runtime.
# - Tests need Boost at runtime.
# - S3FS and Flight benchmarks need Boost at runtime.
+# - arrow_testing uses boost::filesystem. So arrow_testing requires
Review Comment:
In general, I agree with removing Boost dependency. But it's not easy and it requires many changes.
Let's discuss it in #45440.
BTW, can we merge this to fix test-build-cpp-fuzz failure?
--
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-45423: [C++] Don't require Boost library with ARROW_TESTING=ON/ARROW_BUILD_SHARED=OFF [arrow]
Posted by "raulcd (via GitHub)" <gi...@apache.org>.
raulcd commented on code in PR #45424:
URL: https://github.com/apache/arrow/pull/45424#discussion_r1942628532
##########
cpp/cmake_modules/ThirdpartyToolchain.cmake:
##########
@@ -1256,14 +1256,19 @@ endif()
# - Gandiva has a compile-time (header-only) dependency on Boost, not runtime.
# - Tests need Boost at runtime.
# - S3FS and Flight benchmarks need Boost at runtime.
+# - arrow_testing uses boost::filesystem. So arrow_testing requires
Review Comment:
is there an issue opened for this work? I think it's worth having the issue to track reducing our boost dependencies.
--
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-45423: [C++] Don't require Boost library with ARROW_TESTING=ON/ARROW_BUILD_SHARED=OFF [arrow]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #45424:
URL: https://github.com/apache/arrow/pull/45424#issuecomment-2635477709
:warning: GitHub issue #45423 **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