Skip to content

Update eventlet version requirement in extras - #11172

Draft
auvipy wants to merge 4 commits into
mainfrom
eventlet
Draft

auvipy wants to merge 4 commits into
mainfrom
eventlet

Conversation

@auvipy

@auvipy auvipy commented Nov 28, 2026

Copy link
Copy Markdown
Member

Note: Before submitting this pull request, please review our contributing
guidelines
& [Anti AI spamming Guidelines] (#10932). Before opening an AI based PR make sure you asked
in the discussion forum or in the related open issues first.

Description

@codecov

codecov Bot commented Nov 28, 2026 •

Copy link
Copy Markdown

❌ 1 Tests Failed:

Tests completed Failed Passed Skipped
5582 1 5581 207
View the top 2 failed test(s) by shortest run time
t\unit\concurrency\test_eventlet.py::unit::concurrency::test_eventlet::test_aaa_eventlet_patch::test_aaa_blockdetecet
Stack Traces | 0.003s run time
self = <t.unit.concurrency.test_eventlet.test_aaa_eventlet_patch object at 0x0000029D66DF4550>
monkey_patch = <MagicMock name='monkey_patch' id='2875298101776'>
hub_blocking_detection = <MagicMock name='hub_blocking_detection' id='2875298102112'>
patching = <t.unit.conftest._patching object at 0x0000029D031D7AD0>

    @patch('eventlet.debug.hub_blocking_detection', create=True)
    @patch('eventlet.monkey_patch', create=True)
    def test_aaa_blockdetecet(
            self, monkey_patch, hub_blocking_detection, patching):
        patching.setenv('EVENTLET_NOBLOCK', '10.3')
        from celery import maybe_patch_concurrency
        maybe_patch_concurrency(['x', '-P', 'eventlet'])
        monkey_patch.assert_called_with()
>       hub_blocking_detection.assert_called_with(10.3, 10.3)

t\unit\concurrency\test_eventlet.py:68: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

self = <MagicMock name='hub_blocking_detection' id='2875298102112'>
args = (10.3, 10.3), kwargs = {}

    def assert_called_with(self, /, *args, **kwargs):
        """assert that the last call was made with the specified arguments.
    
        Raises an AssertionError if the args and keyword args passed in are
        different to the last call to the mock."""
        if self.call_args is None:
            expected = self._format_mock_call_signature(args, kwargs)
            actual = 'not called.'
            error_message = ('expected call not found.\nExpected: %s\n  Actual: %s'
                    % (expected, actual))
>           raise AssertionError(error_message)
E           AssertionError: expected call not found.
E           Expected: hub_blocking_detection(10.3, 10.3)
E             Actual: not called.

C:\hostedtoolcache\windows\Python\3.14.10\x64\Lib\unittest\mock.py:977: AssertionError
t/unit/backends/test_mongodb.py::test_MongoBackend::test_init_mongodb_dnspython2_pymongo4_seedlist
Stack Traces | 0.035s run time
self = <pymongo.synchronous.srv_resolver._SrvResolver object at 0x000000005ee47018>
encapsulate_errors = True

    def _resolve_uri(self, encapsulate_errors: bool) -> resolver.Answer:
        try:
>           results = _resolve(
                "_" + self.__srv + "._tcp." + self.__fqdn, "SRV", lifetime=self.__connect_timeout
            )

..../pypy3-unit/lib/pypy3.11.../pymongo/synchronous/srv_resolver.py:111: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
..../pypy3-unit/lib/pypy3.11.../pymongo/synchronous/srv_resolver.py:46: in _resolve
    return resolver.resolve(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
..../pypy3-unit/lib/pypy3.11........./site-packages/dns/resolver.py:1557: in resolve
    return get_default_resolver().resolve(
                                  ^^^^^^^
..../pypy3-unit/lib/pypy3.11........./site-packages/dns/resolver.py:1330: in resolve
    answer, done = resolution.query_result(response, None)
                              ^^^^^^^^^^^^
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <dns.resolver._Resolution object at 0x000000005ee63d38>
response = <DNS message, ID 18024>, ex = None

    def query_result(
        self, response: dns.message.Message | None, ex: Exception | None
    ) -> tuple[Answer | None, bool]:
        #
        # returns an (answer: Answer, end_loop: bool) tuple.
        #
        assert self.nameserver is not None
        if ex:
            # Exception during I/O or from_wire()
            assert response is None
            self.errors.append(
                (
                    str(self.nameserver),
                    self.tcp_attempt,
                    self.nameserver.answer_port(),
                    ex,
                    response,
                )
            )
            if (
                isinstance(ex, dns.exception.FormError)
                or isinstance(ex, EOFError)
                or isinstance(ex, OSError)
                or isinstance(ex, NotImplementedError)
            ):
                # This nameserver is no good, take it out of the mix.
                self.nameservers.remove(self.nameserver)
            elif isinstance(ex, dns.message.Truncated):
                if self.tcp_attempt:
                    # Truncation with TCP is no good!
                    self.nameservers.remove(self.nameserver)
                else:
                    self.retry_with_tcp = True
            return (None, False)
        # We got an answer!
        assert response is not None
        assert isinstance(response, dns.message.QueryMessage)
        rcode = response.rcode()
        if rcode == dns.rcode.NOERROR:
            try:
                answer = Answer(
                    self.qname,
                    self.rdtype,
                    self.rdclass,
                    response,
                    self.nameserver.answer_nameserver(),
                    self.nameserver.answer_port(),
                )
            except Exception as e:
                self.errors.append(
                    (
                        str(self.nameserver),
                        self.tcp_attempt,
                        self.nameserver.answer_port(),
                        e,
                        response,
                    )
                )
                # The nameserver is no good, take it out of the mix.
                self.nameservers.remove(self.nameserver)
                return (None, False)
            if self.resolver.cache:
                self.resolver.cache.put((self.qname, self.rdtype, self.rdclass), answer)
            if answer.rrset is None and self.raise_on_no_answer:
>               raise NoAnswer(response=answer.response)
E               dns.resolver.NoAnswer: The DNS response does not contain an answer to the question: _mongodb._tcp.dns-seedlist-host.example.com. IN SRV

..../pypy3-unit/lib/pypy3.11........./site-packages/dns/resolver.py:846: NoAnswer

The above exception was the direct cause of the following exception:

self = <t.unit.backends.test_mongodb.test_MongoBackend object at 0x0000000045fe9b78>

    @pytest.mark.skipif(dns.version.MAJOR <= 1,
                        reason="For dnspython versions 1.X, pymongo's"
                               "srv_resolver calls resolver.query")
    @pytest.mark.skipif(pymongo.version_tuple[0] <= 3,
                        reason="For pymongo version > 3, options returns tls")
    def test_init_mongodb_dnspython2_pymongo4_seedlist(self):
        resolver = fake_resolver_dnspython()
        self.app.conf.mongodb_backend_settings = None
    
        with patch('dns.resolver.resolve', side_effect=resolver):
>           mb = self.perform_seedlist_assertions()
                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^

.../unit/backends/test_mongodb.py:231: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
.../unit/backends/test_mongodb.py:243: in perform_seedlist_assertions
    mb = MongoBackend(app=self.app, url=MONGODB_SEEDLIST_URI)
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
celery/backends/mongodb.py:84: in __init__
    uri_data = uri_parser.parse_uri(self.url)
                          ^^^^^^^^^
..../pypy3-unit/lib/pypy3.11.../pymongo/synchronous/uri_parser.py:110: in parse_uri
    _parse_srv(
..../pypy3-unit/lib/pypy3.11.../pymongo/synchronous/uri_parser.py:173: in _parse_srv
    nodes = dns_resolver.get_hosts()
                         ^^^^^^^^^
..../pypy3-unit/lib/pypy3.11.../pymongo/synchronous/srv_resolver.py:155: in get_hosts
    _, nodes = self._get_srv_response_and_hosts(True)
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^
..../pypy3-unit/lib/pypy3.11.../pymongo/synchronous/srv_resolver.py:125: in _get_srv_response_and_hosts
    results = self._resolve_uri(encapsulate_errors)
                   ^^^^^^^^^^^^
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <pymongo.synchronous.srv_resolver._SrvResolver object at 0x000000005ee47018>
encapsulate_errors = True

    def _resolve_uri(self, encapsulate_errors: bool) -> resolver.Answer:
        try:
            results = _resolve(
                "_" + self.__srv + "._tcp." + self.__fqdn, "SRV", lifetime=self.__connect_timeout
            )
        except Exception as exc:
            if not encapsulate_errors:
                # Raise the original error.
                raise
            # Else, raise all errors as ConfigurationError.
>           raise ConfigurationError(str(exc)) from exc
E           pymongo.errors.ConfigurationError: The DNS response does not contain an answer to the question: _mongodb._tcp.dns-seedlist-host.example.com. IN SRV

..../pypy3-unit/lib/pypy3.11.../pymongo/synchronous/srv_resolver.py:119: ConfigurationError

To view more test analytics, go to the Test Analytics Dashboard
📋 Got 3 mins? Take this short survey to help us improve Test Analytics.

@blacksmith-sh

blacksmith-sh Bot commented Nov 28, 2026 •

Copy link
Copy Markdown
Contributor

Found 9 test failures on Blacksmith runners:

Failures

Test View Logs
pytest/test_aaa_blockdetecet View Logs
pytest/test_aaa_blockdetecet View Logs
pytest/test_aaa_blockdetecet View Logs
pytest/test_aaa_blockdetecet View Logs
pytest/test_init_mongodb_dnspython2_pymongo4_seedlist View Logs
pytest/test_init_mongodb_dnspython2_pymongo4_seedlist View Logs
pytest/test_init_mongodb_dnspython2_pymongo4_seedlist View Logs
pytest/test_init_mongodb_dnspython2_pymongo4_seedlist View Logs
pytest/test_init_mongodb_dnspython2_pymongo4_seedlist View Logs

Fix with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need.

Comment thread requirements/extras/eventlet.txt Resolved
@auvipy

auvipy commented Nov 28, 2026

Copy link
Copy Markdown
Member Author

@tony1233200 can you check why the tests are failing

Comment thread requirements/extras/eventlet.txt Resolved

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant