[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#991451: redis breaks python-fakeredis autopkgtest: AssertionError



Source: redis, python-fakeredis
Control: found -1 redis/5:6.0.15-1
Control: found -1 python-fakeredis/1.4.5-2
Severity: serious
Tags: sid bookworm bullseye
X-Debbugs-CC: debian-ci@lists.debian.org
User: debian-ci@lists.debian.org
Usertags: breaks needs-update

Dear maintainer(s),

With a recent upload of redis the autopkgtest of python-fakeredis fails
in testing when that autopkgtest is run with the binary packages of
redis from unstable. It passes when run with only packages from testing.
In tabular form:

                       pass            fail
redis                  from testing    5:6.0.15-1
python-fakeredis       from testing    1.4.5-2
all others             from testing    from testing

I copied some of the output at the bottom of this report.

Apart from the freeze, this regression is blocking the migration of the
redis CVE fix to testing [1]. Due to the nature of this issue, I filed
this bug report against both packages. Can you please investigate the
situation and reassign the bug to the right package? Because of the near
bullseye release and the nature of the redis upload, could this please
happen soon?

More information about this bug and the reason for filing it can be found on
https://wiki.debian.org/ContinuousIntegration/RegressionEmailInformation

Paul

[1] https://qa.debian.org/excuses.php?package=redis

https://ci.debian.net/data/autopkgtest/testing/amd64/p/python-fakeredis/13857943/log.gz

=================================== FAILURES
===================================
________________________________ TestJoint.test
________________________________

self = <test_hypothesis.TestJoint object at 0x7f3eea8395b0>

    @pytest.mark.slow
    def test(self):
        class Machine(CommonMachine):
            create_command_strategy = self.create_command_strategy
            command_strategy = self.command_strategy

>       hypothesis.stateful.run_state_machine_as_test(Machine)

test/test_hypothesis.py:468:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
_ _ _ _
/usr/lib/python3/dist-packages/hypothesis/stateful.py:75: in
run_state_machine_as_test
    def run_state_machine_as_test(state_machine_factory, *, settings=None):
/usr/lib/python3/dist-packages/hypothesis/internal/reflection.py:654: in
accept
    return func(*bound.args, **bound.kwargs)
/usr/lib/python3/dist-packages/hypothesis/stateful.py:200: in
run_state_machine_as_test
    run_state_machine(state_machine_factory)
/usr/lib/python3/dist-packages/hypothesis/stateful.py:92: in
run_state_machine
    @given(st.data())
test/test_hypothesis.py:454: in one_command
    self._compare(command)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
_ _ _ _

self = Machine({}), command = Command('sinter', b'', b'\x00')

    def _compare(self, command):
        fake_result, fake_exc = self._evaluate(self.fake, command)
        real_result, real_exc = self._evaluate(self.real, command)

        if fake_exc is not None and real_exc is None:
            raise fake_exc
        elif real_exc is not None and fake_exc is None:
>           assert real_exc == fake_exc, "Expected exception {} not
raised".format(real_exc)
E           AssertionError: Expected exception WRONGTYPE Operation
against a key holding the wrong kind of value not raised
E           assert ResponseError...ind of value') == None
E             +ResponseError('WRONGTYPE Operation against a key holding
the wrong kind of value')
E             -None

test/test_hypothesis.py:412: AssertionError

Attachment: OpenPGP_signature
Description: OpenPGP digital signature


Reply to: