Skip to content

Conversation

@eramongodb
Copy link
Contributor

Ensure CSFLE code paths are also covered by our sanitizer task coverage. Dropped shared library tasks due to redundancy (can switch to dropping static instead if preferable; I don't think there's a significant difference). Additionally added some log messages to help discern Catch test output by test executable.

@eramongodb eramongodb requested a review from kevinAlbs July 30, 2025 14:39
@eramongodb eramongodb self-assigned this Jul 30, 2025
@eramongodb eramongodb requested a review from a team as a code owner July 30, 2025 14:39
@eramongodb eramongodb changed the title Enable CSFLE for sanitizer tasks CXX-3321 Enable CSFLE for sanitizer tasks Jul 30, 2025
@eramongodb
Copy link
Contributor Author

It looks like these changes also exposed CDRIVER-5998 on Windows distros. Created CXX-3321 to track this issue (for pending "bump to mongoc 2.1.0" ticket).

@eramongodb
Copy link
Contributor Author

Pinning mongoc to pre-2.1.0 release also brings in CDRIVER-5956. Bumped minimum server versions for tasks from 4.0 to 4.2 accordingly (CXX-3259).

# - BSON_REQUIRED_VERSION and MONGOC_REQUIRED_VERSION in CMakeLists.txt
# - the version of pkg:github/mongodb/mongo-c-driver in etc/purls.txt
# - the default value of --c-driver-build-ref in etc/make_release.py
# Only MONGOC_DOWNLOAD_VERSION needs to be updated when pinning to an unreleased commit.
Copy link
Collaborator

Choose a reason for hiding this comment

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

Noting: I expect setting MONGOC_DOWNLOAD_VERSION is not needed since most Evergreen tasks use InstallCDriver to install the C driver dependency, rather than rely on the C driver downloaded from CMake (which does not build with libmongocrypt).

('rhel80', None, ['Debug'], ['shared', 'static'], [11, 17], [None], ['plain', 'csfle'], [ '4.2', '4.4', '5.0', '6.0', '7.0', '8.0', 'latest'], ['single', 'replica', 'sharded']),
('rhel80', None, ['Debug'], ['shared', 'static'], [11, 17], [None], ['plain', ], ['4.0', ], ['single', 'replica', 'sharded']), # CSFLE: 4.2+.
('rhel80', None, ['Debug'], ['shared', 'static'], [11, 17], [None], ['plain', 'csfle'], ['4.2', '4.4', '5.0', '6.0', '7.0', '8.0', 'latest'], ['single', 'replica', 'sharded']),

Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggest also adding to CHANGELOG.md (though could also be done during next release):

### Removed
- Support for MongoDB Server 4.0 (due to the minimum required C Driver version).

@eramongodb eramongodb merged commit 90ff27c into mongodb:master Jul 30, 2025
2 of 3 checks passed
@eramongodb eramongodb deleted the cxx-evg-cse branch July 30, 2025 17:29
eramongodb added a commit to eramongodb/mongo-cxx-driver that referenced this pull request Oct 24, 2025
* Reduce sanitizers matrix to static library linkage
* Print name of test executable being executed
* Pin mongoc_version_minimum to 912209d (CDRIVER-5960)
* CXX-3259 bump minimum server version from 4.0 to 4.2 (CDRIVER-5956)
* Update MONGOC_VERSION_MINIMUM to better document current practices
eramongodb added a commit that referenced this pull request Oct 24, 2025
…ixes (#1490)

* CXX-3278 update invalid URIs in CSE endpoint tests (#1395)

* update test case 4
* replace `.local` with `.invalid`

* Migrate EVG tasks from RHEL 7.6 to RHEL 7.9 (#1414)

* CXX-3273 revert to using system-installed valgrind (#1400)

* CXX-3311 Remove Debian 10 EVG task coverage (#1423)

* CXX-3321 Enable CSFLE for sanitizer tasks (#1434)

* Reduce sanitizers matrix to static library linkage
* Print name of test executable being executed
* Pin mongoc_version_minimum to 912209d (CDRIVER-5960)
* CXX-3259 bump minimum server version from 4.0 to 4.2 (CDRIVER-5956)
* Update MONGOC_VERSION_MINIMUM to better document current practices

* Use uvx for CMake and Server Toolchain for Ninja (#1428)

* Upgrade uv to 0.8.6 with checksum validation
* Consistently use CMAKE_BUILD_PARALLEL_LEVEL (/maxcpucount) for MSBuild

* Set ASAN_SYMBOLIZER_PATH to mongodbtoolchain v4 (#1446)

* Generate EVG configuration with ASAN_SYMBOLIZER_PATH (#1450)

* CXX-3270 remove serverless testing (#1459)

* Remove serverless testing EVG configs

* Use EVG distro system uv binaries (#1464)

* CXX-3352 Revert "CXX-1885 add NPS survey code" (#1466)

This reverts commit 3233473.

* CXX-3322 remove atlas data lake testing (#1461)

* Re-enable distros previously missing system uv binaries (#1472)

* Add C++23 to GCC 12+ compile matrix (#1485)

* fix: CDRIVER-5710 in validator examples

* fix: CDRIVER-5967 with mongo-c-driver<2.0.1 on MacOS

* fix: support mongo-c-driver before and after 2.1.2

* Update Invalid URI test for CDRIVER-5983 (#1429)

---------

Co-authored-by: Kevin Albertson <[email protected]>
Co-authored-by: Connor MacDonald <[email protected]>
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