Skip to content

DRIVERS-2295 Convert CSFLE spec tests to unified test format #1784

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

Draft
wants to merge 27 commits into
base: master
Choose a base branch
from

Conversation

mdb-ad
Copy link
Contributor

@mdb-ad mdb-ad commented Apr 8, 2025

No description provided.

@kevinAlbs kevinAlbs self-requested a review April 10, 2025 18:05
Copy link
Contributor

@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.

Exciting. Initial comments.

@@ -27,8 +27,6 @@ jobs:
- name: Regenerate JSON test files
run: |
python3 ./source/server-discovery-and-monitoring/tests/errors/generate-error-tests.py
python3 ./source/client-side-encryption/etc/generate-corpus.py ./source/client-side-encryption/corpus
Copy link
Contributor

Choose a reason for hiding this comment

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

Add back generate-corpus.py. I expect the corpus tests are still relevant.

Copy link
Contributor

Choose a reason for hiding this comment

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

Were changes needed to the unified test runner to drop the enxcol_.<coll>.esc and enxcol_.<coll>.ecoc? If so, update the unified test format spec to note.

@@ -0,0 +1,113 @@
description: client bulkWrite with queryable encryption
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggest adding the client bulkWrite test in a separate PR labeled with the ticket: DRIVERS-2888. I expect supporting client bulkWrite requires driver changes that can be done separate from migrating legacy tests.

Copy link
Contributor

Choose a reason for hiding this comment

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

Some drivers now use a git submodule to sync spec tests (example: PHP). As a result, when they update the submodule, all tests get synced. I request restoring the .json/.yml files (not templates) for the legacy tests. Once all drivers have synced the new tests, the old tests can be removed.

That may prevent a loss of test coverage (e.g. driver upgrades submodule to get non-CSFLE test updates, but does not-yet have the test runner changes implemented to run the new CSFLE tests)

Copy link
Member

Choose a reason for hiding this comment

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

This seems like a big flaw in the git submodule approach.

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