Conversation
Summary of ChangesHello @scotthart, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request significantly upgrades and refines the Continuous Integration (CI) infrastructure, with a particular focus on Windows builds. It modernizes the dependency management by updating vcpkg and deeply integrating the OpenTelemetry C++ library, ensuring builds consistently use C++17. The changes address specific platform compatibility issues and streamline the process of incorporating external libraries, leading to more robust and reliable CI pipelines. Highlights
Ignored Files
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
There was a problem hiding this comment.
Code Review
This pull request updates the CI/CD configuration for Windows builds, primarily focusing on vcpkg and OpenTelemetry-CPP. Key changes include setting C++17 as the standard, updating vcpkg versions and SHA hashes, and introducing new features and fixes for OpenTelemetry-CPP dependencies. The changes improve Windows compatibility and dependency management.
| endif () | ||
|
|
||
| if (WIN32) | ||
| add_definitions(-DNOMINMAX) |
There was a problem hiding this comment.
| args+=("-DVCPKG_TARGET_TRIPLET=${VCPKG_TRIPLET}") | ||
| fi | ||
| args+=("-DVCPKG_OVERLAY_PORTS=ci/gha/builds/vcpkg-overlays") | ||
| args+=("-DVCPKG_OVERLAY_PORTS=ci\gha\builds\vcpkg-overlays") |
| fi | ||
| local args | ||
| args=( | ||
| -DCMAKE_CXX_STANDARD=17 |
There was a problem hiding this comment.
Setting CMAKE_CXX_STANDARD to 17 explicitly ensures that the project is built with C++17 features. This is a good practice for modern C++ development and aligns with the repository's stated support for C++14 as a minimum version, effectively upgrading the standard used in this build configuration.
References
- The repository style guide states that C++14 is the minimum supported C++ standard version. Upgrading to C++17 is a positive step towards modern C++ practices. (link)
| "-DgRPC_CPP_PLUGIN_EXECUTABLE=${CURRENT_HOST_INSTALLED_DIR}/tools/grpc/grpc_cpp_plugin${VCPKG_HOST_EXECUTABLE_SUFFIX}" | ||
| ) | ||
| endif () | ||
| list(APPEND FEATURE_OPTIONS -DCMAKE_CXX_STANDARD=17 -DWITH_STL=CXX17) |
There was a problem hiding this comment.
Explicitly setting CMAKE_CXX_STANDARD=17 and WITH_STL=CXX17 ensures consistency in the C++ standard used for the OpenTelemetry-CPP port. This aligns with modern C++ practices and the project's C++ standard requirements.
References
- The repository style guide states that C++14 is the minimum supported C++ standard version. Using C++17 here is an appropriate upgrade. (link)
| WITH_USER_EVENTS | ||
| BUILD_TRACEPOINTS) | ||
| BUILD_TRACEPOINTS | ||
| gRPC_CPP_PLUGIN_EXECUTABLE) |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## prepare-for-v3.0.0 #15924 +/- ##
======================================================
+ Coverage 92.85% 92.86% +0.01%
======================================================
Files 2343 2343
Lines 216258 216258
======================================================
+ Hits 200804 200831 +27
+ Misses 15454 15427 -27 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
This change is