Skip to content

GH-46159: [CI][C++] Stop using possibly missing boost/process/v2.hpp on boost 1.88 and use individual includes - #46160

Merged
assignUser merged 2 commits into
apache:mainfrom
raulcd:GH-46159
Apr 17, 2025
Merged

assignUser merged 2 commits into
apache:mainfrom
raulcd:GH-46159

Conversation

@raulcd

@raulcd raulcd commented Apr 16, 2025 •

Copy link
Copy Markdown
Member

Rationale for this change

Similar to #46113 but for boost v2.
The files v1.hpp and v2.hpp have been removed from include/boost/process on 1.88:
https://github.com/boostorg/process/tree/develop/include/boost/process
but were available on 1.87:
https://github.com/boostorg/process/blob/boost-1.87.0/include/boost/process/v1.hpp
https://github.com/boostorg/process/blob/boost-1.87.0/include/boost/process/v2.hpp

What changes are included in this PR?

Stop using include for possible missing file and add individual includes

Are these changes tested?

Via CI

Are there any user-facing changes?

No

…2.hpp on boost 1.88 and use individual includes
@github-actions

Copy link
Copy Markdown

⚠️ GitHub issue #46159 has been automatically assigned in GitHub to PR creator.

@raulcd

raulcd commented Apr 16, 2025

Copy link
Copy Markdown
Member Author

@github-actions crossbow submit verify-rc-source-integration-macos-amd64

@github-actions

Copy link
Copy Markdown

Revision: 50dbdac

Submitted crossbow builds: ursacomputing/crossbow @ actions-ed56ead6bc

Task Status
verify-rc-source-integration-macos-amd64 GitHub Actions

@raulcd

raulcd commented Apr 16, 2025

Copy link
Copy Markdown
Member Author

The job is now using bootst 1.87 Found Boost 1.87.0 at /usr/local/lib/cmake/Boost-1.87.0 instead of 1.88 as on the nightly failure 🤔

@kou kou left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

+1

But how about this?

diff --git a/cpp/src/arrow/testing/process.cc b/cpp/src/arrow/testing/process.cc
index b1c4fa5550..a94da86c94 100644
--- a/cpp/src/arrow/testing/process.cc
+++ b/cpp/src/arrow/testing/process.cc
@@ -39,10 +39,19 @@
 #      ifdef __APPLE__
 #        include <sys/sysctl.h>
 #      endif
-#      include <boost/process/v2.hpp>
+#    endif
+#    include <boost/process/v2/environment.hpp>
+#    include <boost/process/v2/error.hpp>
+#    include <boost/process/v2/execute.hpp>
+#    include <boost/process/v2/exit_code.hpp>
+#    include <boost/process/v2/pid.hpp>
+#    include <boost/process/v2/popen.hpp>
+#    include <boost/process/v2/process.hpp>
+#    include <boost/process/v2/process_handle.hpp>
+#    include <boost/process/v2/start_dir.hpp>
+#    include <boost/process/v2/stdio.hpp>
+#    ifdef BOOST_PROCESS_NEED_SOURCE
 #      include <boost/process/v2/src.hpp>
-#    else
-#      include <boost/process/v2.hpp>
 #    endif
 #    include <unordered_map>
 #  else

@raulcd

raulcd commented Apr 16, 2025

Copy link
Copy Markdown
Member Author

@github-actions crossbow submit verify-rc-source-integration-macos-amd64

@github-actions

Copy link
Copy Markdown

Revision: 3ade5dd

Submitted crossbow builds: ursacomputing/crossbow @ actions-4e85a276e1

Task Status
verify-rc-source-integration-macos-amd64 GitHub Actions

@conbench-apache-arrow

Copy link
Copy Markdown

After merging your PR, Conbench analyzed the 4 benchmarking runs that have been run so far on merge-commit 0ae5c86.

There were no benchmark performance regressions. 🎉

The full Conbench report has more details.

assignUser pushed a commit that referenced this pull request Apr 22, 2025
…on boost 1.88 and use individual includes (#46160)

### Rationale for this change

Similar to #46113 but for boost v2. 
The files `v1.hpp` and `v2.hpp` have been removed from `include/boost/process` on `1.88`:
https://github.com/boostorg/process/tree/develop/include/boost/process
but were available on `1.87`:
https://github.com/boostorg/process/blob/boost-1.87.0/include/boost/process/v1.hpp
https://github.com/boostorg/process/blob/boost-1.87.0/include/boost/process/v2.hpp

### What changes are included in this PR?

Stop using include for possible missing file and add individual includes

### Are these changes tested?

Via CI

### Are there any user-facing changes?

No

* GitHub Issue: #46159

Authored-by: Raúl Cumplido <raulcumplido@gmail.com>
Signed-off-by: Jacob Wujciak-Jens <jacob@wujciak.de>

@gitmodimo gitmodimo left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

<boost/process/v2/src.hpp> should also be removed. Is does not exist since boost 1.86.
boostorg/process#411

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants