Skip to content
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

Use latest googletest for builds on macOS 11.0 or higher #937

Merged
merged 35 commits into from
Feb 19, 2022

Conversation

lalitb
Copy link
Contributor

@lalitb lalitb commented Oct 5, 2021

As discussed over 1ds.sdk.cpp channel in Teams, the functional/unit tests are currently failing for the latest macOS version. The clang compiler on this OS is perhaps not happy with the older version of google-test brought as part of this repo. This PR ensures that we use the latest google-test version for macOS 11.0 or higher.

The older gtest/gmock version is coming from: https://github.com/microsoft/cpp_client_telemetry/tree/main/googletest .
The latest gtest/gmock version is used from third_party/googletest ( either cloned as submodule or else downloaded and copied in that path during build)

Note: github VM for macos-latest points to macos-10.15, so the problem is not caught in our CI pipeline.

@lalitb lalitb changed the title Use latest googletest for macOS 11.0 or higher Use latest googletest for builds on macOS 11.0 or higher Oct 5, 2021
@lalitb
Copy link
Contributor Author

lalitb commented Feb 19, 2022

@sid-dahiya @reyang Can you please approve this PR. As GH virtual machines for macOS are upgraded from 10.15 to 11.6, the CI pipeline is failing. This PR fixes to use the latest googletest from submodule/clone for ubuntu 20.04 and macOS 11.x, and existing older from /googletest for other platforms. For #994 which tries to upgrade googletest for all the platforms, let's discuss it before, as it may break build for older platforms not part of CI and which we still support.

The CI pipeline is sometimes failing for #969 (segfault while running c-api tests), which I will address separately.

Copy link
Member

@reyang reyang left a comment

Choose a reason for hiding this comment

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

LGTM

@lalitb lalitb merged commit c8ca45c into main Feb 19, 2022
@lalitb lalitb deleted the macos-11-googletest branch February 19, 2022 22:34
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.

2 participants