Source: image-factory Version: 1.0.1-1 Severity: serious Justification: FTBFS Tags: bookworm sid ftbfs User: lu...@debian.org Usertags: ftbfs-20211104 ftbfs-bookworm
Hi, During a rebuild of all packages in sid, your package failed to build on amd64. Relevant part (hopefully): > make[1]: Entering directory '/<<PKGBUILDDIR>>' > python3 -m unittest discover -v > test_empty_config (tests.test_cli.TestCLI) > Test empty configuration file. ... ok > test_example_config (tests.test_cli.TestCLI) > Test exapmle image-factory.conf file. ... ok > test_override_cache_dir (tests.test_cli.TestCLI) > Test overriding the cache directory. ... ok > test_flake8 (tests.test_flake8.Flake8TestCase) > Test: Run flake8 on Python source code. ... Running following command: > /usr/bin/python3 -m flake8 --max-line-length=99 image-factory tests > ok > test_invalid (tests.test_helper.TestParseBytes) > Test parse_bytes("invalid") ... ok > test_parse_1_g (tests.test_helper.TestParseBytes) > Test parse_bytes("1G") ... ok > test_parse_2_tb (tests.test_helper.TestParseBytes) > Test parse_bytes("2 TB") ... ok > test_parse_512_mib (tests.test_helper.TestParseBytes) > Test parse_bytes("512 MiB") ... ok > test_pylint (tests.test_pylint.PylintTestCase) > Test: Run pylint on Python source code. ... Running following command: > /usr/bin/python3 -m pylint --rcfile=/<<PKGBUILDDIR>>/tests/pylint.conf -- > image-factory tests > FAIL > test_chmod_dnf_log (tests.test_sudo_helper.TestSudoHelper) > Test read access for dnf log file. ... ok > test_chmod_log_file (tests.test_sudo_helper.TestSudoHelper) > Test read access for mounted /var/log/... ... ok > test_chmod_recursive (tests.test_sudo_helper.TestSudoHelper) > Test chmod recursively ... ok > test_chmod_remove_root (tests.test_sudo_helper.TestSudoHelper) > Test chmod remove mounted /root permission ... ok > test_chmod_root (tests.test_sudo_helper.TestSudoHelper) > Test chmod mounted /root ... ok > test_chmod_var_log (tests.test_sudo_helper.TestSudoHelper) > Test write access for mounted /var/log/... ... ok > test_mount (tests.test_sudo_helper.TestSudoHelper) > Test mounting. ... ok > test_reject_escaping (tests.test_sudo_helper.TestSudoHelper) > Test rejecting ../../etc/shadow. ... ok > test_umount (tests.test_sudo_helper.TestSudoHelper) > Test unmounting. ... ok > > ====================================================================== > FAIL: test_pylint (tests.test_pylint.PylintTestCase) > Test: Run pylint on Python source code. > ---------------------------------------------------------------------- > Traceback (most recent call last): > File "/<<PKGBUILDDIR>>/tests/test_pylint.py", line 76, in test_pylint > self.fail("\n".join(msgs)) > AssertionError: pylint found issues: > ************* Module image-factory > image-factory:139:24: C0209: Formatting a regular string which could be a > f-string (consider-using-f-string) > image-factory:133:22: R1732: Consider using 'with' for resource-allocating > operations (consider-using-with) > image-factory:168:24: C0209: Formatting a regular string which could be a > f-string (consider-using-f-string) > image-factory:162:22: R1732: Consider using 'with' for resource-allocating > operations (consider-using-with) > image-factory:180:18: C0209: Formatting a regular string which could be a > f-string (consider-using-f-string) > image-factory:199:12: C0209: Formatting a regular string which could be a > f-string (consider-using-f-string) > image-factory:234:19: C0209: Formatting a regular string which could be a > f-string (consider-using-f-string) > image-factory:239:17: C0209: Formatting a regular string which could be a > f-string (consider-using-f-string) > image-factory:242:17: C0209: Formatting a regular string which could be a > f-string (consider-using-f-string) > image-factory:243:17: C0209: Formatting a regular string which could be a > f-string (consider-using-f-string) > image-factory:246:17: C0209: Formatting a regular string which could be a > f-string (consider-using-f-string) > image-factory:255:19: C0209: Formatting a regular string which could be a > f-string (consider-using-f-string) > image-factory:257:24: C0209: Formatting a regular string which could be a > f-string (consider-using-f-string) > image-factory:301:21: W1514: Using open without explicitly specifying an > encoding (unspecified-encoding) > image-factory:305:25: W1514: Using open without explicitly specifying an > encoding (unspecified-encoding) > image-factory:305:25: R1732: Consider using 'with' for resource-allocating > operations (consider-using-with) > image-factory:401:18: R1732: Consider using 'with' for resource-allocating > operations (consider-using-with) > image-factory:427:32: R1732: Consider using 'with' for resource-allocating > operations (consider-using-with) > image-factory:429:20: W1514: Using open without explicitly specifying an > encoding (unspecified-encoding) > image-factory:429:20: R1732: Consider using 'with' for resource-allocating > operations (consider-using-with) > image-factory:517:34: C0209: Formatting a regular string which could be a > f-string (consider-using-f-string) > ************* Module tests.test_pylint > tests/test_pylint.py:42:29: C0209: Formatting a regular string which could be > a f-string (consider-using-f-string) > tests/test_pylint.py:64:20: C0209: Formatting a regular string which could be > a f-string (consider-using-f-string) > tests/test_pylint.py:69:28: C0209: Formatting a regular string which could be > a f-string (consider-using-f-string) > tests/test_pylint.py:72:20: C0209: Formatting a regular string which could be > a f-string (consider-using-f-string) > tests/test_pylint.py:43:18: R1732: Consider using 'with' for > resource-allocating operations (consider-using-with) > ************* Module tests.test_flake8 > tests/test_flake8.py:36:29: C0209: Formatting a regular string which could be > a f-string (consider-using-f-string) > tests/test_flake8.py:46:20: C0209: Formatting a regular string which could be > a f-string (consider-using-f-string) > tests/test_flake8.py:51:28: C0209: Formatting a regular string which could be > a f-string (consider-using-f-string) > tests/test_flake8.py:54:20: C0209: Formatting a regular string which could be > a f-string (consider-using-f-string) > tests/test_flake8.py:37:18: R1732: Consider using 'with' for > resource-allocating operations (consider-using-with) > tests/test_flake8.py:1:0: R0801: Similar lines in 2 files > ==tests.test_flake8:[34:42] > ==tests.test_pylint:[40:53] > if unittest_verbosity() >= 2: > sys.stderr.write("Running following command:\n{}\n".format(" > ".join(cmd))) > process = subprocess.Popen( > cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE, > close_fds=True > ) > out, err = process.communicate() > > if process.returncode != 0: # pragma: no cover > # Strip trailing summary (introduced in pylint 1.7). This summary > might look like: > # > # ------------------------------------ > # Your code has been rated at 10.00/10 > # (duplicate-code) > > ---------------------------------------------------------------------- > Ran 18 tests in 5.762s > > FAILED (failures=1) > make[1]: *** [Makefile:13: check] Error 1 > make[1]: Leaving directory '/<<PKGBUILDDIR>>' > dh_auto_test: error: make -j4 check returned exit code 2 The full build log is available from: http://qa-logs.debian.net/2021/11/04/image-factory_1.0.1-1_unstable.log A list of current common problems and possible solutions is available at http://wiki.debian.org/qa.debian.org/FTBFS . You're welcome to contribute! If you reassign this bug to another package, please marking it as 'affects'-ing this package. See https://www.debian.org/Bugs/server-control#affects If you fail to reproduce this, please provide a build log and diff it with mine so that we can identify if something relevant changed in the meantime.