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

Bug#940974: oslo-sphinx: autopkgtest regression: autodep8 tests the wrong Python 3 package since Python 2 package was dropped

Source: oslo-sphinx
Version: 4.18.0-3
X-Debbugs-CC: debian-ci@lists.debian.org
User: debian-ci@lists.debian.org
Usertags: regression

Dear maintainers,

With a recent upload of oslo-sphinx the autopkgtest of oslo-sphinx fails
in testing when that autopkgtest is run with the binary packages of
oslo-sphinx from unstable. It passes when run with only packages from
testing. In tabular form:
                       pass            fail
oslo-sphinx            from testing    4.18.0-3
all others             from testing    from testing

I copied some of the output at the bottom of this report. The issue is
that the logic in autodep8 to determine which package to use isn't that
smart. In the past, the package was correctly determined based on your
Python 2 package name, but since you dropped that, it picks the wrong
package (for Python 3 testing). My proposal to fix the current situation
is one of:
1) help fix autodep8 to find the right package (and maybe do smarter
testing on common Python workflows)
2) revert the order of the two packages in d/control, such that the
first one is the one that autodep8 should pick
3) don't use autodep8 to provide autopkgtests (maybe just hard code the
autodep8 template for now)

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

More information about this bug and the reason for filing it can be found on


[1] https://qa.debian.org/excuses.php?package=oslo-sphinx


autopkgtest [17:53:51]: test autodep8-python2: set -e ; for py in
$(pyversions -r 2>/dev/null) ; do cd "$AUTOPKGTEST_TMP" ; echo "Testing
with $py:" ; $py -c "import oslosphinx_common; print oslosphinx_common"
; done
autopkgtest [17:53:51]: test autodep8-python2: [-----------------------
Testing with python2.7:
Traceback (most recent call last):
  File "<string>", line 1, in <module>
ImportError: No module named oslosphinx_common
autopkgtest [17:53:52]: test autodep8-python2: -----------------------]

Attachment: signature.asc
Description: OpenPGP digital signature

Reply to: