Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
46 changes: 23 additions & 23 deletions .evergreen/scripts/resync-all-specs.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,29 +37,29 @@ def apply_patches(errored):
["bash", "./.evergreen/remove-unimplemented-tests.sh"], # noqa: S607
check=True,
)
try:
# Avoid shell=True by passing arguments as a list.
# Note: glob expansion doesn't work in shell=False, so we use a list of files.
spec_patch_dir = pathlib.Path("./.evergreen/spec-patch/")
patches = [str(p) for p in spec_patch_dir.glob("*.patch")]
patches += [str(p) for p in (spec_patch_dir / "permanent").glob("*.patch")]
if patches:
for patch in patches:
print(f"Applying patch {patch}")
subprocess.run( # noqa: S603
[ # noqa: S607
"git",
"apply",
"-R",
"--allow-empty",
"--whitespace=fix",
*patches,
],
check=True,
stderr=subprocess.PIPE,
)
except CalledProcessError as exc:
errored["applying patches"] = exc.stderr
# Avoid shell=True by passing arguments as a list.
# Note: glob expansion doesn't work in shell=False, so we use a list of files.
spec_patch_dir = pathlib.Path("./.evergreen/spec-patch/")
patches = [str(p) for p in spec_patch_dir.glob("*.patch")]
patches += [str(p) for p in (spec_patch_dir / "permanent").glob("*.patch")]
if patches:
for patch in patches:
print(f"Applying patch {patch}")
try:
subprocess.run( # noqa: S603
[ # noqa: S607
"git",
"apply",
"-R",
"--allow-empty",
"--whitespace=fix",
str(patch),
],
check=True,
stderr=subprocess.PIPE,
)
except CalledProcessError as exc:
errored[f"{patch}"] = exc.stderr


def check_new_spec_directories(directory: pathlib.Path) -> list[str]:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ jobs:
- name: Generate xml report
run: uv tool run --with "coverage[toml]" coverage xml
- name: Upload test results to Codecov
uses: codecov/codecov-action@e79a6962e0d4c0c17b229090214935d2e33f8354 # v6.0.1
uses: codecov/codecov-action@fb8b3582c8e4def4969c97caa2f19720cb33a72f # v7.0.0
with:
token: ${{ secrets.CODECOV_TOKEN }}
doctest:
Expand Down
5 changes: 2 additions & 3 deletions doc/changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,8 @@ PyMongo 4.17 brings a number of changes including:
- Added the :meth:`~pymongo.asynchronous.client_session.AsyncClientSession.bind` and :meth:`~pymongo.client_session.ClientSession.bind` methods
that allow users to bind a session to all database operations within the scope of a context manager instead of having to explicitly pass the session to each individual operation.
See the `Transactions docs <https://www.mongodb.com/docs/languages/python/pymongo-driver/current/crud/transactions/#methods>`_ for examples and more information.
- Added support for MongoDB's Intelligent Workload Management (IWM) and ingress connection rate limiting features.
The driver now gracefully handles write-blocking scenarios and optimizes connection establishment during high-load conditions to maintain application availability.
See the `IWM <https://www.mongodb.com/docs/atlas/production-notes>`_ or `Overload Errors <https://www.mongodb.com/docs/atlas/overload-errors/?interface=driver&language=python>`_ docs for more information.
- Added support for MongoDB's Intelligent Workload Management (IWM) and ingress connection rate limiting features in MongoDB server version 9.0.
The driver will gracefully handle write-blocking scenarios and optimizes connection establishment during high-load conditions to maintain application availability.

Changes in Version 4.16.0 (2026/01/07)
--------------------------------------
Expand Down
8 changes: 2 additions & 6 deletions justfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,6 @@ default:
resync:
@uv sync --quiet

[private]
run-synchro:
uv run --group unasync ./tools/synchro.py

# Set up the development environment
install:
bash .evergreen/scripts/setup-dev-env.sh
Expand Down Expand Up @@ -70,7 +66,7 @@ lint-manual *args="": && resync

# Run pytest (e.g. just test test/test_uri_parser.py)
[group('test')]
test *args="-v --durations=5 --maxfail=10": run-synchro && resync
test *args="-v --durations=5 --maxfail=10": && resync
#!/usr/bin/env bash
set -euo pipefail
uv run ${USE_ACTIVE_VENV:+--active} --extra test python -m pytest {{args}}
Expand All @@ -83,7 +79,7 @@ test-numpy *args="": && resync

# Run tests via the Evergreen test runner script
[group('test')]
run-tests *args: run-synchro && resync
run-tests *args: && resync
bash ./.evergreen/run-tests.sh {{args}}

# Set up the test environment (auth, TLS, etc.)
Expand Down
Loading
Loading