Starting lpci, version 0.2.7 Logging execution to '/home/buildd/.local/state/lpci/log/lpci-20240426-234709.433267.log' Launching environment for focal/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 focal-security InRelease :: Hit:2 http://archive.ubuntu.com/ubuntu focal InRelease :: Hit:3 http://archive.ubuntu.com/ubuntu focal-updates InRelease :: Hit:4 http://archive.ubuntu.com/ubuntu focal-backports InRelease :: Reading package lists... :: Building dependency tree... :: Reading state information... :: 100 packages can be upgraded. Run 'apt list --upgradable' to see them. Installing system packages Running ['apt', 'install', '-y', 'python3-pip', 'git'] :: :: WARNING: apt does not have a stable CLI interface. Use with caution in scripts. :: :: Reading package lists... :: Building dependency tree... :: Reading state information... :: python3-pip is already the newest version (20.0.2-5ubuntu1.10). :: The following additional packages will be installed: :: git-man libcurl3-gnutls liberror-perl :: Suggested packages: :: gettext-base git-daemon-run | git-daemon-sysvinit git-doc git-el git-email :: git-gui gitk gitweb git-cvs git-mediawiki git-svn :: Recommended packages: :: less :: The following NEW packages will be installed: :: git git-man libcurl3-gnutls liberror-perl :: 0 upgraded, 4 newly installed, 0 to remove and 100 not upgraded. :: Need to get 5751 kB of archives. :: After this operation, 39.4 MB of additional disk space will be used. :: Get:1 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 libcurl3-gnutls amd64 7.68.0-1ubuntu2.22 [233 kB] :: Get:2 http://archive.ubuntu.com/ubuntu focal/main amd64 liberror-perl all 0.17029-1 [26.5 kB] :: Get:3 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 git-man all 1:2.25.1-1ubuntu3.11 [887 kB] :: Get:4 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 git amd64 1:2.25.1-1ubuntu3.11 [4605 kB] :: Fetched 5751 kB in 0s (65.7 MB/s) :: Selecting previously unselected package libcurl3-gnutls:amd64. :: (Reading database ... 15217 files and directories currently installed.) :: Preparing to unpack .../libcurl3-gnutls_7.68.0-1ubuntu2.22_amd64.deb ... :: Unpacking libcurl3-gnutls:amd64 (7.68.0-1ubuntu2.22) ... :: Selecting previously unselected package liberror-perl. :: Preparing to unpack .../liberror-perl_0.17029-1_all.deb ... :: Unpacking liberror-perl (0.17029-1) ... :: Selecting previously unselected package git-man. :: Preparing to unpack .../git-man_1%3a2.25.1-1ubuntu3.11_all.deb ... :: Unpacking git-man (1:2.25.1-1ubuntu3.11) ... :: Selecting previously unselected package git. :: Preparing to unpack .../git_1%3a2.25.1-1ubuntu3.11_amd64.deb ... :: Unpacking git (1:2.25.1-1ubuntu3.11) ... :: Setting up libcurl3-gnutls:amd64 (7.68.0-1ubuntu2.22) ... :: Setting up liberror-perl (0.17029-1) ... :: Setting up git-man (1:2.25.1-1ubuntu3.11) ... :: Setting up git (1:2.25.1-1ubuntu3.11) ... :: Processing triggers for libc-bin (2.31-0ubuntu9) ... Running command for the job... Running ['bash', '--noprofile', '--norc', '-ec', 'python3 -m pip install tox==3.24.5; tox'] :: Collecting tox==3.24.5 :: Downloading tox-3.24.5-py2.py3-none-any.whl (85 kB) :: Collecting packaging>=14 :: Downloading packaging-24.0-py3-none-any.whl (53 kB) :: Collecting toml>=0.9.4 :: Downloading toml-0.10.2-py2.py3-none-any.whl (16 kB) :: Collecting virtualenv!=20.0.0,!=20.0.1,!=20.0.2,!=20.0.3,!=20.0.4,!=20.0.5,!=20.0.6,!=20.0.7,>=16.0.0 :: Downloading virtualenv-20.26.0-py3-none-any.whl (3.9 MB) :: Collecting py>=1.4.17 :: Downloading py-1.11.0-py2.py3-none-any.whl (98 kB) :: Collecting filelock>=3.0.0 :: Downloading filelock-3.13.4-py3-none-any.whl (11 kB) :: Collecting pluggy>=0.12.0 :: Downloading pluggy-1.5.0-py3-none-any.whl (20 kB) :: Collecting six>=1.14.0 :: Downloading six-1.16.0-py2.py3-none-any.whl (11 kB) :: Collecting distlib<1,>=0.3.7 :: Downloading distlib-0.3.8-py2.py3-none-any.whl (468 kB) :: Collecting platformdirs<5,>=3.9.1 :: Downloading platformdirs-4.2.1-py3-none-any.whl (17 kB) :: Installing collected packages: packaging, toml, filelock, distlib, platformdirs, virtualenv, py, pluggy, six, tox :: Successfully installed distlib-0.3.8 filelock-3.13.4 packaging-24.0 platformdirs-4.2.1 pluggy-1.5.0 py-1.11.0 six-1.16.0 toml-0.10.2 tox-3.24.5 virtualenv-20.26.0 :: GLOB sdist-make: /build/lpci/project/setup.py :: lint create: /build/lpci/project/.tox/lint :: lint installdeps: pre-commit :: lint installed: cfgv==3.4.0,distlib==0.3.8,filelock==3.13.4,identify==2.5.36,nodeenv==1.8.0,platformdirs==4.2.1,pre-commit==3.5.0,PyYAML==6.0.1,virtualenv==20.26.0 :: lint run-test-pre: PYTHONHASHSEED='2142003842' :: lint run-test: commands[0] | pre-commit run -a :: [INFO] Initializing environment for https://github.com/pre-commit/pre-commit-hooks. :: [INFO] Initializing environment for https://github.com/PyCQA/flake8. :: [INFO] Initializing environment for https://github.com/PyCQA/pydocstyle. :: [INFO] Initializing environment for https://github.com/PyCQA/pydocstyle:toml==0.10.2. :: [INFO] Initializing environment for https://github.com/PyCQA/isort. :: [INFO] Initializing environment for https://github.com/psf/black. :: [INFO] Initializing environment for https://github.com/asottile/setup-cfg-fmt. :: [INFO] Installing environment for https://github.com/pre-commit/pre-commit-hooks. :: [INFO] Once installed this environment will be reused. :: [INFO] This may take a few minutes... :: [INFO] Installing environment for https://github.com/PyCQA/flake8. :: [INFO] Once installed this environment will be reused. :: [INFO] This may take a few minutes... :: [INFO] Installing environment for https://github.com/PyCQA/pydocstyle. :: [INFO] Once installed this environment will be reused. :: [INFO] This may take a few minutes... :: [INFO] Installing environment for https://github.com/PyCQA/isort. :: [INFO] Once installed this environment will be reused. :: [INFO] This may take a few minutes... :: [INFO] Installing environment for https://github.com/psf/black. :: [INFO] Once installed this environment will be reused. :: [INFO] This may take a few minutes... :: [INFO] Installing environment for https://github.com/asottile/setup-cfg-fmt. :: [INFO] Once installed this environment will be reused. :: [INFO] This may take a few minutes... :: check for added large files..............................................Passed :: check python ast.........................................................Passed :: check for merge conflicts................................................Passed :: check yaml...............................................................Passed :: debug statements (python)................................................Passed :: fix end of files.........................................................Passed :: trim trailing whitespace.................................................Passed :: flake8...................................................................Passed :: pydocstyle...............................................................Passed :: isort....................................................................Passed :: black....................................................................Passed :: setup-cfg-fmt............................................................Passed :: mypy create: /build/lpci/project/.tox/mypy :: mypy installdeps: -rrequirements.txt, .[test], mypy, types-PyYAML, types-requests :: mypy inst: /build/lpci/project/.tox/.tmp/package/1/lpcraft-0.0.50.zip :: mypy installed: attrs==23.2.0,certifi==2022.12.7,charset-normalizer==3.1.0,coverage==7.5.0,craft-cli==1.2.0,craft-providers==1.8.1,exceptiongroup==1.2.1,fakesleep==0.1,fancycompleter==0.9.1,fixtures==4.1.0,idna==3.4,iniconfig==2.0.0,Jinja2==3.1.3,lpcraft @ file:///build/lpci/project/.tox/.tmp/package/1/lpcraft-0.0.50.zip#sha256=b24314efa80532045a7d72a2ff1d713a6578e9d4ee6a0364b6651a557ada22a9,MarkupSafe==2.1.5,mypy==1.10.0,mypy-extensions==1.0.0,packaging==24.0,pbr==6.0.0,pdbpp==0.10.3,platformdirs==3.1.1,pluggy==1.0.0,pydantic==1.10.6,Pygments==2.17.2,pyrepl==0.9.0,pytest==7.4.4,python-dotenv==1.0.0,PyYAML==6.0,requests==2.28.2,requests-mock==1.12.1,requests-unixsocket==0.3.0,responses==0.23.1,six==1.16.0,systemfixtures==0.6.7,testtools==2.7.1,tomli==2.0.1,types-PyYAML==6.0.12.20240311,types-requests==2.31.0.6,types-urllib3==1.26.25.14,typing_extensions==4.5.0,urllib3==1.26.15,wmctrl==0.5 :: mypy run-test-pre: PYTHONHASHSEED='2142003842' :: mypy run-test: commands[0] | mypy --cache-dir=/build/lpci/project/.tox/mypy/mypy_cache --strict lpcraft :: Success: no issues found in 39 source files :: py38 create: /build/lpci/project/.tox/py38 :: py38 installdeps: -rrequirements.txt, .[test] :: py38 inst: /build/lpci/project/.tox/.tmp/package/1/lpcraft-0.0.50.zip :: py38 installed: attrs==23.2.0,certifi==2022.12.7,charset-normalizer==3.1.0,coverage==7.5.0,craft-cli==1.2.0,craft-providers==1.8.1,exceptiongroup==1.2.1,fakesleep==0.1,fancycompleter==0.9.1,fixtures==4.1.0,idna==3.4,iniconfig==2.0.0,Jinja2==3.1.3,lpcraft @ file:///build/lpci/project/.tox/.tmp/package/1/lpcraft-0.0.50.zip#sha256=b24314efa80532045a7d72a2ff1d713a6578e9d4ee6a0364b6651a557ada22a9,MarkupSafe==2.1.5,packaging==24.0,pbr==6.0.0,pdbpp==0.10.3,platformdirs==3.1.1,pluggy==1.0.0,pydantic==1.10.6,Pygments==2.17.2,pyrepl==0.9.0,pytest==7.4.4,python-dotenv==1.0.0,PyYAML==6.0,requests==2.28.2,requests-mock==1.12.1,requests-unixsocket==0.3.0,responses==0.23.1,six==1.16.0,systemfixtures==0.6.7,testtools==2.7.1,tomli==2.0.1,types-PyYAML==6.0.12.20240311,typing_extensions==4.5.0,urllib3==1.26.15,wmctrl==0.5 :: py38 run-test-pre: PYTHONHASHSEED='2142003842' :: py38 run-test: commands[0] | pytest :: ============================= test session starts ============================== :: platform linux -- Python 3.8.10, pytest-7.4.4, pluggy-1.0.0 :: cachedir: .tox/py38/.pytest_cache :: rootdir: /build/lpci/project :: plugins: requests-mock-1.12.1, craft-cli-1.2.0 :: collected 193 items :: :: lpcraft/commands/tests/test_clean.py .... [ 2%] :: lpcraft/commands/tests/test_run.py ..................................... [ 21%] :: ............................................. [ 44%] :: lpcraft/commands/tests/test_version.py ... [ 46%] :: lpcraft/plugin/tests/test_plugins.py .................... [ 56%] :: lpcraft/providers/tests/test_base.py ... [ 58%] :: lpcraft/providers/tests/test_buildd.py . [ 58%] :: lpcraft/providers/tests/test_get_provider.py . [ 59%] :: lpcraft/providers/tests/test_lxd.py ............................. [ 74%] :: lpcraft/tests/test_config.py ............................. [ 89%] :: lpcraft/tests/test_env.py .. [ 90%] :: lpcraft/tests/test_errors.py . [ 90%] :: lpcraft/tests/test_main.py ........ [ 94%] :: lpcraft/tests/test_utils.py .......... [100%] :: :: =============================== warnings summary =============================== :: .tox/py38/lib/python3.8/site-packages/craft_providers/lxd/lxd.py:24 :: /build/lpci/project/.tox/py38/lib/python3.8/site-packages/craft_providers/lxd/lxd.py:24: DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html :: import pkg_resources :: :: -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html :: ======================== 193 passed, 1 warning in 2.45s ======================== :: py39 create: /build/lpci/project/.tox/py39 :: SKIPPED: InterpreterNotFound: python3.9 :: py310 create: /build/lpci/project/.tox/py310 :: SKIPPED: InterpreterNotFound: python3.10 :: py311 create: /build/lpci/project/.tox/py311 :: SKIPPED: InterpreterNotFound: python3.11 :: coverage create: /build/lpci/project/.tox/coverage :: coverage installdeps: -rrequirements.txt, .[test] :: coverage inst: /build/lpci/project/.tox/.tmp/package/1/lpcraft-0.0.50.zip :: coverage installed: attrs==23.2.0,certifi==2022.12.7,charset-normalizer==3.1.0,coverage==7.5.0,craft-cli==1.2.0,craft-providers==1.8.1,exceptiongroup==1.2.1,fakesleep==0.1,fancycompleter==0.9.1,fixtures==4.1.0,idna==3.4,iniconfig==2.0.0,Jinja2==3.1.3,lpcraft @ file:///build/lpci/project/.tox/.tmp/package/1/lpcraft-0.0.50.zip#sha256=b24314efa80532045a7d72a2ff1d713a6578e9d4ee6a0364b6651a557ada22a9,MarkupSafe==2.1.5,packaging==24.0,pbr==6.0.0,pdbpp==0.10.3,platformdirs==3.1.1,pluggy==1.0.0,pydantic==1.10.6,Pygments==2.17.2,pyrepl==0.9.0,pytest==7.4.4,python-dotenv==1.0.0,PyYAML==6.0,requests==2.28.2,requests-mock==1.12.1,requests-unixsocket==0.3.0,responses==0.23.1,six==1.16.0,systemfixtures==0.6.7,testtools==2.7.1,tomli==2.0.1,types-PyYAML==6.0.12.20240311,typing_extensions==4.5.0,urllib3==1.26.15,wmctrl==0.5 :: coverage run-test-pre: PYTHONHASHSEED='2142003842' :: coverage run-test: commands[0] | coverage erase :: coverage run-test: commands[1] | coverage run -m pytest :: ============================= test session starts ============================== :: platform linux -- Python 3.8.10, pytest-7.4.4, pluggy-1.0.0 :: cachedir: .tox/coverage/.pytest_cache :: rootdir: /build/lpci/project :: plugins: requests-mock-1.12.1, craft-cli-1.2.0 :: collected 193 items :: :: lpcraft/commands/tests/test_clean.py .... [ 2%] :: lpcraft/commands/tests/test_run.py ..................................... [ 21%] :: ............................................. [ 44%] :: lpcraft/commands/tests/test_version.py ... [ 46%] :: lpcraft/plugin/tests/test_plugins.py .................... [ 56%] :: lpcraft/providers/tests/test_base.py ... [ 58%] :: lpcraft/providers/tests/test_buildd.py . [ 58%] :: lpcraft/providers/tests/test_get_provider.py . [ 59%] :: lpcraft/providers/tests/test_lxd.py ............................. [ 74%] :: lpcraft/tests/test_config.py ............................. [ 89%] :: lpcraft/tests/test_env.py .. [ 90%] :: lpcraft/tests/test_errors.py . [ 90%] :: lpcraft/tests/test_main.py ........ [ 94%] :: lpcraft/tests/test_utils.py .......... [100%] :: :: =============================== warnings summary =============================== :: .tox/coverage/lib/python3.8/site-packages/craft_providers/lxd/lxd.py:24 :: /build/lpci/project/.tox/coverage/lib/python3.8/site-packages/craft_providers/lxd/lxd.py:24: DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html :: import pkg_resources :: :: -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html :: ======================== 193 passed, 1 warning in 3.51s ======================== :: coverage run-test: commands[2] | coverage html :: Wrote HTML report to htmlcov/index.html :: coverage run-test: commands[3] | coverage report -m --fail-under=100 :: Name Stmts Miss Branch BrPart Cover Missing :: ------------------------------------------------------------------------------------------ :: lpcraft/__init__.py 0 0 0 0 100% :: lpcraft/_version.py 4 0 0 0 100% :: lpcraft/commands/__init__.py 0 0 0 0 100% :: lpcraft/commands/clean.py 21 0 0 0 100% :: lpcraft/commands/run.py 340 0 151 0 100% :: lpcraft/commands/tests/__init__.py 19 0 4 0 100% :: lpcraft/commands/tests/test_clean.py 42 0 2 0 100% :: lpcraft/commands/tests/test_run.py 1344 0 46 0 100% :: lpcraft/commands/tests/test_version.py 12 0 0 0 100% :: lpcraft/commands/version.py 11 0 0 0 100% :: lpcraft/config.py 190 0 54 0 100% :: lpcraft/env.py 6 0 0 0 100% :: lpcraft/errors.py 12 0 2 0 100% :: lpcraft/main.py 53 0 12 0 100% :: lpcraft/plugin/__init__.py 4 0 0 0 100% :: lpcraft/plugin/hookspecs.py 17 0 0 0 100% :: lpcraft/plugin/lib.py 17 0 4 0 100% :: lpcraft/plugin/manager.py 13 0 2 0 100% :: lpcraft/plugin/tests/__init__.py 0 0 0 0 100% :: lpcraft/plugin/tests/test_plugins.py 295 0 18 0 100% :: lpcraft/plugins/__init__.py 9 0 0 0 100% :: lpcraft/plugins/plugins.py 201 0 48 0 100% :: lpcraft/providers/__init__.py 5 0 0 0 100% :: lpcraft/providers/_base.py 32 0 4 0 100% :: lpcraft/providers/_buildd.py 11 0 2 0 100% :: lpcraft/providers/_lxd.py 112 0 18 0 100% :: lpcraft/providers/tests/__init__.py 27 0 8 0 100% :: lpcraft/providers/tests/test_base.py 5 0 0 0 100% :: lpcraft/providers/tests/test_buildd.py 7 0 0 0 100% :: lpcraft/providers/tests/test_get_provider.py 6 0 0 0 100% :: lpcraft/providers/tests/test_lxd.py 228 0 4 0 100% :: lpcraft/tests/__init__.py 0 0 0 0 100% :: lpcraft/tests/fixtures.py 22 0 4 0 100% :: lpcraft/tests/test_config.py 147 0 2 0 100% :: lpcraft/tests/test_env.py 8 0 0 0 100% :: lpcraft/tests/test_errors.py 5 0 0 0 100% :: lpcraft/tests/test_main.py 60 0 0 0 100% :: lpcraft/tests/test_utils.py 76 0 8 0 100% :: lpcraft/utils.py 33 0 12 0 100% :: ------------------------------------------------------------------------------------------ :: TOTAL 3394 0 405 0 100% :: docs create: /build/lpci/project/.tox/docs :: SKIPPED: InterpreterNotFound: python3.9 :: ___________________________________ summary ____________________________________ :: lint: commands succeeded :: mypy: commands succeeded :: py38: commands succeeded :: SKIPPED: py39: InterpreterNotFound: python3.9 :: SKIPPED: py310: InterpreterNotFound: python3.10 :: SKIPPED: py311: InterpreterNotFound: python3.11 :: coverage: commands succeeded :: SKIPPED: docs: InterpreterNotFound: python3.9 :: congratulations :)