chore(NODE-7558): sync spec tests - #5029
Conversation
|
There is an existing patch(es) for this commit SHA: Please note that the status that is posted is not in the context of this PR but rather the (latest) existing patch and that may affect some tests that may depend on the particular PR. If your tests do not rely on any PR-specific values (like base or head branch name) then your tests will report the same status. If you would like a patch to run in the context of this PR and abort the other(s), comment 'evergreen retry'. |
This reverts commit e087300.
There was a problem hiding this comment.
Pull request overview
Syncs vendored MongoDB specification test fixtures to align this driver’s test corpus with the upstream specs (NODE-7558). This primarily updates/removes unified spec test YAML/JSON files under test/spec/, plus a few small comment-only cleanups in integration prose tests.
Changes:
- Updated/trimmed multiple unified spec test fixtures (CRUD hint behavior, dots/dollars behavior, redaction tests, SDAM templates, etc.) to match upstream.
- Removed several pre-4.2 / pre-3.6 / maxWireVersion-related spec test files that are no longer present upstream.
- Minor comment-only adjustments in a few integration prose test files.
Reviewed changes
Copilot reviewed 76 out of 76 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| test/spec/unified-test-format/valid-pass/entity-find-cursor.yml | Spec fixture sync (comment removal) |
| test/spec/server-discovery-and-monitoring/errors/pre-42.yml.template | Removed obsolete SDAM error template fixture |
| test/spec/read-write-concern/operation/default-write-concern-3.4.yml | Spec fixture sync (comment update) |
| test/spec/read-write-concern/operation/default-write-concern-3.2.yml | Spec fixture sync (comment clarified) |
| test/spec/read-write-concern/operation/default-write-concern-2.6.yml | Spec fixture sync (comment removal) |
| test/spec/crud/unified/updateOne-hint-unacknowledged.yml | Spec fixture sync (removed pre-4.2 cases; anchor relocation) |
| test/spec/crud/unified/updateOne-hint-unacknowledged.json | Spec fixture sync (removed pre-4.2 cases) |
| test/spec/crud/unified/updateOne-hint-serverError.yml | Removed obsolete spec fixture |
| test/spec/crud/unified/updateOne-hint-serverError.json | Removed obsolete spec fixture |
| test/spec/crud/unified/updateOne-hint-clientError.yml | Removed obsolete spec fixture |
| test/spec/crud/unified/updateOne-hint-clientError.json | Removed obsolete spec fixture |
| test/spec/crud/unified/updateMany-hint-unacknowledged.yml | Spec fixture sync (removed pre-4.2 cases; anchor relocation) |
| test/spec/crud/unified/updateMany-hint-unacknowledged.json | Spec fixture sync (removed pre-4.2 cases) |
| test/spec/crud/unified/updateMany-hint-serverError.yml | Removed obsolete spec fixture |
| test/spec/crud/unified/updateMany-hint-serverError.json | Removed obsolete spec fixture |
| test/spec/crud/unified/updateMany-hint-clientError.yml | Removed obsolete spec fixture |
| test/spec/crud/unified/updateMany-hint-clientError.json | Removed obsolete spec fixture |
| test/spec/crud/unified/replaceOne-hint-unacknowledged.yml | Spec fixture sync (removed pre-4.2 cases; anchor relocation) |
| test/spec/crud/unified/replaceOne-hint-unacknowledged.json | Spec fixture sync (removed pre-4.2 cases) |
| test/spec/crud/unified/replaceOne-dots_and_dollars.yml | Spec fixture sync (removed pre-3.6 server-error cases) |
| test/spec/crud/unified/replaceOne-dots_and_dollars.json | Spec fixture sync (removed pre-3.6 server-error cases) |
| test/spec/crud/unified/insertOne-dots_and_dollars.yml | Spec fixture sync (removed pre-3.6 server-error case) |
| test/spec/crud/unified/insertOne-dots_and_dollars.json | Spec fixture sync (removed pre-3.6 server-error case) |
| test/spec/crud/unified/findOneAndUpdate.yml | Spec fixture sync (comment shortened) |
| test/spec/crud/unified/findOneAndUpdate-let.yml | Spec fixture sync (comment removal) |
| test/spec/crud/unified/findOneAndUpdate-hint-clientError.yml | Removed obsolete spec fixture |
| test/spec/crud/unified/findOneAndUpdate-hint-clientError.json | Removed obsolete spec fixture |
| test/spec/crud/unified/findOneAndReplace-upsert.yml | Spec fixture sync (comment shortened) |
| test/spec/crud/unified/findOneAndReplace-let.yml | Spec fixture sync (comment removal) |
| test/spec/crud/unified/findOneAndReplace-hint-clientError.yml | Removed obsolete spec fixture |
| test/spec/crud/unified/findOneAndReplace-hint-clientError.json | Removed obsolete spec fixture |
| test/spec/crud/unified/findOneAndReplace-dots_and_dollars.yml | Spec fixture sync (removed pre-3.6 server-error cases) |
| test/spec/crud/unified/findOneAndReplace-dots_and_dollars.json | Spec fixture sync (removed pre-3.6 server-error cases) |
| test/spec/crud/unified/findOneAndDelete-let.yml | Spec fixture sync (comment removal) |
| test/spec/crud/unified/findOneAndDelete-hint-clientError.yml | Removed obsolete spec fixture |
| test/spec/crud/unified/findOneAndDelete-hint-clientError.json | Removed obsolete spec fixture |
| test/spec/crud/unified/find-allowdiskuse-clientError.yml | Removed obsolete spec fixture |
| test/spec/crud/unified/find-allowdiskuse-clientError.json | Removed obsolete spec fixture |
| test/spec/crud/unified/deleteOne-hint-clientError.yml | Removed obsolete spec fixture |
| test/spec/crud/unified/deleteOne-hint-clientError.json | Removed obsolete spec fixture |
| test/spec/crud/unified/deleteMany-hint-clientError.yml | Removed obsolete spec fixture |
| test/spec/crud/unified/deleteMany-hint-clientError.json | Removed obsolete spec fixture |
| test/spec/crud/unified/db-aggregate-write-readPreference.yml | Spec fixture sync (comment updates) |
| test/spec/crud/unified/bulkWrite-updateOne-hint-unacknowledged.yml | Spec fixture sync (removed pre-4.2 cases; anchor relocation) |
| test/spec/crud/unified/bulkWrite-updateOne-hint-unacknowledged.json | Spec fixture sync (removed pre-4.2 cases) |
| test/spec/crud/unified/bulkWrite-updateMany-hint-unacknowledged.yml | Spec fixture sync (removed pre-4.2 cases; anchor relocation) |
| test/spec/crud/unified/bulkWrite-updateMany-hint-unacknowledged.json | Spec fixture sync (removed pre-4.2 cases) |
| test/spec/crud/unified/bulkWrite-update-hint-serverError.yml | Removed obsolete spec fixture |
| test/spec/crud/unified/bulkWrite-update-hint-serverError.json | Removed obsolete spec fixture |
| test/spec/crud/unified/bulkWrite-update-hint-clientError.yml | Removed obsolete spec fixture |
| test/spec/crud/unified/bulkWrite-update-hint-clientError.json | Removed obsolete spec fixture |
| test/spec/crud/unified/bulkWrite-replaceOne-hint-unacknowledged.yml | Spec fixture sync (removed pre-4.2 cases; anchor relocation) |
| test/spec/crud/unified/bulkWrite-replaceOne-hint-unacknowledged.json | Spec fixture sync (removed pre-4.2 cases) |
| test/spec/crud/unified/bulkWrite-replaceOne-dots_and_dollars.yml | Spec fixture sync (removed pre-3.6 server-error cases) |
| test/spec/crud/unified/bulkWrite-replaceOne-dots_and_dollars.json | Spec fixture sync (removed pre-3.6 server-error cases) |
| test/spec/crud/unified/bulkWrite-delete-hint-clientError.yml | Removed obsolete spec fixture |
| test/spec/crud/unified/bulkWrite-delete-hint-clientError.json | Removed obsolete spec fixture |
| test/spec/crud/unified/bulkWrite-arrayFilters-clientError.yml | Removed obsolete spec fixture |
| test/spec/crud/unified/bulkWrite-arrayFilters-clientError.json | Removed obsolete spec fixture |
| test/spec/command-logging-and-monitoring/monitoring/redacted-commands.yml | Spec fixture sync (removed copydb* cases) |
| test/spec/command-logging-and-monitoring/monitoring/redacted-commands.json | Spec fixture sync (removed copydb* cases) |
| test/spec/command-logging-and-monitoring/monitoring/pre-42-server-connection-id.yml | Removed obsolete spec fixture |
| test/spec/command-logging-and-monitoring/monitoring/pre-42-server-connection-id.json | Removed obsolete spec fixture |
| test/spec/command-logging-and-monitoring/logging/redacted-commands.yml | Spec fixture sync (removed copydb* cases) |
| test/spec/command-logging-and-monitoring/logging/redacted-commands.json | Spec fixture sync (removed copydb* cases) |
| test/spec/command-logging-and-monitoring/logging/pre-42-server-connection-id.yml | Removed obsolete spec fixture |
| test/spec/command-logging-and-monitoring/logging/pre-42-server-connection-id.json | Removed obsolete spec fixture |
| test/spec/client-side-operations-timeout/retryability-timeoutMS.yml | Spec fixture sync (comment removal) |
| test/spec/client-side-operations-timeout/error-transformations.yml | Spec fixture sync (comment removal) |
| test/spec/client-side-encryption/tests/unified/maxWireVersion.yml | Removed obsolete spec fixture |
| test/spec/client-side-encryption/tests/unified/maxWireVersion.json | Removed obsolete spec fixture |
| test/spec/client-side-encryption/tests/legacy/maxWireVersion.yml | Removed obsolete legacy spec fixture |
| test/spec/client-side-encryption/tests/legacy/maxWireVersion.json | Removed obsolete legacy spec fixture |
| test/integration/crud/crud.prose.test.ts | Comment-only cleanup in prose test |
| test/integration/connections-survive-step-down/connections_survive_step_down.prose.test.ts | Comment-only cleanup in prose test |
| test/integration/change-streams/change_streams.prose.test.ts | Comment-only cleanup in prose test |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
PavelSafronov
left a comment
There was a problem hiding this comment.
The original DRIVERS PR included changes to the following files, which are not included in this PR:
source/crud/tests/unified/aggregate-let.ymlsource/crud/tests/unified/aggregate-write-readPreference.yml
Description
Summary of Changes
Syncs spec test files as per the AC of NODE-7558.
Notes for Reviewers
What is the motivation for this change?
Release Highlight
Release notes highlight
Double check the following
npm run check:lint)type(NODE-xxxx)[!]: descriptionfeat(NODE-1234)!: rewriting everything in coffeescript