[Python-modules-team] Bug#942236: doit: autopkgtest needs update for new version of pytest

Paul Gevers elbrus at debian.org
Sat Oct 12 20:59:02 BST 2019


Source: doit
Version: 0.31.1-2
Severity: serious
X-Debbugs-CC: debian-ci at lists.debian.org, pytest at packages.debian.org
Tags: sid bullseye
User: debian-ci at lists.debian.org
Usertags: needs-update
Control: affects -1 src:pytest

Dear maintainers,

With a not so recent upload of pytest the autopkgtest of doit fails in
testing when that autopkgtest is run with the binary packages of pytest
from unstable. It passes when run with only packages from testing. In
tabular form:
                       pass            fail
pytest                 from testing    4.6.5-2
doit                   from testing    0.31.1-2
versioned deps [0]     from testing    from unstable
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 of pytest to testing
[1]. Of course, pytest shouldn't just break your autopkgtest (or even
worse, your package), but it seems to me that the change in pytest was
intended and your package needs to update to the new situation. The
package had two months to adapt before this bug was even filed.

If this is a real problem in your package (and not only in your
autopkgtest), the right binary package(s) from pytest should really add
a versioned Breaks on the unfixed version of (one of your) package(s).
Note: the Breaks is nice even if the issue is only in the autopkgtest as
it helps the migration software to figure out the right versions to
combine in the tests.

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

Paul

[0] You can see what packages were added from the second line of the log
file quoted below. The migration software adds source package from
unstable to the list if they are needed to install packages from
pytest/4.6.5-2. I.e. due to versioned dependencies or breaks/conflicts.
[1] https://qa.debian.org/excuses.php?package=pytest

https://ci.debian.net/data/autopkgtest/testing/amd64/d/doit/3146641/log.gz

TaskError - taskid:ut:tests/test_cmd_forget.py
PythonAction Error
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/doit/action.py", line 424, in execute
    returned_value = self.py_callable(*self.args, **kwargs)
  File "/tmp/autopkgtest-lxc.xt18xr7t/downtmp/build.R0b/src/dodo.py",
line 32, in run_test
    return not bool(pytest.main(test))
  File "/usr/lib/python3/dist-packages/_pytest/config/__init__.py", line
63, in main
    config = _prepareconfig(args, plugins)
  File "/usr/lib/python3/dist-packages/_pytest/config/__init__.py", line
191, in _prepareconfig
    raise TypeError(msg.format(args, type(args)))
TypeError: `args` parameter expected to be a list or tuple of strings,
got: 'tests/test_cmd_forget.py' (type: <class 'str'>)

########################################
TaskError - taskid:ut:tests/test_cmd_forget.py
ut:tests/test_cmd_forget.py <stderr>:

ut:tests/test_cmd_forget.py <stdout>:




-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: OpenPGP digital signature
URL: <http://alioth-lists.debian.net/pipermail/python-modules-team/attachments/20191012/923bacef/attachment.sig>


More information about the Python-modules-team mailing list