lueschem / edi

Embedded development infrastructure.
https://www.get-edi.io
GNU Lesser General Public License v3.0
39 stars 12 forks source link

debuild -uc -us fails on python tests on Ubuntu 16.10 #2

Closed erickeller closed 7 years ago

erickeller commented 7 years ago

steps to reproduce: http://docs.get-edi.io/en/latest/getting_started.html#working-with-the-edi-source-code

lol@[~/workspace/edi]$ cat /etc/os-release                                                                            *[master] 
NAME="Ubuntu"
VERSION="16.10 (Yakkety Yak)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 16.10"
VERSION_ID="16.10"
HOME_URL="http://www.ubuntu.com/"
SUPPORT_URL="http://help.ubuntu.com/"
BUG_REPORT_URL="http://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="http://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
VERSION_CODENAME=yakkety
UBUNTU_CODENAME=yakkety
lol@[~/workspace/edi]$ debuild -us -uc                                                                                *[master] 
 dpkg-buildpackage -rfakeroot -D -us -uc
dpkg-buildpackage: info: source package edi
dpkg-buildpackage: info: source version 0.4.5
dpkg-buildpackage: info: source distribution xenial
dpkg-buildpackage: info: source changed by Matthias Lüscher (Launchpad) <m.luescher@datacomm.ch>
 dpkg-source --before-build edi
dpkg-buildpackage: info: host architecture amd64
 fakeroot debian/rules clean
dh clean --with python3,sphinxdoc --buildsystem=pybuild --fail-missing
   dh_testdir -O--buildsystem=pybuild -O--fail-missing
   dh_auto_clean -O--buildsystem=pybuild -O--fail-missing
I: pybuild base:184: python3.5 setup.py clean 
running clean
removing '/home/mariole/workspace/edi/.pybuild/pythonX.Y_3.5/build' (and everything under it)
'build/bdist.linux-x86_64' does not exist -- can't clean it
'build/scripts-3.5' does not exist -- can't clean it
   dh_clean -O--buildsystem=pybuild -O--fail-missing
 dpkg-source -b edi
dpkg-source: info: using source format '3.0 (native)'
dpkg-source: info: building edi in edi_0.4.5.tar.xz
dpkg-source: info: building edi in edi_0.4.5.dsc
 debian/rules build
dh build --with python3,sphinxdoc --buildsystem=pybuild --fail-missing
   dh_testdir -O--buildsystem=pybuild -O--fail-missing
   dh_update_autotools_config -O--buildsystem=pybuild -O--fail-missing
   dh_auto_configure -O--buildsystem=pybuild -O--fail-missing
I: pybuild base:184: python3.5 setup.py config 
running config
   debian/rules override_dh_auto_build
