Source: python-bonsai
Version: 1.3.0+ds-3
Severity: serious
User: debian...@lists.debian.org
Usertags: flaky

Dear maintainer(s),

I looked at the results of the autopkgtest of your package. I noticed that it regularly fails on armel and armhf.

Because the unstable-to-testing migration software now blocks on
regressions in testing, flaky tests, i.e. tests that flip between
passing and failing without changes to the list of installed packages,
are causing people unrelated to your package to spend time on these
tests.

Don't hesitate to reach out if you need help and some more information
from our infrastructure.

Paul


https://ci.debian.net/data/autopkgtest/testing/armel/p/python-bonsai/24971339/log.gz

=================================== FAILURES =================================== __________________________________ test_open ___________________________________

client = <bonsai.ldapclient.LDAPClient object at 0xf50191a8>

    def test_open(client):
        """ Test opening the pool. """
        pool = ConnectionPool(client, minconn=5)
>       pool.open()

tests/test_pool.py:35:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/usr/lib/python3/dist-packages/bonsai/pool.py:70: in open
    self._idles.add(self._client.connect(self._kwargs))
/usr/lib/python3/dist-packages/bonsai/ldapclient.py:675: in connect
    return LDAPConnection(self).open(timeout)
/usr/lib/python3/dist-packages/bonsai/ldapconnection.py:297: in open
    return super().open(timeout)
/usr/lib/python3/dist-packages/bonsai/ldapconnection.py:53: in open
    return self._evaluate(super().open(), timeout)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

self = <bonsai.ldapconnection.LDAPConnection object at 0xf50e35d8>, msg_id = -1
timeout = None

def _evaluate(self, msg_id: int, timeout: Optional[float] = None) -> Any:
        """
        It returns the result of the LDAP operation.

        :param int msg_id: the ID of the LDAP operation.
        :param float timeout: time limit in seconds for the operation.
        :return: the result of the operation.
        """
>       return self.get_result(msg_id, timeout)
E       bonsai.errors.TimeoutError: Timed out. (0xFFFB [-5])

/usr/lib/python3/dist-packages/bonsai/ldapconnection.py:246: TimeoutError
___________________________________ test_get ___________________________________

self = <bonsai.pool.ConnectionPool object at 0xf5012e08>

    def get(self):
        """
        Get a connection from the connection pool.

        :raises EmptyPool: when the pool is empty.
        :raises ClosedPool: when the method is called on a closed pool.
        :return: an LDAP connection object.
        """
        if self._closed:
            raise ClosedPool("The pool is closed.")
        try:
>           conn = self._idles.pop()
E           KeyError: 'pop from an empty set'

/usr/lib/python3/dist-packages/bonsai/pool.py:84: KeyError

During handling of the above exception, another exception occurred:

client = <bonsai.ldapclient.LDAPClient object at 0xf50191a8>

    def test_get(client):
        """ Test getting a connection from the pool. """
        pool = ConnectionPool(client, minconn=1, maxconn=2)
        with pytest.raises(ClosedPool):
            _ = pool.get()
        pool.open()
        assert pool.max_connection == 2
        assert pool.idle_connection == 1
        assert pool.shared_connection == 0
        conn1 = pool.get()
        assert conn1 is not None
        assert conn1.closed == False
        assert pool.idle_connection == 0
        assert pool.shared_connection == 1
>       conn2 = pool.get()

tests/test_pool.py:66:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/usr/lib/python3/dist-packages/bonsai/pool.py:87: in get
    conn = self._client.connect(self._kwargs)
/usr/lib/python3/dist-packages/bonsai/ldapclient.py:675: in connect
    return LDAPConnection(self).open(timeout)
/usr/lib/python3/dist-packages/bonsai/ldapconnection.py:297: in open
    return super().open(timeout)
/usr/lib/python3/dist-packages/bonsai/ldapconnection.py:53: in open
    return self._evaluate(super().open(), timeout)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

self = <bonsai.ldapconnection.LDAPConnection object at 0xf5045d48>, msg_id = -1
timeout = None

def _evaluate(self, msg_id: int, timeout: Optional[float] = None) -> Any:
        """
        It returns the result of the LDAP operation.

        :param int msg_id: the ID of the LDAP operation.
        :param float timeout: time limit in seconds for the operation.
        :return: the result of the operation.
        """
>       return self.get_result(msg_id, timeout)
E       bonsai.errors.TimeoutError: Timed out. (0xFFFB [-5])

/usr/lib/python3/dist-packages/bonsai/ldapconnection.py:246: TimeoutError
___________________________ test_threaded_pool_block ___________________________

client = <bonsai.ldapclient.LDAPClient object at 0xf50191a8>

    def test_threaded_pool_block(client):
        """ Test threaded pool blocks when it's empty. """
        sleep = 5
        pool = ThreadedConnectionPool(client, minconn=1, maxconn=1)
>       pool.open()

tests/test_pool.py:123:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/usr/lib/python3/dist-packages/bonsai/pool.py:238: in open
    super().open()
/usr/lib/python3/dist-packages/bonsai/pool.py:70: in open
    self._idles.add(self._client.connect(self._kwargs))
/usr/lib/python3/dist-packages/bonsai/ldapclient.py:675: in connect
    return LDAPConnection(self).open(timeout)
/usr/lib/python3/dist-packages/bonsai/ldapconnection.py:297: in open
    return super().open(timeout)
/usr/lib/python3/dist-packages/bonsai/ldapconnection.py:53: in open
    return self._evaluate(super().open(), timeout)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

self = <bonsai.ldapconnection.LDAPConnection object at 0xf503e108>, msg_id = -1
timeout = None

def _evaluate(self, msg_id: int, timeout: Optional[float] = None) -> Any:
        """
        It returns the result of the LDAP operation.

        :param int msg_id: the ID of the LDAP operation.
        :param float timeout: time limit in seconds for the operation.
        :return: the result of the operation.
        """
>       return self.get_result(msg_id, timeout)
E       bonsai.errors.TimeoutError: Timed out. (0xFFFB [-5])

/usr/lib/python3/dist-packages/bonsai/ldapconnection.py:246: TimeoutError
=============================== warnings summary ===============================

Attachment: OpenPGP_signature
Description: OpenPGP digital signature

Reply via email to