Repository navigation
GH-48555: [C++] Use FetchContent for bundled opentelemetry - #48556
Conversation
|
@github-actions crossbow submit -g cpp |
|
Revision: fc75e09 Submitted crossbow builds: ursacomputing/crossbow @ actions-e46351eaaf |
|
@github-actions crossbow submit -g r |
|
Revision: fc75e09 Submitted crossbow builds: ursacomputing/crossbow @ actions-ec54fcedbe |
| string(APPEND CMAKE_C_FLAGS | ||
| " -Wno-attributes -Wno-format-security -Wno-unknown-warning-option") | ||
| string(APPEND CMAKE_CXX_FLAGS | ||
| " -Wno-attributes -Wno-format-security -Wno-unknown-warning-option") | ||
| string(APPEND CMAKE_C_FLAGS " -Wno-attributes -Wno-format-security") | ||
| string(APPEND CMAKE_CXX_FLAGS " -Wno-attributes -Wno-format-security") | ||
| endif() | ||
| if(CMAKE_CXX_COMPILER_ID STREQUAL "AppleClang" OR CMAKE_CXX_COMPILER_ID STREQUAL | ||
| "Clang") | ||
| string(APPEND CMAKE_C_FLAGS " -Wno-unknown-warning-option") | ||
| string(APPEND CMAKE_CXX_FLAGS " -Wno-unknown-warning-option") |
There was a problem hiding this comment.
This isn't strictly necessary for this PR but I found that it was raising a warning:
At global scope:
cc1plus: note: unrecognized command-line option ‘-Wno-unknown-warning-option’ may have been intended to silence earlier diagnostics
|
@github-actions crossbow submit -g r -g cpp |
|
Revision: ddef2be Submitted crossbow builds: ursacomputing/crossbow @ actions-d0a2796afe |
|
@github-actions crossbow submit test-ubuntu-24.04-cpp-thread-sanitizer |
|
I am triggering the latest job without any changes on this PR just to diagnose a failure on a different PR :) |
|
Revision: ddef2be Submitted crossbow builds: ursacomputing/crossbow @ actions-45e7cbdfe9
|
|
@kou this should also be ready, follows the same pattern as the previous ones. |
…che#48556) ### Rationale for this change As a follow up of requiring a minimum CMake version >= 3.25 we discussed moving our dependencies from ExternalProject to FetchContent. This can simplify our third party dependency management. ### What changes are included in this PR? The general change is moving opentelemetry from `ExternalProject` to `FetchContent`. We can clean up previously required installation on nlohmann-json. There has been also a minor unrelated change fixing a warning raised on non-clang compiler when using ` -Wno-unknown-warning-option` ### Are these changes tested? Yes, the changes are tested locally and on CI. ### Are there any user-facing changes? No * GitHub Issue: apache#48555 Authored-by: Raúl Cumplido <raulcumplido@gmail.com> Signed-off-by: Sutou Kouhei <kou@clear-code.com>
|
After merging your PR, Conbench analyzed the 3 benchmarking runs that have been run so far on merge-commit cbd48a4. There were no benchmark performance regressions. 🎉 The full Conbench report has more details. It also includes information about 3 possible false positives for unstable benchmarks that are known to sometimes produce them. |
|
|
||
| add_dependencies(opentelemetry_dependencies opentelemetry_proto_ep | ||
| ${ARROW_PROTOBUF_LIBPROTOBUF}) | ||
| fetchcontent_makeavailable(opentelemetry_cpp) |
There was a problem hiding this comment.
Hm, seems like this actually breaks the complete docs build job https://github.com/apache/arrow/actions/runs/20356061612/job/58491733937
| endforeach() | ||
|
|
||
| set(OPENTELEMETRY_CMAKE_ARGS | ||
| ${EP_COMMON_CMAKE_ARGS} "-DCMAKE_INSTALL_PREFIX=${OPENTELEMETRY_PREFIX}" |
There was a problem hiding this comment.
Cuz before it was using a diff cmake ... which doesn't propagate CMAKE_UNITY_BUILD=ON but seems like now we pass it from the parent came L3739 ... ?
There was a problem hiding this comment.
which triggers protobug generated file schema are conflicted when CMAKE_UNITY_BUILD is on .. ? Let me try a quick fix.
There was a problem hiding this comment.
Thanks for the assessment, I love that I always make the protobug typo, seems I'm not the only one :P
…che#48556) ### Rationale for this change As a follow up of requiring a minimum CMake version >= 3.25 we discussed moving our dependencies from ExternalProject to FetchContent. This can simplify our third party dependency management. ### What changes are included in this PR? The general change is moving opentelemetry from `ExternalProject` to `FetchContent`. We can clean up previously required installation on nlohmann-json. There has been also a minor unrelated change fixing a warning raised on non-clang compiler when using ` -Wno-unknown-warning-option` ### Are these changes tested? Yes, the changes are tested locally and on CI. ### Are there any user-facing changes? No * GitHub Issue: apache#48555 Authored-by: Raúl Cumplido <raulcumplido@gmail.com> Signed-off-by: Sutou Kouhei <kou@clear-code.com>
Rationale for this change
As a follow up of requiring a minimum CMake version >= 3.25 we discussed moving our dependencies from ExternalProject to FetchContent. This can simplify our third party dependency management.
What changes are included in this PR?
The general change is moving opentelemetry from
ExternalProjecttoFetchContent.We can clean up previously required installation on nlohmann-json. There has been also a minor unrelated change fixing a warning raised on non-clang compiler when using
-Wno-unknown-warning-optionAre these changes tested?
Yes, the changes are tested locally and on CI.
Are there any user-facing changes?
No