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

Bug#1000414: textdistance: autopkgtest regression on arm64: AssertionError: assert 3.0 <= 1



Source: textdistance
Version: 4.2.2-1
X-Debbugs-CC: debian-ci@lists.debian.org
Severity: serious
User: debian-ci@lists.debian.org
Usertags: regression

Dear maintainer(s),

With a recent upload of textdistance the autopkgtest of textdistance fails in testing when that autopkgtest is run with the binary packages of textdistance from unstable on arm64. It passes when run with only packages from testing. In tabular form:

                       pass            fail
textdistance           from testing    4.2.2-1
all others             from testing    from testing

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

Currently this regression is blocking the migration to testing [1]. Can you please investigate the situation and fix it?

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=textdistance

https://ci.debian.net/data/autopkgtest/testing/arm64/t/textdistance/16584010/log.gz

=================================== FAILURES =================================== _______________________ test_normalization_range[alg23] ________________________

alg = Editex({'match_cost': 0, 'group_cost': 1, 'mismatch_cost': 2, 'local': False, 'external': True, 'grouped': frozenset({'U', 'B', 'K', 'F', 'D', 'M', 'X', 'S', 'Z', 'T', 'C', 'P', 'Q', 'E', 'N', 'J', 'G', 'V', 'L', 'I', 'R', 'O', 'A', 'Y'})})

    @pytest.mark.parametrize('alg', ALGS)
  @hypothesis.given(
        left=hypothesis.strategies.text(),
        right=hypothesis.strategies.text(),
    )

tests/test_common.py:50: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
left = '0', right = 'ῢ'
alg = Editex({'match_cost': 0, 'group_cost': 1, 'mismatch_cost': 2, 'local': False, 'external': True, 'grouped': frozenset({'U', 'B', 'K', 'F', 'D', 'M', 'X', 'S', 'Z', 'T', 'C', 'P', 'Q', 'E', 'N', 'J', 'G', 'V', 'L', 'I', 'R', 'O', 'A', 'Y'})})

    @pytest.mark.parametrize('alg', ALGS)
    @hypothesis.given(
        left=hypothesis.strategies.text(),
        right=hypothesis.strategies.text(),
    )
    def test_normalization_range(left, right, alg):
      assert 0 <= alg.normalized_distance(left, right) <= 1
E       AssertionError: assert 3.0 <= 1
E + where 3.0 = <bound method Base.normalized_distance of Editex({'match_cost': 0, 'group_cost': 1, 'mismatch_cost': 2, 'local': False... 'B', 'K', 'F', 'D', 'M', 'X', 'S', 'Z', 'T', 'C', 'P', 'Q', 'E', 'N', 'J', 'G', 'V', 'L', 'I', 'R', 'O', 'A', 'Y'})})>('0', 'ῢ') E + where <bound method Base.normalized_distance of Editex({'match_cost': 0, 'group_cost': 1, 'mismatch_cost': 2, 'local': False... 'B', 'K', 'F', 'D', 'M', 'X', 'S', 'Z', 'T', 'C', 'P', 'Q', 'E', 'N', 'J', 'G', 'V', 'L', 'I', 'R', 'O', 'A', 'Y'})})> = Editex({'match_cost': 0, 'group_cost': 1, 'mismatch_cost': 2, 'local': False, 'external': True, 'grouped': frozenset({'U', 'B', 'K', 'F', 'D', 'M', 'X', 'S', 'Z', 'T', 'C', 'P', 'Q', 'E', 'N', 'J', 'G', 'V', 'L', 'I', 'R', 'O', 'A', 'Y'})}).normalized_distance

tests/test_common.py:55: AssertionError
---------------------------------- Hypothesis ----------------------------------
Falsifying example: test_normalization_range(
    left='0',
    right='ῢ',
alg=Editex({'match_cost': 0, 'group_cost': 1, 'mismatch_cost': 2, 'local': False, 'external': True, 'grouped': frozenset({'U', 'B', 'K', 'F', 'D', 'M', 'X', 'S', 'Z', 'T', 'C', 'P', 'Q', 'E', 'N', 'J', 'G', 'V', 'L', 'I', 'R', 'O', 'A', 'Y'})}),
)
=============================== warnings summary ===============================
tests/test_external.py:16

/tmp/autopkgtest-lxc.iu33ychk/downtmp/autopkgtest_tmp/tests/test_external.py:16: PytestUnknownMarkWarning: Unknown pytest.mark.external - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/mark.html
    @pytest.mark.external

tests/test_external.py:39

/tmp/autopkgtest-lxc.iu33ychk/downtmp/autopkgtest_tmp/tests/test_external.py:39: PytestUnknownMarkWarning: Unknown pytest.mark.external - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/mark.html
    @pytest.mark.external

tests/test_external.py:67

/tmp/autopkgtest-lxc.iu33ychk/downtmp/autopkgtest_tmp/tests/test_external.py:67: PytestUnknownMarkWarning: Unknown pytest.mark.external - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/mark.html
    @pytest.mark.external

-- Docs: https://docs.pytest.org/en/stable/warnings.html
=========================== short test summary info ============================ FAILED tests/test_common.py::test_normalization_range[alg23] - AssertionError... ================== 1 failed, 397 passed, 3 warnings in 54.22s ==================
autopkgtest [23:19:58]: test pytest


Attachment: OpenPGP_signature
Description: OpenPGP digital signature


Reply to: