Repository navigation
PYTHON-6293 Bump unified test runner to schema version 1.30 - #3250
Merged
Merged
Conversation
Contributor
There was a problem hiding this comment.
🟡 Changes recommended
Special-operator matching raises a TypeError when key_to_compare is None, breaking comparisons against whole operation results and array elements.
1 open issue
What changed in this PR
Updates the unified test runner to accept schema version 1.30, addressing setup failures after the spec resync. Evaluation of the dsc run-on requirement remains deferred.
Changes:
- Raises the supported schema version from 1.28 to 1.30.
- Adds the
$$gtematcher and comparison tests. - Adds coverage to flag spec files requiring unsupported schema versions.
| File | Description |
|---|---|
test/unified_format.py |
Updates the synchronous runner’s supported schema version. |
test/unified_format_shared.py |
Adds shared $$gte matching support. |
test/test_unified_format.py |
Adds synchronous schema coverage and comparison tests. |
test/asynchronous/unified_format.py |
Updates the asynchronous runner’s supported schema version. |
test/asynchronous/test_unified_format.py |
Adds asynchronous schema coverage and comparison tests. |
Review effort: Balanced
kevinAlbs
approved these changes
Nov 24, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

PYTHON-6293
Changes in this PR
The 2026-11-23 spec resync moved two consumed spec files to schema version 1.30 while the runner supported only 1.28, so the generated tests failed the version assertion in setup.
$$gtematching operator, required by schema 1.29.The 1.30
dscrun-on requirement is ignored like the deprecatedserverlessfield; evaluating it is follow-up work since only"forbid"appears in current specs.Test Plan
Reproduced the failure on a local three-node replica set. The fixed runner passes the failing test; reverting the bump re-fails the new coverage test.
mypy --config-file mypy_test.ini test,ruff check,ruff format --check: clean.Checklist
Checklist for Author
Checklist for Reviewer