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

Bug#1006143: kas: autopkgtest regression: ModuleNotFoundError: No module named 'snack'



Source: kas
Version: 2.6.3-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 kas the autopkgtest of kas fails in testing when that autopkgtest is run with the binary packages of kas from unstable. It passes when run with only packages from testing. In tabular form:

                       pass            fail
kas                    from testing    2.6.3-1
all others             from testing    from testing

I copied some of the output at the bottom of this report. Looks like a missing (test) dependency to me.

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

https://ci.debian.net/data/autopkgtest/testing/amd64/k/kas/19345088/log.gz

============================= test session starts ==============================
platform linux -- Python 3.9.10, pytest-6.2.5, py-1.10.0, pluggy-0.13.0
rootdir: /tmp/autopkgtest-lxc.q1wq9y5j/downtmp/build.jcd/src
collected 26 items

tests/test_build_system.py . [ 3%] tests/test_commands.py .. [ 11%] tests/test_environment_variables.py .. [ 19%] tests/test_includehandler.py ............ [ 65%] tests/test_layers.py .... [ 80%] tests/test_menu.py F [ 84%] tests/test_patch.py F. [ 92%] tests/test_refspec.py .. [100%]

=================================== FAILURES =================================== __________________________________ test_menu ___________________________________

monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7f62f84bd100>
tmpdir = local('/tmp/pytest-of-debci/pytest-0/test_menu0')

    def test_menu(monkeypatch, tmpdir):
        tdir = str(tmpdir.mkdir('test_menu'))
        shutil.rmtree(tdir, ignore_errors=True)
        shutil.copytree('tests/test_menu', tdir)
        cwd = os.getcwd()
        os.chdir(tdir)
    >       monkeypatch.setattr('snack.GridFormHelp.runOnce', mock_runOnce)

/tmp/autopkgtest-lxc.q1wq9y5j/downtmp/build.jcd/src/tests/test_menu.py:64: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/_pytest/monkeypatch.py:98: in derive_importpath
    target = resolve(module)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
name = 'snack.GridFormHelp'

    def resolve(name: str) -> object:
        # Simplified from zope.dottedname.
        parts = name.split(".")
            used = parts.pop(0)
      found = __import__(used)
E       ModuleNotFoundError: No module named 'snack'

/usr/lib/python3/dist-packages/_pytest/monkeypatch.py:59: ModuleNotFoundError __________________________________ test_patch __________________________________

changedir = None, tmpdir = local('/tmp/pytest-of-debci/pytest-0/test_patch0')

    def test_patch(changedir, tmpdir):
        tdir = str(tmpdir.mkdir('test_patch'))
        shutil.rmtree(tdir, ignore_errors=True)
      shutil.copytree('tests/test_patch', tdir)

/tmp/autopkgtest-lxc.q1wq9y5j/downtmp/build.jcd/src/tests/test_patch.py:32: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
src = 'tests/test_patch'
dst = '/tmp/pytest-of-debci/pytest-0/test_patch0/test_patch', symlinks = False
ignore = None, copy_function = <function copy2 at 0x7f62f9e76ee0>
ignore_dangling_symlinks = False, dirs_exist_ok = False

def copytree(src, dst, symlinks=False, ignore=None, copy_function=copy2,
                 ignore_dangling_symlinks=False, dirs_exist_ok=False):
"""Recursively copy a directory tree and return the destination directory. dirs_exist_ok dictates whether to raise an exception in case dst or any
        missing parent directory already exists.
If exception(s) occur, an Error is raised with a list of reasons.
            If the optional symlinks flag is true, symbolic links in the
        source tree result in symbolic links in the destination tree; if
        it is false, the contents of the files pointed to by symbolic
        links are copied. If the file pointed by the symlink doesn't
        exist, an exception will be added in the list of errors raised in
        an Error exception at the end of the copy process.
You can set the optional ignore_dangling_symlinks flag to true if you
        want to silence this exception. Notice that this has no effect on
        platforms that don't support os.symlink.
            The optional ignore argument is a callable. If given, it
        is called with the `src` parameter, which is the directory
        being visited by copytree(), and `names` which is the list of
        `src` contents, as returned by os.listdir():
                callable(src, names) -> ignored_names
            Since copytree() is called recursively, the callable will be
        called once for each directory that is copied. It returns a
        list of names relative to the `src` directory that should
        not be copied.
The optional copy_function argument is a callable that will be used
        to copy each file. It will be called with the source path and the
        destination path as arguments. By default, copy2() is used, but any
function that supports the same signature (like copy()) can be used.
            """
        sys.audit("shutil.copytree", src, dst)
      with os.scandir(src) as itr:
E FileNotFoundError: [Errno 2] No such file or directory: 'tests/test_patch'

/usr/lib/python3.9/shutil.py:564: FileNotFoundError
=========================== short test summary info ============================ FAILED tests/test_menu.py::test_menu - ModuleNotFoundError: No module named '... FAILED tests/test_patch.py::test_patch - FileNotFoundError: [Errno 2] No such... ======================== 2 failed, 24 passed in 36.63s =========================
autopkgtest [19:11:45]: test command1

Attachment: OpenPGP_signature
Description: OpenPGP digital signature


Reply to: