Repository navigation
Conversation
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
…ns group (#3243) Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: mongodb-drivers-pr-bot[bot] <147046816+mongodb-drivers-pr-bot[bot]@users.noreply.github.com> Co-authored-by: Steven Silvester <steve.silvester@mongodb.com>
…ariable name (#3238) Co-authored-by: Iris <iris.ho@mongodb.com> Co-authored-by: Iris <58442094+sleepyStick@users.noreply.github.com>
Contributor
There was a problem hiding this comment.
🟡 Changes recommended
The schema-1.30 fixtures fail during setup because the unified runner only supports schema 1.28, and lowering their version alone would leave the new dsc restriction unenforced.
1 open issue
What changed in this PR
Backports fixes and maintenance updates to PyMongo’s v4.20 branch, preparing the 4.20.2 patch release.
Changes:
- Validates GridFS filenames and fixes the logging environment variable while preserving compatibility with its misspelled name.
- Adds staged synchronous-code generation, rollback handling, and regression tests.
- Updates unified test fixtures, CI compatibility, fuzz replay, and release documentation.
| File | Description |
|---|---|
tools/test_synchro.py |
Tests staged generation, publication, rollback, and cleanup. |
tools/synchro.py |
Stages generated files and adds atomic replacement with rollback. |
test/unified-test-format/invalid/runOnRequirement-dsc-type.json |
Adds an invalid dsc type fixture. |
test/unified-test-format/invalid/runOnRequirement-dsc-enum.json |
Adds an invalid dsc value fixture. |
test/transactions/unified/commit.json |
Updates the schema version and adds a dsc exclusion. |
test/test_logger.py |
Mirrors logging configuration regression tests. |
test/test_gridfs.py |
Mirrors invalid-filename regression tests. |
test/helpers_shared.py |
Uses the correctly spelled logging environment variable. |
test/discovery_and_monitoring/unified/rediscover-quickly-after-step-down.json |
Updates the schema version and adds a dsc exclusion. |
test/asynchronous/test_logger.py |
Tests logging variable precedence and legacy fallback. |
test/asynchronous/test_gridfs.py |
Tests rejection of non-string filenames. |
pymongo/logger.py |
Reads the correct logging variable with legacy fallback. |
gridfs/synchronous/grid_file.py |
Mirrors filename validation and API documentation. |
gridfs/asynchronous/grid_file.py |
Validates filenames and documents the new type error. |
doc/changelog.rst |
Adds 4.20.2 fixes and updates security references. |
CONTRIBUTING.md |
Documents staged generation and backup recovery. |
.gitignore |
Ignores synchro staging, backup, and temporary files. |
.github/workflows/sbom.yml |
Updates the pinned pull-request creation action. |
.evergreen/spec-patch/PYTHON-6058.patch |
Adds a temporary credential-disclosure corpus patch. |
.evergreen/scripts/test_setup_uv.py |
Adds a Python 3.6 syntax compatibility check. |
.evergreen/scripts/setup_uv.py |
Removes an unsupported future import for older hosts. |
.evergreen/scripts/setup_tests.py |
Disables pytest assertion rewriting on FIPS hosts. |
.evergreen/scripts/capture-fuzz-corpus.sh |
Requests fuzz dependencies when replaying captured inputs. |
Review effort: Balanced
|
Assigned |
This branch has not been deployed
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.

Changes in this PR
Backport commits to the v4.20 branch to pick up bug fixes.
Test Plan
Evergreen tests.
Checklist
Checklist for Author
Checklist for Reviewer