make[1]: Entering directory '/home/mariole/workspace/edi'
dh_auto_build
I: pybuild base:184: /usr/bin/python3 setup.py build 
running build
running build_py
creating /home/mariole/workspace/edi/.pybuild/pythonX.Y_3.5/build/edi
copying edi/__init__.py -> /home/mariole/workspace/edi/.pybuild/pythonX.Y_3.5/build/edi
creating /home/mariole/workspace/edi/.pybuild/pythonX.Y_3.5/build/tests
copying tests/__init__.py -> /home/mariole/workspace/edi/.pybuild/pythonX.Y_3.5/build/tests
copying tests/test_command_line_interface.py -> /home/mariole/workspace/edi/.pybuild/pythonX.Y_3.5/build/tests
creating /home/mariole/workspace/edi/.pybuild/pythonX.Y_3.5/build/edi/commands
copying edi/commands/__init__.py -> /home/mariole/workspace/edi/.pybuild/pythonX.Y_3.5/build/edi/commands
copying edi/commands/clean.py -> /home/mariole/workspace/edi/.pybuild/pythonX.Y_3.5/build/edi/commands
copying edi/commands/config.py -> /home/mariole/workspace/edi/.pybuild/pythonX.Y_3.5/build/edi/commands
copying edi/commands/image.py -> /home/mariole/workspace/edi/.pybuild/pythonX.Y_3.5/build/edi/commands
copying edi/commands/lxc.py -> /home/mariole/workspace/edi/.pybuild/pythonX.Y_3.5/build/edi/commands
copying edi/commands/qemu.py -> /home/mariole/workspace/edi/.pybuild/pythonX.Y_3.5/build/edi/commands
copying edi/commands/target.py -> /home/mariole/workspace/edi/.pybuild/pythonX.Y_3.5/build/edi/commands
copying edi/commands/version.py -> /home/mariole/workspace/edi/.pybuild/pythonX.Y_3.5/build/edi/commands
creating /home/mariole/workspace/edi/.pybuild/pythonX.Y_3.5/build/edi/lib
copying edi/lib/__init__.py -> /home/mariole/workspace/edi/.pybuild/pythonX.Y_3.5/build/edi/lib
copying edi/lib/archivehelpers.py -> /home/mariole/workspace/edi/.pybuild/pythonX.Y_3.5/build/edi/lib
copying edi/lib/commandfactory.py -> /home/mariole/workspace/edi/.pybuild/pythonX.Y_3.5/build/edi/lib
copying edi/lib/configurationhelpers.py -> /home/mariole/workspace/edi/.pybuild/pythonX.Y_3.5/build/edi/lib
copying edi/lib/configurationparser.py -> /home/mariole/workspace/edi/.pybuild/pythonX.Y_3.5/build/edi/lib
copying edi/lib/debhelpers.py -> /home/mariole/workspace/edi/.pybuild/pythonX.Y_3.5/build/edi/lib
copying edi/lib/edicommand.py -> /home/mariole/workspace/edi/.pybuild/pythonX.Y_3.5/build/edi/lib
copying edi/lib/helpers.py -> /home/mariole/workspace/edi/.pybuild/pythonX.Y_3.5/build/edi/lib
copying edi/lib/keyhelpers.py -> /home/mariole/workspace/edi/.pybuild/pythonX.Y_3.5/build/edi/lib
copying edi/lib/mockablerun.py -> /home/mariole/workspace/edi/.pybuild/pythonX.Y_3.5/build/edi/lib
copying edi/lib/networkhelpers.py -> /home/mariole/workspace/edi/.pybuild/pythonX.Y_3.5/build/edi/lib
copying edi/lib/playbookrunner.py -> /home/mariole/workspace/edi/.pybuild/pythonX.Y_3.5/build/edi/lib
copying edi/lib/sharedfoldercoordinator.py -> /home/mariole/workspace/edi/.pybuild/pythonX.Y_3.5/build/edi/lib
copying edi/lib/shellhelpers.py -> /home/mariole/workspace/edi/.pybuild/pythonX.Y_3.5/build/edi/lib
copying edi/lib/versionhelpers.py -> /home/mariole/workspace/edi/.pybuild/pythonX.Y_3.5/build/edi/lib
creating /home/mariole/workspace/edi/.pybuild/pythonX.Y_3.5/build/edi/commands/configcommands
copying edi/commands/configcommands/__init__.py -> /home/mariole/workspace/edi/.pybuild/pythonX.Y_3.5/build/edi/commands/configcommands
copying edi/commands/configcommands/configclean.py -> /home/mariole/workspace/edi/.pybuild/pythonX.Y_3.5/build/edi/commands/configcommands
copying edi/commands/configcommands/configinit.py -> /home/mariole/workspace/edi/.pybuild/pythonX.Y_3.5/build/edi/commands/configcommands
copying edi/commands/configcommands/configmerge.py -> /home/mariole/workspace/edi/.pybuild/pythonX.Y_3.5/build/edi/commands/configcommands
copying edi/commands/configcommands/configssh.py -> /home/mariole/workspace/edi/.pybuild/pythonX.Y_3.5/build/edi/commands/configcommands
creating /home/mariole/workspace/edi/.pybuild/pythonX.Y_3.5/build/edi/commands/imagecommands
copying edi/commands/imagecommands/__init__.py -> /home/mariole/workspace/edi/.pybuild/pythonX.Y_3.5/build/edi/commands/imagecommands
copying edi/commands/imagecommands/bootstrap.py -> /home/mariole/workspace/edi/.pybuild/pythonX.Y_3.5/build/edi/commands/imagecommands
copying edi/commands/imagecommands/imageclean.py -> /home/mariole/workspace/edi/.pybuild/pythonX.Y_3.5/build/edi/commands/imagecommands
copying edi/commands/imagecommands/imagelxc.py -> /home/mariole/workspace/edi/.pybuild/pythonX.Y_3.5/build/edi/commands/imagecommands
creating /home/mariole/workspace/edi/.pybuild/pythonX.Y_3.5/build/edi/commands/lxccommands
copying edi/commands/lxccommands/__init__.py -> /home/mariole/workspace/edi/.pybuild/pythonX.Y_3.5/build/edi/commands/lxccommands
copying edi/commands/lxccommands/importcmd.py -> /home/mariole/workspace/edi/.pybuild/pythonX.Y_3.5/build/edi/commands/lxccommands
copying edi/commands/lxccommands/launch.py -> /home/mariole/workspace/edi/.pybuild/pythonX.Y_3.5/build/edi/commands/lxccommands
copying edi/commands/lxccommands/lxcclean.py -> /home/mariole/workspace/edi/.pybuild/pythonX.Y_3.5/build/edi/commands/lxccommands
copying edi/commands/lxccommands/lxcconfigure.py -> /home/mariole/workspace/edi/.pybuild/pythonX.Y_3.5/build/edi/commands/lxccommands
copying edi/commands/lxccommands/profile.py -> /home/mariole/workspace/edi/.pybuild/pythonX.Y_3.5/build/edi/commands/lxccommands
creating /home/mariole/workspace/edi/.pybuild/pythonX.Y_3.5/build/edi/commands/qemucommands
copying edi/commands/qemucommands/__init__.py -> /home/mariole/workspace/edi/.pybuild/pythonX.Y_3.5/build/edi/commands/qemucommands
copying edi/commands/qemucommands/fetch.py -> /home/mariole/workspace/edi/.pybuild/pythonX.Y_3.5/build/edi/commands/qemucommands
copying edi/commands/qemucommands/qemuclean.py -> /home/mariole/workspace/edi/.pybuild/pythonX.Y_3.5/build/edi/commands/qemucommands
creating /home/mariole/workspace/edi/.pybuild/pythonX.Y_3.5/build/edi/commands/targetcommands
copying edi/commands/targetcommands/__init__.py -> /home/mariole/workspace/edi/.pybuild/pythonX.Y_3.5/build/edi/commands/targetcommands
copying edi/commands/targetcommands/targetconfigure.py -> /home/mariole/workspace/edi/.pybuild/pythonX.Y_3.5/build/edi/commands/targetcommands
creating /home/mariole/workspace/edi/.pybuild/pythonX.Y_3.5/build/tests/commands
copying tests/commands/__init__.py -> /home/mariole/workspace/edi/.pybuild/pythonX.Y_3.5/build/tests/commands
creating /home/mariole/workspace/edi/.pybuild/pythonX.Y_3.5/build/tests/lib
copying tests/lib/__init__.py -> /home/mariole/workspace/edi/.pybuild/pythonX.Y_3.5/build/tests/lib
copying tests/lib/test_archivehelpers.py -> /home/mariole/workspace/edi/.pybuild/pythonX.Y_3.5/build/tests/lib
copying tests/lib/test_configurationhelpers.py -> /home/mariole/workspace/edi/.pybuild/pythonX.Y_3.5/build/tests/lib
copying tests/lib/test_configurationparser.py -> /home/mariole/workspace/edi/.pybuild/pythonX.Y_3.5/build/tests/lib
copying tests/lib/test_debhelpers.py -> /home/mariole/workspace/edi/.pybuild/pythonX.Y_3.5/build/tests/lib
copying tests/lib/test_playbookrunner.py -> /home/mariole/workspace/edi/.pybuild/pythonX.Y_3.5/build/tests/lib
copying tests/lib/test_sharedfoldercoordinator.py -> /home/mariole/workspace/edi/.pybuild/pythonX.Y_3.5/build/tests/lib
creating /home/mariole/workspace/edi/.pybuild/pythonX.Y_3.5/build/tests/libtesting
copying tests/libtesting/__init__.py -> /home/mariole/workspace/edi/.pybuild/pythonX.Y_3.5/build/tests/libtesting
copying tests/libtesting/helpers.py -> /home/mariole/workspace/edi/.pybuild/pythonX.Y_3.5/build/tests/libtesting
creating /home/mariole/workspace/edi/.pybuild/pythonX.Y_3.5/build/tests/commands/configcommands
copying tests/commands/configcommands/__init__.py -> /home/mariole/workspace/edi/.pybuild/pythonX.Y_3.5/build/tests/commands/configcommands
copying tests/commands/configcommands/test_configmerge.py -> /home/mariole/workspace/edi/.pybuild/pythonX.Y_3.5/build/tests/commands/configcommands
creating /home/mariole/workspace/edi/.pybuild/pythonX.Y_3.5/build/tests/commands/imagecommands
copying tests/commands/imagecommands/__init__.py -> /home/mariole/workspace/edi/.pybuild/pythonX.Y_3.5/build/tests/commands/imagecommands
copying tests/commands/imagecommands/test_bootstrap.py -> /home/mariole/workspace/edi/.pybuild/pythonX.Y_3.5/build/tests/commands/imagecommands
creating /home/mariole/workspace/edi/.pybuild/pythonX.Y_3.5/build/tests/libtesting/fixtures
copying tests/libtesting/fixtures/__init__.py -> /home/mariole/workspace/edi/.pybuild/pythonX.Y_3.5/build/tests/libtesting/fixtures
copying tests/libtesting/fixtures/configfiles.py -> /home/mariole/workspace/edi/.pybuild/pythonX.Y_3.5/build/tests/libtesting/fixtures
copying tests/libtesting/fixtures/datadir.py -> /home/mariole/workspace/edi/.pybuild/pythonX.Y_3.5/build/tests/libtesting/fixtures
creating /home/mariole/workspace/edi/.pybuild/pythonX.Y_3.5/build/edi/plugins
creating /home/mariole/workspace/edi/.pybuild/pythonX.Y_3.5/build/edi/plugins/config_templates
copying edi/plugins/config_templates/debian-jessie-amd64.yml -> /home/mariole/workspace/edi/.pybuild/pythonX.Y_3.5/build/edi/plugins/config_templates
copying edi/plugins/config_templates/debian-stretch-amd64.yml -> /home/mariole/workspace/edi/.pybuild/pythonX.Y_3.5/build/edi/plugins/config_templates
creating /home/mariole/workspace/edi/.pybuild/pythonX.Y_3.5/build/edi/plugins/config_templates/project_tree
copying edi/plugins/config_templates/project_tree/PROJECTNAME-build.yml.edilink -> /home/mariole/workspace/edi/.pybuild/pythonX.Y_3.5/build/edi/plugins/config_templates/project_tree
copying edi/plugins/config_templates/project_tree/PROJECTNAME-develop.yml.edilink -> /home/mariole/workspace/edi/.pybuild/pythonX.Y_3.5/build/edi/plugins/config_templates/project_tree
copying edi/plugins/config_templates/project_tree/PROJECTNAME-run.yml.edilink -> /home/mariole/workspace/edi/.pybuild/pythonX.Y_3.5/build/edi/plugins/config_templates/project_tree
copying edi/plugins/config_templates/project_tree/PROJECTNAME-test.yml.edilink -> /home/mariole/workspace/edi/.pybuild/pythonX.Y_3.5/build/edi/plugins/config_templates/project_tree
creating /home/mariole/workspace/edi/.pybuild/pythonX.Y_3.5/build/edi/plugins/config_templates/project_tree/configuration
creating /home/mariole/workspace/edi/.pybuild/pythonX.Y_3.5/build/edi/plugins/config_templates/project_tree/configuration/base
copying edi/plugins/config_templates/project_tree/configuration/base/PROJECTNAME.yml -> /home/mariole/workspace/edi/.pybuild/pythonX.Y_3.5/build/edi/plugins/config_templates/project_tree/configuration/base
creating /home/mariole/workspace/edi/.pybuild/pythonX.Y_3.5/build/edi/plugins/config_templates/project_tree/configuration/overlay
copying edi/plugins/config_templates/project_tree/configuration/overlay/PROJECTNAME-build.global.yml -> /home/mariole/workspace/edi/.pybuild/pythonX.Y_3.5/build/edi/plugins/config_templates/project_tree/configuration/overlay
copying edi/plugins/config_templates/project_tree/configuration/overlay/PROJECTNAME-develop.global.yml -> /home/mariole/workspace/edi/.pybuild/pythonX.Y_3.5/build/edi/plugins/config_templates/project_tree/configuration/overlay
copying edi/plugins/config_templates/project_tree/configuration/overlay/PROJECTNAME-run.global.yml -> /home/mariole/workspace/edi/.pybuild/pythonX.Y_3.5/build/edi/plugins/config_templates/project_tree/configuration/overlay
copying edi/plugins/config_templates/project_tree/configuration/overlay/PROJECTNAME-test.global.yml -> /home/mariole/workspace/edi/.pybuild/pythonX.Y_3.5/build/edi/plugins/config_templates/project_tree/configuration/overlay
copying edi/plugins/config_templates/project_tree/gitignore.edihidden -> /home/mariole/workspace/edi/.pybuild/pythonX.Y_3.5/build/edi/plugins/config_templates/project_tree
creating /home/mariole/workspace/edi/.pybuild/pythonX.Y_3.5/build/edi/plugins/config_templates/project_tree/plugins
creating /home/mariole/workspace/edi/.pybuild/pythonX.Y_3.5/build/edi/plugins/config_templates/project_tree/plugins/playbooks
creating /home/mariole/workspace/edi/.pybuild/pythonX.Y_3.5/build/edi/plugins/config_templates/project_tree/plugins/playbooks/sample_playbook
copying edi/plugins/config_templates/project_tree/plugins/playbooks/sample_playbook/main.yml -> /home/mariole/workspace/edi/.pybuild/pythonX.Y_3.5/build/edi/plugins/config_templates/project_tree/plugins/playbooks/sample_playbook
creating /home/mariole/workspace/edi/.pybuild/pythonX.Y_3.5/build/edi/plugins/config_templates/project_tree/plugins/playbooks/sample_playbook/roles
creating /home/mariole/workspace/edi/.pybuild/pythonX.Y_3.5/build/edi/plugins/config_templates/project_tree/plugins/playbooks/sample_playbook/roles/sample_role
creating /home/mariole/workspace/edi/.pybuild/pythonX.Y_3.5/build/edi/plugins/config_templates/project_tree/plugins/playbooks/sample_playbook/roles/sample_role/tasks
copying edi/plugins/config_templates/project_tree/plugins/playbooks/sample_playbook/roles/sample_role/tasks/main.yml -> /home/mariole/workspace/edi/.pybuild/pythonX.Y_3.5/build/edi/plugins/config_templates/project_tree/plugins/playbooks/sample_playbook/roles/sample_role/tasks
copying edi/plugins/config_templates/raspbian-jessie-armhf.yml -> /home/mariole/workspace/edi/.pybuild/pythonX.Y_3.5/build/edi/plugins/config_templates
creating /home/mariole/workspace/edi/.pybuild/pythonX.Y_3.5/build/edi/plugins/lxc_profiles
creating /home/mariole/workspace/edi/.pybuild/pythonX.Y_3.5/build/edi/plugins/lxc_profiles/general
creating /home/mariole/workspace/edi/.pybuild/pythonX.Y_3.5/build/edi/plugins/lxc_profiles/general/lxc_networking
copying edi/plugins/lxc_profiles/general/lxc_networking/default_interface.yml -> /home/mariole/workspace/edi/.pybuild/pythonX.Y_3.5/build/edi/plugins/lxc_profiles/general/lxc_networking
creating /home/mariole/workspace/edi/.pybuild/pythonX.Y_3.5/build/edi/plugins/lxc_profiles/general/lxcif0
copying edi/plugins/lxc_profiles/general/lxcif0/lxcif0.yml -> /home/mariole/workspace/edi/.pybuild/pythonX.Y_3.5/build/edi/plugins/lxc_profiles/general/lxcif0
creating /home/mariole/workspace/edi/.pybuild/pythonX.Y_3.5/build/edi/plugins/lxc_templates
creating /home/mariole/workspace/edi/.pybuild/pythonX.Y_3.5/build/edi/plugins/lxc_templates/debian
creating /home/mariole/workspace/edi/.pybuild/pythonX.Y_3.5/build/edi/plugins/lxc_templates/debian/hostname
copying edi/plugins/lxc_templates/debian/hostname/hostname.tpl -> /home/mariole/workspace/edi/.pybuild/pythonX.Y_3.5/build/edi/plugins/lxc_templates/debian/hostname
copying edi/plugins/lxc_templates/debian/hostname/hostname.yml -> /home/mariole/workspace/edi/.pybuild/pythonX.Y_3.5/build/edi/plugins/lxc_templates/debian/hostname
creating /home/mariole/workspace/edi/.pybuild/pythonX.Y_3.5/build/edi/plugins/lxc_templates/debian/hosts
copying edi/plugins/lxc_templates/debian/hosts/hosts.tpl -> /home/mariole/workspace/edi/.pybuild/pythonX.Y_3.5/build/edi/plugins/lxc_templates/debian/hosts
copying edi/plugins/lxc_templates/debian/hosts/hosts.yml -> /home/mariole/workspace/edi/.pybuild/pythonX.Y_3.5/build/edi/plugins/lxc_templates/debian/hosts
creating /home/mariole/workspace/edi/.pybuild/pythonX.Y_3.5/build/edi/plugins/playbooks
creating /home/mariole/workspace/edi/.pybuild/pythonX.Y_3.5/build/edi/plugins/playbooks/debian
creating /home/mariole/workspace/edi/.pybuild/pythonX.Y_3.5/build/edi/plugins/playbooks/debian/base_system
copying edi/plugins/playbooks/debian/base_system/main.yml -> /home/mariole/workspace/edi/.pybuild/pythonX.Y_3.5/build/edi/plugins/playbooks/debian/base_system
creating /home/mariole/workspace/edi/.pybuild/pythonX.Y_3.5/build/edi/plugins/playbooks/debian/base_system/roles
creating /home/mariole/workspace/edi/.pybuild/pythonX.Y_3.5/build/edi/plugins/playbooks/debian/base_system/roles/apt_setup
creating /home/mariole/workspace/edi/.pybuild/pythonX.Y_3.5/build/edi/plugins/playbooks/debian/base_system/roles/apt_setup/tasks
copying edi/plugins/playbooks/debian/base_system/roles/apt_setup/tasks/main.yml -> /home/mariole/workspace/edi/.pybuild/pythonX.Y_3.5/build/edi/plugins/playbooks/debian/base_system/roles/apt_setup/tasks
creating /home/mariole/workspace/edi/.pybuild/pythonX.Y_3.5/build/edi/plugins/playbooks/debian/development_user_facilities
copying edi/plugins/playbooks/debian/development_user_facilities/main.yml -> /home/mariole/workspace/edi/.pybuild/pythonX.Y_3.5/build/edi/plugins/playbooks/debian/development_user_facilities
creating /home/mariole/workspace/edi/.pybuild/pythonX.Y_3.5/build/edi/plugins/playbooks/debian/development_user_facilities/roles
creating /home/mariole/workspace/edi/.pybuild/pythonX.Y_3.5/build/edi/plugins/playbooks/debian/development_user_facilities/roles/host_user_as_target_user
creating /home/mariole/workspace/edi/.pybuild/pythonX.Y_3.5/build/edi/plugins/playbooks/debian/development_user_facilities/roles/host_user_as_target_user/tasks
copying edi/plugins/playbooks/debian/development_user_facilities/roles/host_user_as_target_user/tasks/main.yml -> /home/mariole/workspace/edi/.pybuild/pythonX.Y_3.5/build/edi/plugins/playbooks/debian/development_user_facilities/roles/host_user_as_target_user/tasks
creating /home/mariole/workspace/edi/.pybuild/pythonX.Y_3.5/build/edi/plugins/playbooks/debian/development_user_facilities/roles/host_user_as_target_user/templates
copying edi/plugins/playbooks/debian/development_user_facilities/roles/host_user_as_target_user/templates/no_passwd -> /home/mariole/workspace/edi/.pybuild/pythonX.Y_3.5/build/edi/plugins/playbooks/debian/development_user_facilities/roles/host_user_as_target_user/templates
creating /home/mariole/workspace/edi/.pybuild/pythonX.Y_3.5/build/edi/plugins/playbooks/debian/development_user_facilities/roles/shared_folder_mountpoints
creating /home/mariole/workspace/edi/.pybuild/pythonX.Y_3.5/build/edi/plugins/playbooks/debian/development_user_facilities/roles/shared_folder_mountpoints/tasks
copying edi/plugins/playbooks/debian/development_user_facilities/roles/shared_folder_mountpoints/tasks/main.yml -> /home/mariole/workspace/edi/.pybuild/pythonX.Y_3.5/build/edi/plugins/playbooks/debian/development_user_facilities/roles/shared_folder_mountpoints/tasks
creating /home/mariole/workspace/edi/.pybuild/pythonX.Y_3.5/build/edi/plugins/playbooks/debian/inherit_host_proxy_settings
copying edi/plugins/playbooks/debian/inherit_host_proxy_settings/main.yml -> /home/mariole/workspace/edi/.pybuild/pythonX.Y_3.5/build/edi/plugins/playbooks/debian/inherit_host_proxy_settings
creating /home/mariole/workspace/edi/.pybuild/pythonX.Y_3.5/build/edi/plugins/playbooks/debian/inherit_host_proxy_settings/roles
creating /home/mariole/workspace/edi/.pybuild/pythonX.Y_3.5/build/edi/plugins/playbooks/debian/inherit_host_proxy_settings/roles/inherit_host_proxy_settings
creating /home/mariole/workspace/edi/.pybuild/pythonX.Y_3.5/build/edi/plugins/playbooks/debian/inherit_host_proxy_settings/roles/inherit_host_proxy_settings/tasks
copying edi/plugins/playbooks/debian/inherit_host_proxy_settings/roles/inherit_host_proxy_settings/tasks/main.yml -> /home/mariole/workspace/edi/.pybuild/pythonX.Y_3.5/build/edi/plugins/playbooks/debian/inherit_host_proxy_settings/roles/inherit_host_proxy_settings/tasks
creating /home/mariole/workspace/edi/.pybuild/pythonX.Y_3.5/build/edi/plugins/playbooks/debian/inherit_host_proxy_settings/roles/inherit_host_proxy_settings/vars
copying edi/plugins/playbooks/debian/inherit_host_proxy_settings/roles/inherit_host_proxy_settings/vars/main.yml -> /home/mariole/workspace/edi/.pybuild/pythonX.Y_3.5/build/edi/plugins/playbooks/debian/inherit_host_proxy_settings/roles/inherit_host_proxy_settings/vars
creating /home/mariole/workspace/edi/.pybuild/pythonX.Y_3.5/build/edi/plugins/playbooks/debian/lxc_networking
copying edi/plugins/playbooks/debian/lxc_networking/main.yml -> /home/mariole/workspace/edi/.pybuild/pythonX.Y_3.5/build/edi/plugins/playbooks/debian/lxc_networking
creating /home/mariole/workspace/edi/.pybuild/pythonX.Y_3.5/build/edi/plugins/playbooks/debian/lxc_networking/roles
creating /home/mariole/workspace/edi/.pybuild/pythonX.Y_3.5/build/edi/plugins/playbooks/debian/lxc_networking/roles/lxc_interfaces
creating /home/mariole/workspace/edi/.pybuild/pythonX.Y_3.5/build/edi/plugins/playbooks/debian/lxc_networking/roles/lxc_interfaces/tasks
copying edi/plugins/playbooks/debian/lxc_networking/roles/lxc_interfaces/tasks/main.yml -> /home/mariole/workspace/edi/.pybuild/pythonX.Y_3.5/build/edi/plugins/playbooks/debian/lxc_networking/roles/lxc_interfaces/tasks
creating /home/mariole/workspace/edi/.pybuild/pythonX.Y_3.5/build/edi/plugins/playbooks/debian/lxc_networking/roles/lxc_interfaces/templates
copying edi/plugins/playbooks/debian/lxc_networking/roles/lxc_interfaces/templates/default_interface.j2 -> /home/mariole/workspace/edi/.pybuild/pythonX.Y_3.5/build/edi/plugins/playbooks/debian/lxc_networking/roles/lxc_interfaces/templates
creating /home/mariole/workspace/edi/.pybuild/pythonX.Y_3.5/build/tests/data
creating /home/mariole/workspace/edi/.pybuild/pythonX.Y_3.5/build/tests/data/test_debhelpers
copying tests/data/test_debhelpers/Release -> /home/mariole/workspace/edi/.pybuild/pythonX.Y_3.5/build/tests/data/test_debhelpers
copying tests/data/test_debhelpers/binary-all_Packages -> /home/mariole/workspace/edi/.pybuild/pythonX.Y_3.5/build/tests/data/test_debhelpers
copying tests/data/test_debhelpers/binary-amd64_Packages -> /home/mariole/workspace/edi/.pybuild/pythonX.Y_3.5/build/tests/data/test_debhelpers
creating /home/mariole/workspace/edi/.pybuild/pythonX.Y_3.5/build/tests/data/test_debhelpers/foo-1.0
creating /home/mariole/workspace/edi/.pybuild/pythonX.Y_3.5/build/tests/data/test_debhelpers/foo-1.0/bin
copying tests/data/test_debhelpers/foo-1.0/bin/foo -> /home/mariole/workspace/edi/.pybuild/pythonX.Y_3.5/build/tests/data/test_debhelpers/foo-1.0/bin
creating /home/mariole/workspace/edi/.pybuild/pythonX.Y_3.5/build/tests/data/test_debhelpers/foo-1.0/debian
copying tests/data/test_debhelpers/foo-1.0/debian/changelog -> /home/mariole/workspace/edi/.pybuild/pythonX.Y_3.5/build/tests/data/test_debhelpers/foo-1.0/debian
copying tests/data/test_debhelpers/foo-1.0/debian/compat -> /home/mariole/workspace/edi/.pybuild/pythonX.Y_3.5/build/tests/data/test_debhelpers/foo-1.0/debian
copying tests/data/test_debhelpers/foo-1.0/debian/control -> /home/mariole/workspace/edi/.pybuild/pythonX.Y_3.5/build/tests/data/test_debhelpers/foo-1.0/debian
copying tests/data/test_debhelpers/foo-1.0/debian/copyright -> /home/mariole/workspace/edi/.pybuild/pythonX.Y_3.5/build/tests/data/test_debhelpers/foo-1.0/debian
copying tests/data/test_debhelpers/foo-1.0/debian/foo.install -> /home/mariole/workspace/edi/.pybuild/pythonX.Y_3.5/build/tests/data/test_debhelpers/foo-1.0/debian
copying tests/data/test_debhelpers/foo-1.0/debian/rules -> /home/mariole/workspace/edi/.pybuild/pythonX.Y_3.5/build/tests/data/test_debhelpers/foo-1.0/debian
creating /home/mariole/workspace/edi/.pybuild/pythonX.Y_3.5/build/tests/data/test_debhelpers/foo-1.0/debian/source
copying tests/data/test_debhelpers/foo-1.0/debian/source/format -> /home/mariole/workspace/edi/.pybuild/pythonX.Y_3.5/build/tests/data/test_debhelpers/foo-1.0/debian/source
copying tests/data/test_debhelpers/foo_1.0_amd64.deb -> /home/mariole/workspace/edi/.pybuild/pythonX.Y_3.5/build/tests/data/test_debhelpers
copying tests/data/test_debhelpers/test-archive-key.asc -> /home/mariole/workspace/edi/.pybuild/pythonX.Y_3.5/build/tests/data/test_debhelpers
copying tests/data/test_debhelpers/test-pubring.gpg -> /home/mariole/workspace/edi/.pybuild/pythonX.Y_3.5/build/tests/data/test_debhelpers
copying tests/data/test_debhelpers/test-secring.gpg -> /home/mariole/workspace/edi/.pybuild/pythonX.Y_3.5/build/tests/data/test_debhelpers
PYTHONPATH=. http_proxy='127.0.0.1:9' sphinx-build -N -bman docs/ build/man # Manpage generator
Running Sphinx v1.4.8
making output directory...
loading pickled environment... not yet created
building [mo]: targets for 0 po files that are out of date
building [man]: all manpages
updating environment: 5 added, 0 changed, 0 removed
reading sources... [ 20%] command_cheat_sheet
reading sources... [ 40%] getting_started
reading sources... [ 60%] index
reading sources... [ 80%] introduction
reading sources... [100%] reference_list

looking for now-outdated files... none found
pickling environment... done
checking consistency... done
writing... edi.1 { introduction getting_started reference_list command_cheat_sheet } 
build succeeded.
make[1]: Leaving directory '/home/mariole/workspace/edi'
   dh_auto_test -O--buildsystem=pybuild -O--fail-missing
I: pybuild base:184: cd /home/mariole/workspace/edi/.pybuild/pythonX.Y_3.5/build; python3.5 -m pytest tests
============================= test session starts ==============================
platform linux -- Python 3.5.2+, pytest-2.9.2, py-1.4.31, pluggy-0.3.1
rootdir: /home/mariole/workspace/edi, inifile: 
collected 26 items

tests/test_command_line_interface.py .
tests/commands/configcommands/test_configmerge.py .
tests/commands/imagecommands/test_bootstrap.py .
tests/lib/test_archivehelpers.py .
tests/lib/test_configurationhelpers.py ..
tests/lib/test_configurationparser.py .....
tests/lib/test_debhelpers.py .F
tests/lib/test_playbookrunner.py .
tests/lib/test_sharedfoldercoordinator.py ............

=================================== FAILURES ===================================
________________________ test_package_download_with_key ________________________

datadir = local('/tmp/pytest-of-mariole/pytest-1/test_package_download_with_key0')

    def test_package_download_with_key(datadir):
