Skip to content

PHPC-2702 PHPC-2698 Upgrade libmongoc to 2.3.0 and libmongocrypt to 1.17.3#1994

Open
GromNaN wants to merge 5 commits intomongodb:v2.xfrom
GromNaN:PHPC-2702
Open

PHPC-2702 PHPC-2698 Upgrade libmongoc to 2.3.0 and libmongocrypt to 1.17.3#1994
GromNaN wants to merge 5 commits intomongodb:v2.xfrom
GromNaN:PHPC-2702

Conversation

@GromNaN
Copy link
Copy Markdown
Member

@GromNaN GromNaN commented Apr 17, 2026

Close PHPC-2702
Close PHPC-2698

Upgrade libmongoc to 2.3.0 and libmongocrypt to 1.17.3.

@GromNaN GromNaN marked this pull request as ready for review April 17, 2026 14:17
@GromNaN GromNaN requested a review from a team as a code owner April 17, 2026 14:17
@GromNaN GromNaN requested review from Copilot and paulinevos and removed request for a team April 17, 2026 14:17
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Updates the PHP MongoDB extension’s build configuration to target libmongoc/libbson 2.3.0, aligning both system-library checks and bundled-source compilation with the new upstream driver release.

Changes:

  • Bump pkg-config minimum versions for system bson2/mongoc2 from 2.2.2 to 2.3.0.
  • Update bundled libmongoc source file lists to match new/removed compilation units for 2.3.0 (e.g., add retry/backoff and jitter sources; drop deprecated cursor cmd unit).

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.

File Description
config.w32 Updates Windows build source list for bundled libmongoc to match 2.3.0 changes.
config.m4 Raises system-library minimum versions to 2.3.0 and updates bundled libmongoc source list accordingly.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread config.m4 Outdated
Comment thread config.m4
Comment thread config.m4
Copilot AI review requested due to automatic review settings April 18, 2026 09:15
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 6 out of 7 changed files in this pull request and generated 3 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread .evergreen/config/templates/build/build-libmongoc.yml
Comment thread .evergreen/config/generated/build/build-libmongoc.yml
Comment thread .github/workflows/tests.yml
@alcaeus alcaeus self-requested a review April 20, 2026 13:37
Copy link
Copy Markdown
Member

@alcaeus alcaeus left a comment

Choose a reason for hiding this comment

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

Changes LGTM. Happy to defer the env change in GitHub Actions workflows to a separate PR.

Copilot AI review requested due to automatic review settings April 20, 2026 14:32
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 7 out of 8 changed files in this pull request and generated 1 comment.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread config.m4
Comment on lines +269 to +277
PKG_CHECK_MODULES([PHP_MONGODB_MONGOCRYPT], [libmongocrypt >= 1.17.3], [
PHP_MONGODB_MONGOCRYPT_VERSION=`$PKG_CONFIG libmongocrypt --modversion`
PHP_MONGODB_MONGOCRYPT_VERSION_STRING="System ($PHP_MONGODB_MONGOCRYPT_VERSION)"

PHP_MONGODB_CFLAGS="$PHP_MONGODB_CFLAGS $PHP_MONGODB_MONGOCRYPT_CFLAGS"
PHP_EVAL_LIBLINE($PHP_MONGODB_MONGOCRYPT_LIBS, MONGODB_SHARED_LIBADD)
AC_DEFINE(HAVE_SYSTEM_LIBMONGOCRYPT, 1, [Use system libmongocrypt])
],[
AC_MSG_ERROR(Could not find system library for libmongocrypt >= 1.17.2)
AC_MSG_ERROR([Could not find system library for libmongocrypt >= 1.17.3])
Copy link

Copilot AI Apr 20, 2026

Choose a reason for hiding this comment

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

The minimum required system libmongocrypt version was bumped to 1.17.3 here, but the repo’s tracked bundled libmongocrypt version (src/LIBMONGOCRYPT_VERSION_CURRENT) and the SBOM still indicate 1.17.2. If 1.17.3 is required for the libmongoc 2.3.0 upgrade, please also bump the bundled version tracking (and regenerate sbom.json); otherwise keep the system-libs minimum at 1.17.2 to avoid unnecessarily breaking builds against distro-provided libmongocrypt 1.17.2.

Copilot uses AI. Check for mistakes.
Copilot AI review requested due to automatic review settings April 20, 2026 14:48
Comment thread scripts/update-sbom.sh
echo "pkg:github/mongodb/libmongocrypt@${LIBMONGOCRYPT_VERSION}" >> $PURLS_FILE

# Use silkbomb to update the sbom.json file
docker run --platform="linux/amd64" -it --rm -v ${ROOT_DIR}:/pwd \
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

-t requires a TTY, which is not available when running from a non-interactive shell (e.g. Claude Code's Bash tool). Using -i alone is sufficient for stdin.

@GromNaN GromNaN changed the title PHPC-2702 Upgrade libmongoc to 2.3.0 PHPC-2702 PHPC-2698 Upgrade libmongoc to 2.3.0 and libmongocrypt to 1.17.3 Apr 20, 2026
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 11 out of 12 changed files in this pull request and generated no new comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@GromNaN
Copy link
Copy Markdown
Member Author

GromNaN commented Apr 20, 2026

The test-system-libs CI job is failing because libmongocrypt 1.17.3 is not yet available in the MongoDB apt repository (the 1.17 channel currently only has 1.17.2). The job will pass once the package is published.

Copilot AI review requested due to automatic review settings April 20, 2026 17:43
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 12 out of 13 changed files in this pull request and generated 1 comment.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread .github/actions/linux/build-libmongocrypt/action.yml
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.

3 participants