Starting lpci, version 0.2.5 Logging execution to '/home/buildd/.local/state/lpci/log/lpci-20240130-230015.153191.log' Launching environment for jammy/amd64 Creating new instance from remote Creating new base instance from remote Creating new instance from base instance Starting instance Running ['apt', 'update'] :: :: WARNING: apt does not have a stable CLI interface. Use with caution in scripts. :: :: Hit:1 http://security.ubuntu.com/ubuntu jammy-security InRelease :: Hit:2 http://archive.ubuntu.com/ubuntu jammy InRelease :: Hit:3 http://archive.ubuntu.com/ubuntu jammy-updates InRelease :: Hit:4 http://archive.ubuntu.com/ubuntu jammy-backports InRelease :: Reading package lists... :: Building dependency tree... :: Reading state information... :: 83 packages can be upgraded. Run 'apt list --upgradable' to see them. Installing system packages Running ['apt', 'install', '-y', 'make', 'tox'] :: :: WARNING: apt does not have a stable CLI interface. Use with caution in scripts. :: :: Reading package lists... :: Building dependency tree... :: Reading state information... :: make is already the newest version (4.3-4.1build1). :: make set to manually installed. :: The following additional packages will be installed: :: python3-distlib python3-filelock python3-importlib-metadata :: python3-more-itertools python3-packaging python3-pip-whl :: python3-platformdirs python3-pluggy python3-py python3-pyparsing :: python3-setuptools-whl python3-six python3-toml python3-virtualenv :: python3-wheel-whl python3-zipp :: Suggested packages: :: subversion python3-pytest python-pyparsing-doc python2-pip-whl :: python2-setuptools-whl :: The following NEW packages will be installed: :: python3-distlib python3-filelock python3-importlib-metadata :: python3-more-itertools python3-packaging python3-pip-whl :: python3-platformdirs python3-pluggy python3-py python3-pyparsing :: python3-setuptools-whl python3-six python3-toml python3-virtualenv :: python3-wheel-whl python3-zipp tox :: 0 upgraded, 17 newly installed, 0 to remove and 83 not upgraded. :: Need to get 3419 kB of archives. :: After this operation, 7819 kB of additional disk space will be used. :: Get:1 http://archive.ubuntu.com/ubuntu jammy/universe amd64 python3-distlib all 0.3.4-1 [269 kB] :: Get:2 http://archive.ubuntu.com/ubuntu jammy/universe amd64 python3-filelock all 3.6.0-1 [8788 B] :: Get:3 http://archive.ubuntu.com/ubuntu jammy/main amd64 python3-more-itertools all 8.10.0-2 [47.9 kB] :: Get:4 http://archive.ubuntu.com/ubuntu jammy/main amd64 python3-zipp all 1.0.0-3 [5440 B] :: Get:5 http://archive.ubuntu.com/ubuntu jammy/main amd64 python3-importlib-metadata all 4.6.4-1 [16.2 kB] :: Get:6 http://archive.ubuntu.com/ubuntu jammy/main amd64 python3-pyparsing all 2.4.7-1 [61.4 kB] :: Get:7 http://archive.ubuntu.com/ubuntu jammy/main amd64 python3-packaging all 21.3-1 [30.7 kB] :: Get:8 http://archive.ubuntu.com/ubuntu jammy-updates/universe amd64 python3-pip-whl all 22.0.2+dfsg-1ubuntu0.4 [1680 kB] :: Get:9 http://archive.ubuntu.com/ubuntu jammy/universe amd64 python3-platformdirs all 2.5.1-1 [14.2 kB] :: Get:10 http://archive.ubuntu.com/ubuntu jammy/universe amd64 python3-pluggy all 0.13.0-7.1 [19.0 kB] :: Get:11 http://archive.ubuntu.com/ubuntu jammy/universe amd64 python3-py all 1.10.0-1 [71.9 kB] :: Get:12 http://archive.ubuntu.com/ubuntu jammy-updates/universe amd64 python3-setuptools-whl all 59.6.0-1.2ubuntu0.22.04.1 [788 kB] :: Get:13 http://archive.ubuntu.com/ubuntu jammy/main amd64 python3-six all 1.16.0-3ubuntu1 [12.6 kB] :: Get:14 http://archive.ubuntu.com/ubuntu jammy/universe amd64 python3-toml all 0.10.2-1 [16.5 kB] :: Get:15 http://archive.ubuntu.com/ubuntu jammy-updates/universe amd64 python3-wheel-whl all 0.37.1-2ubuntu0.22.04.1 [38.0 kB] :: Get:16 http://archive.ubuntu.com/ubuntu jammy/universe amd64 python3-virtualenv all 20.13.0+ds-2 [80.3 kB] :: Get:17 http://archive.ubuntu.com/ubuntu jammy/universe amd64 tox all 3.21.4-1ubuntu1 [260 kB] :: Fetched 3419 kB in 0s (22.8 MB/s) :: Selecting previously unselected package python3-distlib. :: (Reading database ... 16387 files and directories currently installed.) :: Preparing to unpack .../00-python3-distlib_0.3.4-1_all.deb ... :: Unpacking python3-distlib (0.3.4-1) ... :: Selecting previously unselected package python3-filelock. :: Preparing to unpack .../01-python3-filelock_3.6.0-1_all.deb ... :: Unpacking python3-filelock (3.6.0-1) ... :: Selecting previously unselected package python3-more-itertools. :: Preparing to unpack .../02-python3-more-itertools_8.10.0-2_all.deb ... :: Unpacking python3-more-itertools (8.10.0-2) ... :: Selecting previously unselected package python3-zipp. :: Preparing to unpack .../03-python3-zipp_1.0.0-3_all.deb ... :: Unpacking python3-zipp (1.0.0-3) ... :: Selecting previously unselected package python3-importlib-metadata. :: Preparing to unpack .../04-python3-importlib-metadata_4.6.4-1_all.deb ... :: Unpacking python3-importlib-metadata (4.6.4-1) ... :: Selecting previously unselected package python3-pyparsing. :: Preparing to unpack .../05-python3-pyparsing_2.4.7-1_all.deb ... :: Unpacking python3-pyparsing (2.4.7-1) ... :: Selecting previously unselected package python3-packaging. :: Preparing to unpack .../06-python3-packaging_21.3-1_all.deb ... :: Unpacking python3-packaging (21.3-1) ... :: Selecting previously unselected package python3-pip-whl. :: Preparing to unpack .../07-python3-pip-whl_22.0.2+dfsg-1ubuntu0.4_all.deb ... :: Unpacking python3-pip-whl (22.0.2+dfsg-1ubuntu0.4) ... :: Selecting previously unselected package python3-platformdirs. :: Preparing to unpack .../08-python3-platformdirs_2.5.1-1_all.deb ... :: Unpacking python3-platformdirs (2.5.1-1) ... :: Selecting previously unselected package python3-pluggy. :: Preparing to unpack .../09-python3-pluggy_0.13.0-7.1_all.deb ... :: Unpacking python3-pluggy (0.13.0-7.1) ... :: Selecting previously unselected package python3-py. :: Preparing to unpack .../10-python3-py_1.10.0-1_all.deb ... :: Unpacking python3-py (1.10.0-1) ... :: Selecting previously unselected package python3-setuptools-whl. :: Preparing to unpack .../11-python3-setuptools-whl_59.6.0-1.2ubuntu0.22.04.1_all.deb ... :: Unpacking python3-setuptools-whl (59.6.0-1.2ubuntu0.22.04.1) ... :: Selecting previously unselected package python3-six. :: Preparing to unpack .../12-python3-six_1.16.0-3ubuntu1_all.deb ... :: Unpacking python3-six (1.16.0-3ubuntu1) ... :: Selecting previously unselected package python3-toml. :: Preparing to unpack .../13-python3-toml_0.10.2-1_all.deb ... :: Unpacking python3-toml (0.10.2-1) ... :: Selecting previously unselected package python3-wheel-whl. :: Preparing to unpack .../14-python3-wheel-whl_0.37.1-2ubuntu0.22.04.1_all.deb ... :: Unpacking python3-wheel-whl (0.37.1-2ubuntu0.22.04.1) ... :: Selecting previously unselected package python3-virtualenv. :: Preparing to unpack .../15-python3-virtualenv_20.13.0+ds-2_all.deb ... :: Unpacking python3-virtualenv (20.13.0+ds-2) ... :: Selecting previously unselected package tox. :: Preparing to unpack .../16-tox_3.21.4-1ubuntu1_all.deb ... :: Unpacking tox (3.21.4-1ubuntu1) ... :: Setting up python3-more-itertools (8.10.0-2) ... :: Setting up python3-setuptools-whl (59.6.0-1.2ubuntu0.22.04.1) ... :: Setting up python3-filelock (3.6.0-1) ... :: Setting up python3-py (1.10.0-1) ... :: Setting up python3-pip-whl (22.0.2+dfsg-1ubuntu0.4) ... :: Setting up python3-distlib (0.3.4-1) ... :: Setting up python3-zipp (1.0.0-3) ... :: Setting up python3-platformdirs (2.5.1-1) ... :: Setting up python3-six (1.16.0-3ubuntu1) ... :: Setting up python3-pyparsing (2.4.7-1) ... :: Setting up python3-toml (0.10.2-1) ... :: Setting up python3-wheel-whl (0.37.1-2ubuntu0.22.04.1) ... :: Setting up python3-importlib-metadata (4.6.4-1) ... :: Setting up python3-virtualenv (20.13.0+ds-2) ... :: Setting up python3-packaging (21.3-1) ... :: Setting up python3-pluggy (0.13.0-7.1) ... :: Setting up tox (3.21.4-1ubuntu1) ... Running command for the job... Running ['bash', '--noprofile', '--norc', '-ec', 'make lint\nmake unittest\n'] :: Running flake8 :: lint create: /build/lpci/project/.tox/lint :: lint installdeps: flake8==4.0.1 :: lint installed: flake8==4.0.1,mccabe==0.6.1,pycodestyle==2.8.0,pyflakes==2.4.0 :: lint run-test-pre: PYTHONHASHSEED='2357225841' :: lint run-test: commands[0] | flake8 --exclude hooks/charmhelpers hooks/ tests/ :: ___________________________________ summary ____________________________________ :: lint: commands succeeded :: congratulations :) :: unit create: /build/lpci/project/.tox/unit :: unit installdeps: -r/build/lpci/project/tests/unit/requirements.txt :: unit installed: Cheetah3==3.2.6.post1,coverage==7.4.1,distro==1.9.0,exceptiongroup==1.2.0,freezegun==1.4.0,iniconfig==2.0.0,mock==5.1.0,packaging==23.2,pluggy==1.4.0,pytest==8.0.0,pytest-cov==4.1.0,python-dateutil==2.8.2,PyYAML==6.0.1,six==1.16.0,tomli==2.0.1 :: unit run-test-pre: PYTHONHASHSEED='51290119' :: unit run-test: commands[0] | pytest --ignore /build/lpci/project/tests/functional --cov-config=/build/lpci/project/.coveragerc -vv --cov=hooks --cov-report=term-missing --cov-branch :: ============================= test session starts ============================== :: platform linux -- Python 3.10.12, pytest-8.0.0, pluggy-1.4.0 -- /build/lpci/project/.tox/unit/bin/python :: cachedir: .tox/unit/.pytest_cache :: rootdir: /build/lpci/project :: plugins: cov-4.1.0 :: collecting ... collected 43 items :: :: tests/unit/test_charm.py::TestUbuntuMirrorCharm::test_add_bind_mount PASSED [ 2%] :: tests/unit/test_charm.py::TestUbuntuMirrorCharm::test_collect_mountpoints PASSED [ 4%] :: tests/unit/test_charm.py::TestUbuntuMirrorCharm::test_configure_rsync_server PASSED [ 6%] :: tests/unit/test_charm.py::TestUbuntuMirrorCharm::test_configure_triggers PASSED [ 9%] :: tests/unit/test_charm.py::TestUbuntuMirrorCharm::test_ensure_symlink PASSED [ 11%] :: tests/unit/test_charm.py::TestUbuntuMirrorCharm::test_extract_ssh_public_key PASSED [ 13%] :: tests/unit/test_charm.py::TestUbuntuMirrorCharm::test_generate_disk_check PASSED [ 16%] :: tests/unit/test_charm.py::TestUbuntuMirrorCharm::test_get_managed_mounts_empty PASSED [ 18%] :: tests/unit/test_charm.py::TestUbuntuMirrorCharm::test_get_managed_mounts_not_empty PASSED [ 20%] :: tests/unit/test_charm.py::TestUbuntuMirrorCharm::test_get_roles PASSED [ 23%] :: tests/unit/test_charm.py::TestUbuntuMirrorCharm::test_has_roles PASSED [ 25%] :: tests/unit/test_charm.py::TestUbuntuMirrorCharm::test_make_triggers PASSED [ 27%] :: tests/unit/test_charm.py::TestUbuntuMirrorCharm::test_merge_shared_key_triggers PASSED [ 30%] :: tests/unit/test_charm.py::TestUbuntuMirrorCharm::test_merge_shared_key_triggers_releases_only PASSED [ 32%] :: tests/unit/test_charm.py::TestUbuntuMirrorCharm::test_mountpoint_of_bin PASSED [ 34%] :: tests/unit/test_charm.py::TestUbuntuMirrorCharm::test_mountpoint_of_proc_self_fd PASSED [ 37%] :: tests/unit/test_charm.py::TestUbuntuMirrorCharm::test_mountpoint_of_root PASSED [ 39%] :: tests/unit/test_charm.py::TestUbuntuMirrorCharm::test_remove_bind_mount PASSED [ 41%] :: tests/unit/test_charm.py::TestUbuntuMirrorCharm::test_xinetd_rsync_server PASSED [ 44%] :: tests/unit/test_templates.py::TestLinuxcontainers::test_apache_template PASSED [ 46%] :: tests/unit/test_templates.py::TestLinuxcontainers::test_apache_template_thirdparty PASSED [ 48%] :: tests/unit/test_templates.py::TestUbuntu::test_apache_template PASSED [ 51%] :: tests/unit/test_templates.py::TestUbuntu::test_apache_template_thirdparty PASSED [ 53%] :: tests/unit/test_templates.py::TestReleases::test_apache_template PASSED [ 55%] :: tests/unit/test_templates.py::TestReleases::test_apache_template_thirdparty PASSED [ 58%] :: tests/unit/test_templates.py::TestCDImage::test_apache_template PASSED [ 60%] :: tests/unit/test_templates.py::TestCDImage::test_apache_template_thirdparty PASSED [ 62%] :: tests/unit/test_templates.py::TestPorts::test_apache_template PASSED [ 65%] :: tests/unit/test_templates.py::TestPorts::test_apache_template_thirdparty PASSED [ 67%] :: tests/unit/test_templates.py::TestUbuntuUnsafe::test_apache_template PASSED [ 69%] :: tests/unit/test_templates.py::TestUbuntuUnsafe::test_apache_template_thirdparty SKIPPED [ 72%] :: tests/unit/test_templates.py::TestCloudImages::test_apache_template PASSED [ 74%] :: tests/unit/test_templates.py::TestCloudImages::test_apache_template_thirdparty SKIPPED [ 76%] :: tests/unit/test_templates.py::TestMAASImages::test_apache_template PASSED [ 79%] :: tests/unit/test_templates.py::TestMAASImages::test_apache_template_thirdparty SKIPPED [ 81%] :: tests/unit/test_templates.py::TestSimpleStreams::test_apache_template PASSED [ 83%] :: tests/unit/test_templates.py::TestSimpleStreams::test_apache_template_thirdparty SKIPPED [ 86%] :: tests/unit/test_templates.py::TestUbuntuCloudArchive::test_apache_template PASSED [ 88%] :: tests/unit/test_templates.py::TestUbuntuCloudArchive::test_apache_template_thirdparty SKIPPED [ 90%] :: tests/unit/test_templates.py::TestOldReleases::test_apache_template PASSED [ 93%] :: tests/unit/test_templates.py::TestOldReleases::test_apache_template_thirdparty SKIPPED [ 95%] :: tests/unit/test_templates.py::TestExtras::test_apache_template PASSED [ 97%] :: tests/unit/test_templates.py::TestExtras::test_apache_template_thirdparty SKIPPED [100%] :: :: =============================== warnings summary =============================== :: hooks/charmhelpers/core/hookenv.py:23 :: /build/lpci/project/hooks/charmhelpers/core/hookenv.py:23: DeprecationWarning: The distutils package is deprecated and slated for removal in Python 3.12. Use setuptools or check PEP 632 for potential alternatives :: from distutils.version import LooseVersion :: :: -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html :: :: ---------- coverage: platform linux, python 3.10.12-final-0 ---------- :: Name Stmts Miss Branch BrPart Cover Missing :: ------------------------------------------------------------- :: hooks/Config.py 191 88 38 5 52% 35, 38, 41, 44, 47, 50, 53, 56-59, 62, 65, 68, 71, 74, 80, 83-87, 90-100, 103-104, 116, 119, 122, 125, 130-131, 140, 154-156, 162-164, 169-171, 186-191, 200-206, 210->212, 220-241, 245, 263, 266-268, 280-281, 297 :: hooks/hooks.py 789 541 258 15 29% 124-125, 136-144, 148-153, 157-164, 168-175, 205->207, 229->232, 234->exit, 240-248, 252-279, 283-288, 295->297, 303-318, 350-411, 425-426, 433-436, 469->491, 476-477, 499-501, 508-671, 678-772, 779-796, 840, 847-850, 852->843, 866, 874, 886, 890, 932-956, 960-1079, 1083-1101, 1105-1129, 1134-1140, 1147-1171, 1175-1178, 1182-1183, 1187-1191, 1196-1205, 1210-1227, 1232-1235, 1240-1246, 1251-1256, 1261-1266, 1271-1276, 1280-1286 :: ------------------------------------------------------------- :: TOTAL 980 629 296 20 33% :: :: =================== 36 passed, 7 skipped, 1 warning in 3.82s =================== :: ___________________________________ summary ____________________________________ :: unit: commands succeeded :: congratulations :)