>       do_package_download(datadir, 'https://www.example.com/keys/test-archive-key.asc')

tests/lib/test_debhelpers.py:155: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tests/lib/test_debhelpers.py:129: in do_package_download
    repository_mock.sign_release()
tests/lib/test_debhelpers.py:106: in sign_release
    subprocess.run(cmd, input=None, timeout=None, check=True)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

input = None, timeout = None, check = True
popenargs = (['gpg', '--batch', '--yes', '--homedir', '/tmp/pytest-of-mariole/pytest-1/test_package_download_with_key0', '--no-default-keyring', ...],)
kwargs = {}, process = <subprocess.Popen object at 0x7f9abccb8860>
stdout = None, stderr = None, retcode = 2

    def run(*popenargs, input=None, timeout=None, check=False, **kwargs):
        """Run command with arguments and return a CompletedProcess instance.

        The returned instance will have attributes args, returncode, stdout and
        stderr. By default, stdout and stderr are not captured, and those attributes
        will be None. Pass stdout=PIPE and/or stderr=PIPE in order to capture them.

        If check is True and the exit code was non-zero, it raises a
        CalledProcessError. The CalledProcessError object will have the return code
        in the returncode attribute, and output & stderr attributes if those streams
        were captured.

        If timeout is given, and the process takes too long, a TimeoutExpired
        exception will be raised.

        There is an optional argument "input", allowing you to
        pass a string to the subprocess's stdin.  If you use this argument
        you may not also use the Popen constructor's "stdin" argument, as
        it will be used internally.

        The other arguments are the same as for the Popen constructor.

        If universal_newlines=True is passed, the "input" argument must be a
        string and stdout/stderr in the returned object will be strings rather than
        bytes.
        """
        if input is not None:
            if 'stdin' in kwargs:
                raise ValueError('stdin and input arguments may not both be used.')
            kwargs['stdin'] = PIPE

        with Popen(*popenargs, **kwargs) as process:
            try:
                stdout, stderr = process.communicate(input, timeout=timeout)
            except TimeoutExpired:
                process.kill()
                stdout, stderr = process.communicate()
                raise TimeoutExpired(process.args, timeout, output=stdout,
                                     stderr=stderr)
            except:
                process.kill()
                process.wait()
                raise
            retcode = process.poll()
            if check and retcode:
                raise CalledProcessError(retcode, process.args,
>                                        output=stdout, stderr=stderr)
E               subprocess.CalledProcessError: Command '['gpg', '--batch', '--yes', '--homedir', '/tmp/pytest-of-mariole/pytest-1/test_package_download_with_key0', '--no-default-keyring', '--secret-keyring', '/tmp/pytest-of-mariole/pytest-1/test_package_download_with_key0/test-secring.gpg', '--keyring', '/tmp/pytest-of-mariole/pytest-1/test_package_download_with_key0/test-pubring.gpg', '--digest-algo', 'SHA256', '-abs', '-o', '/tmp/pytest-of-mariole/pytest-1/test_package_download_with_key0/Release.gpg', '/tmp/pytest-of-mariole/pytest-1/test_package_download_with_key0/Release']' returned non-zero exit status 2

/usr/lib/python3.5/subprocess.py:708: CalledProcessError
----------------------------- Captured stderr call -----------------------------
gpg: WARNING: unsafe permissions on homedir '/tmp/pytest-of-mariole/pytest-1/test_package_download_with_key0'
gpg: /tmp/pytest-of-mariole/pytest-1/test_package_download_with_key0/trustdb.gpg: trustdb created
gpg: no default secret key: No secret key
gpg: signing failed: No secret key
===================== 1 failed, 25 passed in 2.10 seconds ======================
E: pybuild pybuild:276: test: plugin distutils failed with: exit code=1: cd /home/mariole/workspace/edi/.pybuild/pythonX.Y_3.5/build; python3.5 -m pytest tests
dh_auto_test: pybuild --test --test-pytest -i python{version} -p 3.5 returned exit code 13
debian/rules:6: recipe for target 'build' failed
make: *** [build] Error 25
dpkg-buildpackage: error: debian/rules build gave error exit status 2
debuild: fatal error at line 1376:
dpkg-buildpackage -rfakeroot -D -us -uc failed

I did not dig into the python failure but it seems to be something related to some url pointing to https://www.example.com/keys/test-archive-key.asc which is not really hosting any asc file...

lueschem commented 7 years ago

Thanks for reporting this issue!

The URL https://www.example.com/keys/test-archive-key.asc should be handled by python3-requests-mock. However, Ubuntu 16.10 has a newer version of python3-requests-mock and this probably requires some changes in the test code. I will try to reproduce and fix this issue.

lueschem commented 7 years ago

Issue is reproducible using this container: https://github.com/lueschem/edi-ubuntu-yakkety