Skip to content

Conversation

@eramongodb
Copy link
Contributor

@eramongodb eramongodb commented Jan 2, 2025

Addresses recent Evergreen flaky test failures on MacOS distros due to unexpectedly compiling with a system-installed libmongoc (CMake reports version 1.29.1 despite MONGOC_DOWNLOAD_VERSION being 1.29.0). This leads to the libbson library having a BSON_EXTRA_ALIGN that is inconsistent with test expectations. Filed DEVPROD-13793.

This PR sets CMAKE_DISABLE_FIND_PACKAGE_<PackageName>=ON when a preinstalled C Driver is not detected (the presence of the bson-config.h header, as used by the extra alignment consistency checks). This forces CMake to "fail" to find an existing C Driver, thus ensuring it fetch-and-builds the C Driver as expected by integration tests.

@eramongodb eramongodb requested a review from kevinAlbs January 2, 2025 18:29
@eramongodb eramongodb self-assigned this Jan 2, 2025
Copy link
Collaborator

@kevinAlbs kevinAlbs left a comment

Choose a reason for hiding this comment

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

LGTM

Filed DEVPROD-13793.

Thank you for reporting. Suggest revising the request to instead remove mongo-c-driver install on macOS distros. mongo-c-driver was added in BUILD-10871 in an effort to add libmongocrypt. libmongocrypt was removed in BUILD-12527. I expect mongo-c-driver is no longer needed on macOS distros.

@eramongodb
Copy link
Contributor Author

Suggest revising the request to instead remove mongo-c-driver install on macOS distros.

DEVPROD-13793 has been edited accordingly.

@eramongodb eramongodb merged commit 2f17286 into mongodb:master Jan 2, 2025
17 checks passed
@eramongodb eramongodb deleted the cxx-macos branch January 2, 2025 20:08
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