From cf29328d93005f98971f3964a430ca4e287cb3dc Mon Sep 17 00:00:00 2001 From: Noah Stapp Date: Wed, 16 Apr 2025 13:46:09 -0400 Subject: [PATCH 1/2] PYTHON-5284 - Remove eventlet tests for CPython > 3.9 --- .evergreen/generated_configs/variants.yml | 11 ----------- .evergreen/scripts/generate_config.py | 4 ++++ 2 files changed, 4 insertions(+), 11 deletions(-) diff --git a/.evergreen/generated_configs/variants.yml b/.evergreen/generated_configs/variants.yml index fe315ab9c0..d36548f72f 100644 --- a/.evergreen/generated_configs/variants.yml +++ b/.evergreen/generated_configs/variants.yml @@ -536,17 +536,6 @@ buildvariants: AUTH: auth SSL: ssl PYTHON_BINARY: /opt/python/3.9/bin/python3 - - name: green-eventlet-rhel8-python3.13 - tasks: - - name: .standalone .noauth .nossl .sync_async - display_name: Green Eventlet RHEL8 Python3.13 - run_on: - - rhel87-small - expansions: - GREEN_FRAMEWORK: eventlet - AUTH: auth - SSL: ssl - PYTHON_BINARY: /opt/python/3.13/bin/python3 - name: green-gevent-rhel8-python3.13 tasks: - name: .standalone .noauth .nossl .sync_async diff --git a/.evergreen/scripts/generate_config.py b/.evergreen/scripts/generate_config.py index ebdbdd9669..7e88f82316 100644 --- a/.evergreen/scripts/generate_config.py +++ b/.evergreen/scripts/generate_config.py @@ -343,6 +343,10 @@ def create_green_framework_variants(): tasks = [".standalone .noauth .nossl .sync_async"] host = DEFAULT_HOST for python, framework in product([CPYTHONS[0], CPYTHONS[-1]], ["eventlet", "gevent"]): + if framework == "eventlet" and python == CPYTHONS[-1]: + # Eventlet has issues with dnspython > 2.0 and newer versions of CPython + # https://jira.mongodb.org/browse/PYTHON-5284 + continue expansions = dict(GREEN_FRAMEWORK=framework, AUTH="auth", SSL="ssl") display_name = get_variant_name(f"Green {framework.capitalize()}", host, python=python) variant = create_variant( From ab8d6c798f2df3c6499c3587aed0e9f8cb7027fb Mon Sep 17 00:00:00 2001 From: Noah Stapp Date: Wed, 16 Apr 2025 16:45:29 -0400 Subject: [PATCH 2/2] Update changelog --- doc/changelog.rst | 3 +++ 1 file changed, 3 insertions(+) diff --git a/doc/changelog.rst b/doc/changelog.rst index 597f75f873..2fb225e2e1 100644 --- a/doc/changelog.rst +++ b/doc/changelog.rst @@ -10,6 +10,9 @@ Version 4.12.1 is a bug fix release. - Fixed a bug that could raise ``UnboundLocalError`` when creating asynchronous connections over SSL. - Fixed a bug causing SRV hostname validation to fail when resolver and resolved hostnames are identical with three domain levels. - Fixed a bug that caused direct use of ``pymongo.uri_parser`` to raise an ``AttributeError``. +- Removed Eventlet testing against Python versions newer than 3.9 since + Eventlet is actively being sunset by its maintainers and has compatibility issues with PyMongo's dnspython dependency. + Issues Resolved ...............