Skip to content

Bump libmongoc, libmongocrypt and get tests running #1828

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

Merged

Conversation

alcaeus
Copy link
Member

@alcaeus alcaeus commented May 21, 2025

This PR is the first part of PHPC-2435 to update the libmongoc dependency. In this PR:

One part that currently isn't tested is building with system dependencies for libmongoc and libmongocrypt. I've created PHPC-2584 to add tests with system libraries.

I've also updated the version file handling for libmongoc as we no longer need to compute the version but instead use the file from the bundled repo directly. The downside to this is that we no longer have commit granularity when compiling with a development version of libmongoc. Since this is only relevant for internal testing, I think it's an acceptable change as we can easily check the submodule to find the version.

I've also updated the build config to test latest and dev versions of libmongoc with PHP 8.4, but can extract this to a separate PR if we want this change to land sooner.

Note: this PR targets a feature branch, as I anticipate more changes and want to test with PHPLIB before merging this to a stable branch. I'll create a separate draft PR into v2.x after this PR is merged.

@alcaeus alcaeus requested a review from GromNaN May 21, 2025 11:04
@alcaeus alcaeus self-assigned this May 21, 2025
@alcaeus alcaeus requested a review from a team as a code owner May 21, 2025 11:04
@alcaeus alcaeus force-pushed the phpc-2435-libmongoc-2 branch from 43231f2 to 684802b Compare May 21, 2025 12:03
@alcaeus alcaeus force-pushed the phpc-2435-libmongoc-2 branch from 5d1f8f4 to 9e776cd Compare May 22, 2025 12:35
Copy link
Member

@GromNaN GromNaN left a comment

Choose a reason for hiding this comment

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

I don't fully understand this code, but nothing seems wrong.

@alcaeus alcaeus merged commit 9ef16ef into mongodb:feature/phpc-2435-libmongoc-2 May 22, 2025
59 of 60 checks passed
@alcaeus alcaeus deleted the phpc-2435-libmongoc-2 branch May 22, 2025 13:52
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