Skip to content

GH-45980: [C++] Bump Bundled Snappy version to 1.2.2#45981

Merged
assignUser merged 3 commits intoapache:mainfrom
assignUser:bump-snappy
Apr 2, 2025
Merged

GH-45980: [C++] Bump Bundled Snappy version to 1.2.2#45981
assignUser merged 3 commits intoapache:mainfrom
assignUser:bump-snappy

Conversation

@assignUser
Copy link
Member

@assignUser assignUser commented Mar 31, 2025

Rationale for this change

CMake 4.0 removed 3.5 as a viable minimum version.

What changes are included in this PR?

Bump bundled snappy.

Are these changes tested?

CI

Are there any user-facing changes?

No.

@assignUser
Copy link
Member Author

assignUser commented Mar 31, 2025

@github-actions crossbow submit test-conda-python-emscripten r-binary-packages

@github-actions
Copy link

Revision: 61d9a6d86cceb54be7ad4e22a7a330a87cb864b1

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

Task Status
r-binary-packages GitHub Actions
test-conda-python-emscripten GitHub Actions

@assignUser assignUser requested a review from pitrou March 31, 2025 16:14
@assignUser assignUser marked this pull request as draft March 31, 2025 19:29
@raulcd
Copy link
Member

raulcd commented Apr 1, 2025

@github-actions crossbow submit test-conda-python-emscripten

@github-actions
Copy link

github-actions bot commented Apr 1, 2025

Revision: 61d9a6d86cceb54be7ad4e22a7a330a87cb864b1

Submitted crossbow builds: ursacomputing/crossbow @ actions-43a7b8e298

Task Status
test-conda-python-emscripten GitHub Actions

@raulcd
Copy link
Member

raulcd commented Apr 1, 2025

I am just confused on why the job uses CMake 4.0 on CI but I have to force installation of CMake 4.0 locally even when forcing rebuilding local images, etcetera.

@pitrou
Copy link
Member

pitrou commented Apr 1, 2025

Can you rebase this now?

@assignUser
Copy link
Member Author

@github-actions crossbow submit -g cpp r-binary-packages

@github-actions
Copy link

github-actions bot commented Apr 1, 2025

Revision: 77ec39f

Submitted crossbow builds: ursacomputing/crossbow @ actions-3d90fd57f2

Task Status
example-cpp-minimal-build-static GitHub Actions
example-cpp-minimal-build-static-system-dependency GitHub Actions
example-cpp-tutorial GitHub Actions
r-binary-packages GitHub Actions
test-alpine-linux-cpp GitHub Actions
test-build-cpp-fuzz GitHub Actions
test-conda-cpp GitHub Actions
test-conda-cpp-meson GitHub Actions
test-conda-cpp-valgrind GitHub Actions
test-cuda-cpp-ubuntu-22.04-cuda-11.7.1 GitHub Actions
test-debian-12-cpp-amd64 GitHub Actions
test-debian-12-cpp-i386 GitHub Actions
test-fedora-39-cpp GitHub Actions
test-ubuntu-22.04-cpp GitHub Actions
test-ubuntu-22.04-cpp-20 GitHub Actions
test-ubuntu-22.04-cpp-bundled GitHub Actions
test-ubuntu-22.04-cpp-emscripten GitHub Actions
test-ubuntu-22.04-cpp-no-threading GitHub Actions
test-ubuntu-24.04-cpp GitHub Actions
test-ubuntu-24.04-cpp-bundled-offline GitHub Actions
test-ubuntu-24.04-cpp-gcc-13-bundled GitHub Actions
test-ubuntu-24.04-cpp-gcc-14 GitHub Actions
test-ubuntu-24.04-cpp-minimal-with-formats GitHub Actions
test-ubuntu-24.04-cpp-thread-sanitizer GitHub Actions

@assignUser assignUser marked this pull request as ready for review April 1, 2025 14:18
@assignUser assignUser requested a review from kou April 2, 2025 06:55
Copy link
Member

@kou kou left a comment

Choose a reason for hiding this comment

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

+1

# We set CMAKE_POLICY_VERSION_MINIMUM temporarily due to failures with CMake 4
# We should remove it once we have updated the dependencies:
# https://github.com/apache/arrow/issues/45985
-DCMAKE_POLICY_VERSION_MINIMUM=3.5)
Copy link
Member

Choose a reason for hiding this comment

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

Can we disable this in build_snappy?

diff --git a/cpp/cmake_modules/ThirdpartyToolchain.cmake b/cpp/cmake_modules/ThirdpartyToolchain.cmake
index f4de617ced..21676ea5f1 100644
--- a/cpp/cmake_modules/ThirdpartyToolchain.cmake
+++ b/cpp/cmake_modules/ThirdpartyToolchain.cmake
@@ -1387,6 +1387,9 @@ macro(build_snappy)
   set(SNAPPY_CMAKE_ARGS
       ${EP_COMMON_CMAKE_ARGS} -DSNAPPY_BUILD_TESTS=OFF -DSNAPPY_BUILD_BENCHMARKS=OFF
       "-DCMAKE_INSTALL_PREFIX=${SNAPPY_PREFIX}")
+  # We can remove this once we remove -DCMAKE_POLICY_VERSION_MINIMUM=3.5
+  # from EP_COMMON_CMAKE_ARGS.
+  list(REMOVE_ITEM SNAPPY_CMAKE_ARGS -DCMAKE_POLICY_VERSION_MINIMUM=3.5)
   # Snappy unconditionally enables -Werror when building with clang this can lead
   # to build failures by way of new compiler warnings. This adds a flag to disable
   # -Werror to the very end of the invocation to override the snappy internal setting.

@github-actions github-actions bot added awaiting merge Awaiting merge and removed awaiting review Awaiting review labels Apr 2, 2025
@assignUser
Copy link
Member Author

@github-actions crossbow submit test-ubuntu-22.04-cpp-emscripten

@github-actions
Copy link

github-actions bot commented Apr 2, 2025

Revision: 7652f19

Submitted crossbow builds: ursacomputing/crossbow @ actions-736994d413

Task Status
test-ubuntu-22.04-cpp-emscripten GitHub Actions

@assignUser assignUser merged commit 686971e into apache:main Apr 2, 2025
25 of 27 checks passed
@assignUser assignUser removed the awaiting merge Awaiting merge label Apr 2, 2025
@assignUser assignUser deleted the bump-snappy branch April 2, 2025 11:15
@conbench-apache-arrow
Copy link

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

There were no benchmark performance regressions. 🎉

The full Conbench report has more details. It also includes information about 30 possible false positives for unstable benchmarks that are known to sometimes produce them.

lriggs pushed a commit to lriggs/arrow that referenced this pull request Apr 15, 2025
)

### Rationale for this change
CMake 4.0 removed 3.5 as a viable minimum version.

### What changes are included in this PR?
Bump bundled snappy.

### Are these changes tested?
CI

### Are there any user-facing changes?
No.
* GitHub Issue: apache#45980

Authored-by: Jacob Wujciak-Jens <[email protected]>
Signed-off-by: Jacob Wujciak-Jens <[email protected]>
zanmato1984 pushed a commit to zanmato1984/arrow that referenced this pull request Apr 15, 2025
)

### Rationale for this change
CMake 4.0 removed 3.5 as a viable minimum version.

### What changes are included in this PR?
Bump bundled snappy.

### Are these changes tested?
CI

### Are there any user-facing changes?
No.
* GitHub Issue: apache#45980

Authored-by: Jacob Wujciak-Jens <[email protected]>
Signed-off-by: Jacob Wujciak-Jens <[email protected]>
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