Skip to content

[BUILD] upgrade googletest and benchmark to the latest releases supporting C++14 #3607

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

dbarker
Copy link
Member

@dbarker dbarker commented Aug 22, 2025

Contributes to #3525

Upgrade googletest and benchmark to the latest versions that support C++14.

Changes

  • upgrade googletest to 1.16.0
  • upgrade benchmark to 1.9.0

For significant contributions please make sure you have completed the following items:

  • CHANGELOG.md updated for non-trivial changes
  • Unit tests have been added
  • Changes in public API reviewed

Copy link

netlify bot commented Aug 22, 2025

Deploy Preview for opentelemetry-cpp-api-docs canceled.

Name Link
🔨 Latest commit 7734be9
🔍 Latest deploy log https://app.netlify.com/projects/opentelemetry-cpp-api-docs/deploys/68aa18be70b24400071ce93e

@dbarker
Copy link
Member Author

dbarker commented Aug 22, 2025

CI tests will fail when built with C++14 and the latest versions of googletest (v1.17.0). That upgrade will depend on bumping the minimum C++ version to C++17.

external/googletest~/googletest/include/gtest/internal/gtest-port.h:273:2: error: #error C++ versions less than C++17 are not supported.
  273 | #error C++ versions less than C++17 are not supported.
      |  ^~~~~

Copy link

codecov bot commented Aug 23, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 90.03%. Comparing base (dfa7118) to head (7734be9).

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #3607   +/-   ##
=======================================
  Coverage   90.03%   90.03%           
=======================================
  Files         220      220           
  Lines        7069     7069           
=======================================
  Hits         6364     6364           
  Misses        705      705           
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@dbarker dbarker changed the title [BUILD] upgrade googletest and benchmark to the latest releases [BUILD] upgrade googletest and benchmark to the latest releases supporting C++14 Aug 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant