-
Notifications
You must be signed in to change notification settings - Fork 11
Open
Description
I have noticed several times that test_build_libhif fail sometimes magically ... I have run tests three times and the third time they failed. This (I am almost sure) is not caused by #358
13/17 Testing: ~/Projects/rpg/tests/mock_build/test_build_libhif.py
13/17 Test: ~/Projects/rpg/tests/mock_build/test_build_libhif.py
Command: "/usr/bin/nosetests-3.4" "~/Projects/rpg/tests/mock_build/test_build_libhif.py" "-w" "~/Projects/rpg"
Directory: ~/Projects/rpg/build/tests/mock_build
"~/Projects/rpg/tests/mock_build/test_build_libhif.py" start time: Feb 06 14:46 CET
Output:
----------------------------------------------------------
lchmod (file attributes) error: Function not implemented
lchmod (file attributes) error: Function not implemented
INFO: mock.py version 1.2.14 starting (python version = 3.4.2)...
Start: init plugins
INFO: selinux enabled
Finish: init plugins
Start: run
Start: clean chroot
Finish: clean chroot
Start: chroot init
INFO: calling preinit hooks
INFO: enabled root cache
Start: unpacking root cache
Finish: unpacking root cache
INFO: enabled yum cache
Start: cleaning yum metadata
Finish: cleaning yum metadata
INFO: enabled ccache
Mock Version: 1.2.14
INFO: Mock Version: 1.2.14
Finish: chroot init
Finish: run
configure.ac:14: installing './compile'
configure.ac:58: installing './config.guess'
configure.ac:58: installing './config.sub'
configure.ac:11: installing './install-sh'
configure.ac:11: installing './missing'
libhif/Makefile.am: installing './depcomp'
parallel-tests: installing './test-driver'
In file included from hif-db.c:45:0:
hif-db.c: In function 'hif_db_remove_all':
hif-cleanup.h:58:59: warning: 'file_tmp' may be used uninitialized in this function [-Wmaybe-uninitialized]
GS_DEFINE_CLEANUP_FUNCTION0(GObject*, gs_local_obj_unref, g_object_unref)
^
hif-db.c:357:33: note: 'file_tmp' was declared here
_cleanup_object_unref_ GFile *file_tmp;
^
In file included from hif-db.c:45:0:
hif-cleanup.h:69:50: warning: 'index_file' may be used uninitialized in this function [-Wmaybe-uninitialized]
GS_DEFINE_CLEANUP_FUNCTION(void*, gs_local_free, g_free)
^
hif-db.c:356:25: note: 'index_file' was declared here
_cleanup_free_ gchar *index_file;
^
In file included from hif-keyring.c:41:0:
hif-keyring.c: In function 'hif_keyring_add_public_keys':
hif-cleanup.h:53:56: warning: 'dir' may be used uninitialized in this function [-Wmaybe-uninitialized]
GS_DEFINE_CLEANUP_FUNCTION0(GDir*, gs_local_dir_close, g_dir_close)
^
hif-keyring.c:172:28: note: 'dir' was declared here
_cleanup_dir_close_ GDir *dir;
^
In file included from hif-repos.c:41:0:
hif-repos.c: In function 'hif_repos_refresh':
hif-cleanup.h:39:8: warning: 'keyfile' may be used uninitialized in this function [-Wmaybe-uninitialized]
if (*(Type*)v) \
^
hif-repos.c:389:36: note: 'keyfile' was declared here
_cleanup_keyfile_unref_ GKeyFile *keyfile;
^
In file included from hif-repos.c:41:0:
hif-cleanup.h:69:50: warning: 'treeinfo_fn' may be used uninitialized in this function [-Wmaybe-uninitialized]
GS_DEFINE_CLEANUP_FUNCTION(void*, gs_local_free, g_free)
^
hif-repos.c:197:24: note: 'treeinfo_fn' was declared here
_cleanup_free_ gchar *treeinfo_fn;
^
In file included from hif-repos.c:41:0:
hif-cleanup.h:56:64: warning: 'treeinfo' may be used uninitialized in this function [-Wmaybe-uninitialized]
GS_DEFINE_CLEANUP_FUNCTION0(GKeyFile*, gs_local_keyfile_unref, g_key_file_unref)
^
hif-repos.c:155:36: note: 'treeinfo' was declared here
_cleanup_keyfile_unref_ GKeyFile *treeinfo;
^
In file included from hif-repos.c:41:0:
hif-cleanup.h:69:50: warning: 'treeinfo_fn' may be used uninitialized in this function [-Wmaybe-uninitialized]
GS_DEFINE_CLEANUP_FUNCTION(void*, gs_local_free, g_free)
^
hif-repos.c:154:24: note: 'treeinfo_fn' was declared here
_cleanup_free_ gchar *treeinfo_fn;
^
In file included from hif-repos.c:41:0:
hif-cleanup.h:69:50: warning: 'tmp' may be used uninitialized in this function [-Wmaybe-uninitialized]
GS_DEFINE_CLEANUP_FUNCTION(void*, gs_local_free, g_free)
^
hif-repos.c:173:25: note: 'tmp' was declared here
_cleanup_free_ gchar *tmp;
^
In file included from hif-repos.c:41:0:
hif-cleanup.h:58:59: warning: 'source' may be used uninitialized in this function [-Wmaybe-uninitialized]
GS_DEFINE_CLEANUP_FUNCTION0(GObject*, gs_local_obj_unref, g_object_unref)
^
hif-repos.c:341:36: note: 'source' was declared here
_cleanup_object_unref_ HifSource *source;
^
In file included from hif-source.c:49:0:
hif-source.c: In function 'hif_source_get_description':
hif-cleanup.h:69:50: warning: 'tmp' may be used uninitialized in this function [-Wmaybe-uninitialized]
GS_DEFINE_CLEANUP_FUNCTION(void*, gs_local_free, g_free)
^
hif-source.c:255:24: note: 'tmp' was declared here
_cleanup_free_ gchar *tmp;
^
In file included from hif-source.c:49:0:
hif-source.c: In function 'hif_source_check':
hif-cleanup.h:58:59: warning: 'info' may be used uninitialized in this function [-Wmaybe-uninitialized]
GS_DEFINE_CLEANUP_FUNCTION0(GObject*, gs_local_obj_unref, g_object_unref)
^
hif-source.c:970:36: note: 'info' was declared here
_cleanup_object_unref_ GFileInfo *info;
^
In file included from hif-source.c:49:0:
hif-cleanup.h:58:59: warning: 'file' may be used uninitialized in this function [-Wmaybe-uninitialized]
GS_DEFINE_CLEANUP_FUNCTION0(GObject*, gs_local_obj_unref, g_object_unref)
^
hif-source.c:969:32: note: 'file' was declared here
_cleanup_object_unref_ GFile *file;
^
In file included from hif-source.c:49:0:
hif-cleanup.h:69:50: warning: 'filename' may be used uninitialized in this function [-Wmaybe-uninitialized]
GS_DEFINE_CLEANUP_FUNCTION(void*, gs_local_free, g_free)
^
hif-source.c:968:24: note: 'filename' was declared here
_cleanup_free_ gchar *filename;
^
In file included from hif-source.c:49:0:
hif-source.c: In function 'hif_source_download_package':
hif-cleanup.h:58:59: warning: 'file_source' may be used uninitialized in this function [-Wmaybe-uninitialized]
GS_DEFINE_CLEANUP_FUNCTION0(GObject*, gs_local_obj_unref, g_object_unref)
^
hif-source.c:1611:32: note: 'file_source' was declared here
_cleanup_object_unref_ GFile *file_source;
^
In file included from hif-source.c:49:0:
hif-cleanup.h:58:59: warning: 'file_dest' may be used uninitialized in this function [-Wmaybe-uninitialized]
GS_DEFINE_CLEANUP_FUNCTION0(GObject*, gs_local_obj_unref, g_object_unref)
^
hif-source.c:1610:32: note: 'file_dest' was declared here
_cleanup_object_unref_ GFile *file_dest;
^
In file included from hif-utils.c:39:0:
hif-utils.c: In function 'hif_remove_recursive':
hif-cleanup.h:53:56: warning: 'dir' may be used uninitialized in this function [-Wmaybe-uninitialized]
GS_DEFINE_CLEANUP_FUNCTION0(GDir*, gs_local_dir_close, g_dir_close)
^
hif-utils.c:188:28: note: 'dir' was declared here
_cleanup_dir_close_ GDir *dir;
^
In file included from hif-transaction.c:42:0:
hif-transaction.c: In function 'hif_transaction_commit':
hif-cleanup.h:58:59: warning: 'file' may be used uninitialized in this function [-Wmaybe-uninitialized]
GS_DEFINE_CLEANUP_FUNCTION0(GObject*, gs_local_obj_unref, g_object_unref)
^
hif-transaction.c:870:34: note: 'file' was declared here
_cleanup_object_unref_ GFile *file;
^
In file included from hif-transaction.c:42:0:
hif-cleanup.h:59:66: warning: 'install' may be used uninitialized in this function [-Wmaybe-uninitialized]
GS_DEFINE_CLEANUP_FUNCTION0(GPtrArray*, gs_local_ptrarray_unref, g_ptr_array_unref)
^
hif-transaction.c:344:38: note: 'install' was declared here
_cleanup_ptrarray_unref_ GPtrArray *install;
^
ar: `u' modifier ignored since `D' is the default (see `U')
libtool: install: warning: remember to run `libtool --finish /usr/lib64'
Nothing to install
EE
======================================================================
ERROR: test_libhif (test_build_libhif.BuildTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "~/Projects/rpg/tests/mock_build/test_build_libhif.py", line 36, in test_libhif
self.base.target_distro, self.base.target_arch)
File "~/Projects/rpg/rpg/__init__.py", line 268, in build_rpm_recover
.format(self._package_builder.mock_logs))
nose.proxy.RuntimeError: Build failed! See logs in '/tmp/rpg-downloaded-af27a3b/mock_logs'
-------------------- >> begin captured logging << --------------------
root: INFO: DNF sack is loading
dnf: DEBUG: repo: using cache for: fedora-steam
dnf: DEBUG: not found deltainfo for: negativo17 - Steam
dnf: DEBUG: not found updateinfo for: negativo17 - Steam
dnf: DEBUG: repo: using cache for: virtualbox
dnf: DEBUG: not found deltainfo for: Fedora 22 - x86_64 - VirtualBox
dnf: DEBUG: not found updateinfo for: Fedora 22 - x86_64 - VirtualBox
dnf: DEBUG: repo: using cache for: adobe-linux-x86_64
dnf: DEBUG: not found deltainfo for: Adobe Systems Incorporated
dnf: DEBUG: not found updateinfo for: Adobe Systems Incorporated
dnf: DEBUG: repo: using cache for: updates
dnf: DEBUG: repo: using cache for: rpmfusion-free
dnf: DEBUG: not found deltainfo for: RPM Fusion for Fedora 22 - Free
dnf: DEBUG: not found updateinfo for: RPM Fusion for Fedora 22 - Free
dnf: DEBUG: repo: using cache for: fedora-spotify
dnf: DEBUG: not found deltainfo for: negativo17 - Spotify
dnf: DEBUG: not found updateinfo for: negativo17 - Spotify
dnf: DEBUG: repo: using cache for: rpmfusion-free-updates
dnf: DEBUG: not found deltainfo for: RPM Fusion for Fedora 22 - Free - Updates
dnf: DEBUG: not found updateinfo for: RPM Fusion for Fedora 22 - Free - Updates
dnf: DEBUG: repo: using cache for: google-chrome
dnf: DEBUG: not found deltainfo for: google-chrome
dnf: DEBUG: not found updateinfo for: google-chrome
dnf: DEBUG: repo: using cache for: playonlinux
dnf: DEBUG: not found deltainfo for: PlayOnLinux Official repository
dnf: DEBUG: not found updateinfo for: PlayOnLinux Official repository
dnf: DEBUG: repo: using cache for: fedora
dnf: DEBUG: not found deltainfo for: Fedora 22 - x86_64
dnf: DEBUG: not found updateinfo for: Fedora 22 - x86_64
dnf: Level 8: timer: sack setup: 377 ms
dnf: Level 8: Cleaning up.
root: INFO: plugin PythonPlugin loaded (rpg.plugins.lang.python)
root: INFO: plugin CPlugin loaded (rpg.plugins.lang.c)
root: INFO: plugin FindPatchPlugin loaded (rpg.plugins.misc.find_patch)
root: INFO: plugin FindTranslationPlugin loaded (rpg.plugins.misc.find_translation)
root: INFO: plugin FilesToPkgsPlugin loaded (rpg.plugins.misc.files_to_pkgs)
root: INFO: plugin FindLibraryPlugin loaded (rpg.plugins.misc.find_library)
root: INFO: plugin FindFilePlugin loaded (rpg.plugins.misc.find_file)
root: INFO: plugin MakePlugin loaded (rpg.plugins.project_builder.make)
root: INFO: plugin AutotoolsPlugin loaded (rpg.plugins.project_builder.autotools)
root: INFO: plugin CMakePlugin loaded (rpg.plugins.project_builder.cmake)
root: INFO: plugin MavenPlugin loaded (rpg.plugins.project_builder.maven)
root: INFO: plugin SetuptoolsPlugin loaded (rpg.plugins.project_builder.setuptools)
root: INFO: plugin NpmPlugin loaded (rpg.plugins.project_builder.npm)
root: INFO: plugin BashCommandPlugin loaded (rpg.plugins.recover.bash_command)
root: INFO: plugin TarPlugin loaded (rpg.plugins.source_loader.tar)
root: INFO: plugin DownloadPlugin loaded (rpg.plugins.source_loader.download)
root: INFO: plugin GithubDownloadPlugin loaded (rpg.plugins.source_loader.github)
root: INFO: plugin ZipPlugin loaded (rpg.plugins.source_loader.zip)
root: INFO: plugin 'download' phase executed
root: DEBUG: DownloadPlugin: trying to download: https://github.com/rpm-software-management/libhif/archive/libhif_0_2_1.zip, /tmp/rpg-download
root: ERROR: cat /tmp/rpg-download | sha1sum
root: INFO: plugin 'extraction' phase executed
root: DEBUG: /tmp/rpg-downloaded-af27a3b/extracted/libhif-libhif_0_2_1
root: INFO: New thread for fetch repos started
root: INFO: plugin phase extracted executed
root: INFO: plugin phase patched executed
root: DEBUG: configure.ac and Makefile.am found
root: DEBUG: autogen.sh found
root: DEBUG: build(/tmp/rpg-downloaded-af27a3b/extracted, /tmp/rpg-downloaded-af27a3b/compiled, ./autogen.sh
%{configure}
%{make_build})
root: INFO: plugin phase compiled executed
root: DEBUG: install(/tmp/rpg-downloaded-af27a3b/compiled, /tmp/rpg-downloaded-af27a3b/installed, make install DESTDIR="$RPM_BUILD_ROOT")
root: INFO: plugin phase installed executed
root: INFO: Resolving Requires
root: INFO: Resolving BuildRequires
root: WARNING: For '/usr/include/gio-unix-2.0/' have not been found any package
root: WARNING: For '/usr/bin/g' have not been found any package
root: WARNING: For '/usr/bin/hostinfo' have not been found any package
root: WARNING: For '/usr/bin/sed' have not been found any package
root: WARNING: For '/bin/uname' have not been found any package
root: WARNING: For '/bin/sh' have not been found any package
root: WARNING: For '/usr/bin/oslevel' have not been found any package
root: WARNING: For '/usr.' have not been found any package
root: WARNING: For '/bin/universe' have not been found any package
root: WARNING: For '/usr/convex/getsysinfo' have not been found any package
root: WARNING: For '/bin/arch' have not been found any package
root: WARNING: For '/usr/bin/grep' have not been found any package
root: WARNING: For '/bin/machine' have not been found any package
root: DEBUG: tar zcf /tmp/rpg-downloaded-af27a3b/libhif-hif_version.tar.gz -C /tmp/rpg-downloaded-af27a3b/extracted . --transform='s/^\./libhif-hif_version/g'
root: INFO: Resolving Requires
root: INFO: Resolving BuildRequires
--------------------- >> end captured logging << ---------------------
======================================================================
ERROR: test_libhif (test_build_libhif.BuildTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "~/Projects/rpg/tests/mock_build/test_build_libhif.py", line 40, in tearDown
for _rpm in self.base.rpm_path:
File "~/Projects/rpg/rpg/__init__.py", line 165, in rpm_path
.format(str(self.base_dir / (self.project_name + "*.rpm"))))
nose.proxy.RuntimeError: Can't find '/tmp/rpg-downloaded-af27a3b/libhif*.rpm'! You need to call build_rpm first.
-------------------- >> begin captured logging << --------------------
root: INFO: DNF sack is loading
dnf: DEBUG: repo: using cache for: fedora-steam
dnf: DEBUG: not found deltainfo for: negativo17 - Steam
dnf: DEBUG: not found updateinfo for: negativo17 - Steam
dnf: DEBUG: repo: using cache for: virtualbox
dnf: DEBUG: not found deltainfo for: Fedora 22 - x86_64 - VirtualBox
dnf: DEBUG: not found updateinfo for: Fedora 22 - x86_64 - VirtualBox
dnf: DEBUG: repo: using cache for: adobe-linux-x86_64
dnf: DEBUG: not found deltainfo for: Adobe Systems Incorporated
dnf: DEBUG: not found updateinfo for: Adobe Systems Incorporated
dnf: DEBUG: repo: using cache for: updates
dnf: DEBUG: repo: using cache for: rpmfusion-free
dnf: DEBUG: not found deltainfo for: RPM Fusion for Fedora 22 - Free
dnf: DEBUG: not found updateinfo for: RPM Fusion for Fedora 22 - Free
dnf: DEBUG: repo: using cache for: fedora-spotify
dnf: DEBUG: not found deltainfo for: negativo17 - Spotify
dnf: DEBUG: not found updateinfo for: negativo17 - Spotify
dnf: DEBUG: repo: using cache for: rpmfusion-free-updates
dnf: DEBUG: not found deltainfo for: RPM Fusion for Fedora 22 - Free - Updates
dnf: DEBUG: not found updateinfo for: RPM Fusion for Fedora 22 - Free - Updates
dnf: DEBUG: repo: using cache for: google-chrome
dnf: DEBUG: not found deltainfo for: google-chrome
dnf: DEBUG: not found updateinfo for: google-chrome
dnf: DEBUG: repo: using cache for: playonlinux
dnf: DEBUG: not found deltainfo for: PlayOnLinux Official repository
dnf: DEBUG: not found updateinfo for: PlayOnLinux Official repository
dnf: DEBUG: repo: using cache for: fedora
dnf: DEBUG: not found deltainfo for: Fedora 22 - x86_64
dnf: DEBUG: not found updateinfo for: Fedora 22 - x86_64
dnf: Level 8: timer: sack setup: 377 ms
dnf: Level 8: Cleaning up.
root: INFO: plugin PythonPlugin loaded (rpg.plugins.lang.python)
root: INFO: plugin CPlugin loaded (rpg.plugins.lang.c)
root: INFO: plugin FindPatchPlugin loaded (rpg.plugins.misc.find_patch)
root: INFO: plugin FindTranslationPlugin loaded (rpg.plugins.misc.find_translation)
root: INFO: plugin FilesToPkgsPlugin loaded (rpg.plugins.misc.files_to_pkgs)
root: INFO: plugin FindLibraryPlugin loaded (rpg.plugins.misc.find_library)
root: INFO: plugin FindFilePlugin loaded (rpg.plugins.misc.find_file)
root: INFO: plugin MakePlugin loaded (rpg.plugins.project_builder.make)
root: INFO: plugin AutotoolsPlugin loaded (rpg.plugins.project_builder.autotools)
root: INFO: plugin CMakePlugin loaded (rpg.plugins.project_builder.cmake)
root: INFO: plugin MavenPlugin loaded (rpg.plugins.project_builder.maven)
root: INFO: plugin SetuptoolsPlugin loaded (rpg.plugins.project_builder.setuptools)
root: INFO: plugin NpmPlugin loaded (rpg.plugins.project_builder.npm)
root: INFO: plugin BashCommandPlugin loaded (rpg.plugins.recover.bash_command)
root: INFO: plugin TarPlugin loaded (rpg.plugins.source_loader.tar)
root: INFO: plugin DownloadPlugin loaded (rpg.plugins.source_loader.download)
root: INFO: plugin GithubDownloadPlugin loaded (rpg.plugins.source_loader.github)
root: INFO: plugin ZipPlugin loaded (rpg.plugins.source_loader.zip)
root: INFO: plugin 'download' phase executed
root: DEBUG: DownloadPlugin: trying to download: https://github.com/rpm-software-management/libhif/archive/libhif_0_2_1.zip, /tmp/rpg-download
root: ERROR: cat /tmp/rpg-download | sha1sum
root: INFO: plugin 'extraction' phase executed
root: DEBUG: /tmp/rpg-downloaded-af27a3b/extracted/libhif-libhif_0_2_1
root: INFO: New thread for fetch repos started
root: INFO: plugin phase extracted executed
root: INFO: plugin phase patched executed
root: DEBUG: configure.ac and Makefile.am found
root: DEBUG: autogen.sh found
root: DEBUG: build(/tmp/rpg-downloaded-af27a3b/extracted, /tmp/rpg-downloaded-af27a3b/compiled, ./autogen.sh
%{configure}
%{make_build})
root: INFO: plugin phase compiled executed
root: DEBUG: install(/tmp/rpg-downloaded-af27a3b/compiled, /tmp/rpg-downloaded-af27a3b/installed, make install DESTDIR="$RPM_BUILD_ROOT")
root: INFO: plugin phase installed executed
root: INFO: Resolving Requires
root: INFO: Resolving BuildRequires
root: WARNING: For '/usr/include/gio-unix-2.0/' have not been found any package
root: WARNING: For '/usr/bin/g' have not been found any package
root: WARNING: For '/usr/bin/hostinfo' have not been found any package
root: WARNING: For '/usr/bin/sed' have not been found any package
root: WARNING: For '/bin/uname' have not been found any package
root: WARNING: For '/bin/sh' have not been found any package
root: WARNING: For '/usr/bin/oslevel' have not been found any package
root: WARNING: For '/usr.' have not been found any package
root: WARNING: For '/bin/universe' have not been found any package
root: WARNING: For '/usr/convex/getsysinfo' have not been found any package
root: WARNING: For '/bin/arch' have not been found any package
root: WARNING: For '/usr/bin/grep' have not been found any package
root: WARNING: For '/bin/machine' have not been found any package
root: DEBUG: tar zcf /tmp/rpg-downloaded-af27a3b/libhif-hif_version.tar.gz -C /tmp/rpg-downloaded-af27a3b/extracted . --transform='s/^\./libhif-hif_version/g'
root: INFO: Resolving Requires
root: INFO: Resolving BuildRequires
--------------------- >> end captured logging << ---------------------
----------------------------------------------------------------------
Ran 1 test in 88.114s
FAILED (errors=2)
<end of output>
Test time = 88.52 sec
----------------------------------------------------------
Test Failed.
"~/Projects/rpg/tests/mock_build/test_build_libhif.py" end time: Feb 06 14:47 CET
"~/Projects/rpg/tests/mock_build/test_build_libhif.py" time elapsed: 00:01:28
----------------------------------------------------------
Metadata
Metadata
Assignees
Labels
No labels