Mock Version: 3.5 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target x86_64 --nodeps /builddir/build/SPECS/copr-backend.spec'], chrootPath='/var/lib/mock/openeuler-24.03_LTS_SP1-x86_64-1740024230.167413/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'}shell=Falselogger=timeout=0uid=1000gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=True) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target x86_64 --nodeps /builddir/build/SPECS/copr-backend.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'} and shell False :1: DeprecationWarning: The distutils package is deprecated and slated for removal in Python 3.12. Use setuptools or check PEP 632 for potential alternatives :1: DeprecationWarning: The distutils.sysconfig module is deprecated, use sysconfig instead :1: DeprecationWarning: The distutils package is deprecated and slated for removal in Python 3.12. Use setuptools or check PEP 632 for potential alternatives :1: DeprecationWarning: The distutils.sysconfig module is deprecated, use sysconfig instead Building target platforms: x86_64 Building for target x86_64 Wrote: /builddir/build/SRPMS/copr-backend-1.168-1.src.rpm Child return code was: 0 Mock Version: 3.5 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target x86_64 --nodeps /builddir/build/SPECS/copr-backend.spec'], chrootPath='/var/lib/mock/openeuler-24.03_LTS_SP1-x86_64-1740024230.167413/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'}shell=Falselogger=timeout=0uid=1000gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=True) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target x86_64 --nodeps /builddir/build/SPECS/copr-backend.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'} and shell False :1: DeprecationWarning: The distutils package is deprecated and slated for removal in Python 3.12. Use setuptools or check PEP 632 for potential alternatives :1: DeprecationWarning: The distutils.sysconfig module is deprecated, use sysconfig instead :1: DeprecationWarning: The distutils package is deprecated and slated for removal in Python 3.12. Use setuptools or check PEP 632 for potential alternatives :1: DeprecationWarning: The distutils.sysconfig module is deprecated, use sysconfig instead Building target platforms: x86_64 Building for target x86_64 Wrote: /builddir/build/SRPMS/copr-backend-1.168-1.src.rpm Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target x86_64 --nodeps /builddir/build/SPECS/copr-backend.spec'], chrootPath='/var/lib/mock/openeuler-24.03_LTS_SP1-x86_64-1740024230.167413/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'}shell=Falselogger=timeout=0uid=1000gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=True) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target x86_64 --nodeps /builddir/build/SPECS/copr-backend.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'} and shell False Building target platforms: x86_64 Building for target x86_64 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.GMAyFb + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf copr-backend-1.168 + /usr/lib/rpm/rpmuncompress -x /builddir/build/SOURCES/copr-backend-1.168.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + cd copr-backend-1.168 + /usr/lib/rpm/rpmuncompress -x /builddir/build/SOURCES/test-data-copr-backend-2.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.RiGTkG + umask 022 + cd /builddir/build/BUILD + cd copr-backend-1.168 + make -C docs -j4 html make: Entering directory '/builddir/build/BUILD/copr-backend-1.168/docs' sphinx-build-3 -b html -d build/doctrees source build/html Running Sphinx v7.0.1 making output directory... done building [mo]: targets for 0 po files that are out of date writing output... building [html]: targets for 32 source files that are out of date updating environment: [new config] 32 added, 0 changed, 0 removed reading sources... [ 3%] Autodoc reading sources... [ 6%] Backend_design reading sources... [ 9%] Configuration reading sources... [ 12%] INSTALL reading sources... [ 15%] README reading sources... [ 18%] Statistics reading sources... [ 21%] VmManagement reading sources... [ 25%] index reading sources... [ 28%] package/actions reading sources... [ 31%] package/constants reading sources... [ 34%] package/createrepo reading sources... [ 37%] package/daemons/backend reading sources... [ 40%] package/daemons/dispatcher reading sources... [ 43%] package/daemons/job_grab reading sources... [ 46%] package/daemons/log reading sources... [ 50%] package/daemons/vm_master reading sources... [ 53%] package/exceptions reading sources... [ 56%] package/frontend reading sources... [ 59%] package/helpers reading sources... [ 62%] package/job reading sources... [ 65%] package/mockremote/__init__ reading sources... [ 68%] package/mockremote/builder reading sources... [ 71%] package/sign reading sources... [ 75%] package/vm_manage/__init__ reading sources... [ 78%] package/vm_manage/check reading sources... [ 81%] package/vm_manage/event_handle reading sources... [ 84%] package/vm_manage/executor reading sources... [ 87%] package/vm_manage/manager reading sources... [ 90%] package/vm_manage/models reading sources... [ 93%] package/vm_manage/spawn reading sources... [ 96%] package/vm_manage/terminate reading sources... [100%] run_scripts WARNING: autodoc: failed to import module 'actions' from module 'backend'; the following exception was raised: No module named 'backend' WARNING: autodoc: failed to import module 'constants' from module 'backend'; the following exception was raised: No module named 'backend' WARNING: autodoc: failed to import module 'createrepo' from module 'backend'; the following exception was raised: No module named 'backend' WARNING: autodoc: failed to import module 'daemons.backend' from module 'backend'; the following exception was raised: No module named 'backend' WARNING: autodoc: failed to import module 'daemons.dispatcher' from module 'backend'; the following exception was raised: No module named 'backend' WARNING: autodoc: failed to import module 'daemons.job_grab' from module 'backend'; the following exception was raised: No module named 'backend' WARNING: autodoc: failed to import module 'daemons.log' from module 'backend'; the following exception was raised: No module named 'backend' WARNING: autodoc: failed to import module 'daemons.vm_master' from module 'backend'; the following exception was raised: No module named 'backend' WARNING: autodoc: failed to import module 'exceptions' from module 'backend'; the following exception was raised: No module named 'backend' WARNING: autodoc: failed to import module 'frontend' from module 'backend'; the following exception was raised: No module named 'backend' WARNING: autodoc: failed to import module 'helpers' from module 'backend'; the following exception was raised: No module named 'backend' WARNING: autodoc: failed to import module 'job' from module 'backend'; the following exception was raised: No module named 'backend' WARNING: autodoc: failed to import module 'mockremote.__init__' from module 'backend'; the following exception was raised: No module named 'backend' looking for now-outdated files... none found pickling environment... WARNING: autodoc: failed to import module 'mockremote.builder' from module 'backend'; the following exception was raised: No module named 'backend' WARNING: autodoc: failed to import module 'sign' from module 'backend'; the following exception was raised: No module named 'backend' WARNING: autodoc: failed to import module 'vm_manage.__init__' from module 'backend'; the following exception was raised: No module named 'backend' WARNING: autodoc: failed to import module 'vm_manage.check' from module 'backend'; the following exception was raised: No module named 'backend' WARNING: autodoc: failed to import module 'vm_manage.event_handle' from module 'backend'; the following exception was raised: No module named 'backend' WARNING: autodoc: failed to import module 'vm_manage.executor' from module 'backend'; the following exception was raised: No module named 'backend' WARNING: autodoc: failed to import module 'vm_manage.manager' from module 'backend'; the following exception was raised: No module named 'backend' WARNING: autodoc: failed to import module 'vm_manage.models' from module 'backend'; the following exception was raised: No module named 'backend' WARNING: autodoc: failed to import module 'vm_manage.spawn' from module 'backend'; the following exception was raised: No module named 'backend' WARNING: autodoc: failed to import module 'vm_manage.terminate' from module 'backend'; the following exception was raised: No module named 'backend' done checking consistency... done preparing documents... done writing output... [ 3%] Autodoc writing output... [ 6%] Backend_design writing output... [ 9%] Configuration writing output... [ 12%] INSTALL writing output... [ 15%] README writing output... [ 18%] Statistics writing output... [ 21%] VmManagement writing output... [ 25%] index writing output... [ 28%] package/actions writing output... [ 31%] package/constants writing output... [ 34%] package/createrepo writing output... [ 37%] package/daemons/backend writing output... [ 40%] package/daemons/dispatcher writing output... [ 43%] package/daemons/job_grab writing output... [ 46%] package/daemons/log writing output... [ 50%] package/daemons/vm_master writing output... [ 53%] package/exceptions writing output... [ 56%] package/frontend writing output... [ 59%] package/helpers writing output... [ 62%] package/job writing output... [ 65%] package/mockremote/__init__ writing output... [ 68%] package/mockremote/builder writing output... [ 71%] package/sign writing output... [ 75%] package/vm_manage/__init__ writing output... [ 78%] package/vm_manage/check writing output... [ 81%] package/vm_manage/event_handle writing output... [ 84%] package/vm_manage/executor writing output... [ 87%] package/vm_manage/manager writing output... [ 90%] package/vm_manage/models writing output... [ 93%] package/vm_manage/spawn writing output... [ 96%] package/vm_manage/terminate writing output... [100%] run_scripts generating indices... genindex done highlighting module code... writing additional pages... search done copying static files... done copying extra files... done dumping search index in English (code: en)... done dumping object inventory... done build succeeded, 23 warnings. The HTML pages are in build/html. Build finished. The HTML pages are in build/html. make: Leaving directory '/builddir/build/BUILD/copr-backend-1.168/docs' + CFLAGS='-O2 -g -grecord-gcc-switches -pipe -fstack-protector-strong -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/generic-hardened-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection ' + LDFLAGS='-Wl,-z,relro -Wl,-z,now -specs=/usr/lib/rpm/generic-hardened-ld' + /usr/bin/python3 setup.py build '--executable=/usr/bin/python3 -s' running build running build_py creating build creating build/lib creating build/lib/copr_backend copying copr_backend/__init__.py -> build/lib/copr_backend copying copr_backend/actions.py -> build/lib/copr_backend copying copr_backend/ans_utils.py -> build/lib/copr_backend copying copr_backend/app.py -> build/lib/copr_backend copying copr_backend/background_worker.py -> build/lib/copr_backend copying copr_backend/background_worker_build.py -> build/lib/copr_backend copying copr_backend/cancellable_thread.py -> build/lib/copr_backend copying copr_backend/constants.py -> build/lib/copr_backend copying copr_backend/createrepo.py -> build/lib/copr_backend copying copr_backend/dispatcher.py -> build/lib/copr_backend copying copr_backend/exceptions.py -> build/lib/copr_backend copying copr_backend/frontend.py -> build/lib/copr_backend copying copr_backend/helpers.py -> build/lib/copr_backend copying copr_backend/hitcounter.py -> build/lib/copr_backend copying copr_backend/job.py -> build/lib/copr_backend copying copr_backend/msgbus.py -> build/lib/copr_backend copying copr_backend/rpm_builds.py -> build/lib/copr_backend copying copr_backend/setup.py -> build/lib/copr_backend copying copr_backend/sign.py -> build/lib/copr_backend copying copr_backend/sshcmd.py -> build/lib/copr_backend copying copr_backend/vm_alloc.py -> build/lib/copr_backend copying copr_backend/worker_manager.py -> build/lib/copr_backend creating build/lib/copr_backend/daemons copying copr_backend/daemons/__init__.py -> build/lib/copr_backend/daemons copying copr_backend/daemons/action_dispatcher.py -> build/lib/copr_backend/daemons copying copr_backend/daemons/build_dispatcher.py -> build/lib/copr_backend/daemons copying copr_backend/daemons/log.py -> build/lib/copr_backend/daemons creating build/lib/copr_backend/stats_templates copying copr_backend/stats_templates/__init__.py -> build/lib/copr_backend/stats_templates running egg_info creating copr_backend.egg-info writing copr_backend.egg-info/PKG-INFO writing dependency_links to copr_backend.egg-info/dependency_links.txt writing top-level names to copr_backend.egg-info/top_level.txt writing manifest file 'copr_backend.egg-info/SOURCES.txt' reading manifest file 'copr_backend.egg-info/SOURCES.txt' adding license file 'LICENSE' writing manifest file 'copr_backend.egg-info/SOURCES.txt' copying copr_backend/stats_templates/arches.html.j2 -> build/lib/copr_backend/stats_templates copying copr_backend/stats_templates/chroots.html.j2 -> build/lib/copr_backend/stats_templates copying copr_backend/stats_templates/distro.html.j2 -> build/lib/copr_backend/stats_templates copying copr_backend/stats_templates/index.html.j2 -> build/lib/copr_backend/stats_templates copying copr_backend/stats_templates/topmost.html.j2 -> build/lib/copr_backend/stats_templates + sleep 1 + RPM_EC=0 ++ jobs -p + exit 0 Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.tQzO7K + umask 022 + cd /builddir/build/BUILD + '[' /builddir/build/BUILDROOT/copr-backend-1.168-1.x86_64 '!=' / ']' + rm -rf /builddir/build/BUILDROOT/copr-backend-1.168-1.x86_64 ++ dirname /builddir/build/BUILDROOT/copr-backend-1.168-1.x86_64 + mkdir -p /builddir/build/BUILDROOT + mkdir /builddir/build/BUILDROOT/copr-backend-1.168-1.x86_64 + cd copr-backend-1.168 + CFLAGS='-O2 -g -grecord-gcc-switches -pipe -fstack-protector-strong -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/generic-hardened-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection ' + LDFLAGS='-Wl,-z,relro -Wl,-z,now -specs=/usr/lib/rpm/generic-hardened-ld' + /usr/bin/python3 setup.py install -O1 --skip-build --root /builddir/build/BUILDROOT/copr-backend-1.168-1.x86_64 running install /usr/lib/python3.11/site-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated. !! ******************************************************************************** Please avoid running ``setup.py`` directly. Instead, use pypa/build, pypa/installer or other standards-based tools. See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details. ******************************************************************************** !! self.initialize_options() running install_lib creating /builddir/build/BUILDROOT/copr-backend-1.168-1.x86_64/usr creating /builddir/build/BUILDROOT/copr-backend-1.168-1.x86_64/usr/lib creating /builddir/build/BUILDROOT/copr-backend-1.168-1.x86_64/usr/lib/python3.11 creating /builddir/build/BUILDROOT/copr-backend-1.168-1.x86_64/usr/lib/python3.11/site-packages creating /builddir/build/BUILDROOT/copr-backend-1.168-1.x86_64/usr/lib/python3.11/site-packages/copr_backend copying build/lib/copr_backend/__init__.py -> /builddir/build/BUILDROOT/copr-backend-1.168-1.x86_64/usr/lib/python3.11/site-packages/copr_backend copying build/lib/copr_backend/actions.py -> /builddir/build/BUILDROOT/copr-backend-1.168-1.x86_64/usr/lib/python3.11/site-packages/copr_backend copying build/lib/copr_backend/ans_utils.py -> /builddir/build/BUILDROOT/copr-backend-1.168-1.x86_64/usr/lib/python3.11/site-packages/copr_backend copying build/lib/copr_backend/app.py -> /builddir/build/BUILDROOT/copr-backend-1.168-1.x86_64/usr/lib/python3.11/site-packages/copr_backend copying build/lib/copr_backend/background_worker.py -> /builddir/build/BUILDROOT/copr-backend-1.168-1.x86_64/usr/lib/python3.11/site-packages/copr_backend copying build/lib/copr_backend/background_worker_build.py -> /builddir/build/BUILDROOT/copr-backend-1.168-1.x86_64/usr/lib/python3.11/site-packages/copr_backend copying build/lib/copr_backend/cancellable_thread.py -> /builddir/build/BUILDROOT/copr-backend-1.168-1.x86_64/usr/lib/python3.11/site-packages/copr_backend copying build/lib/copr_backend/constants.py -> /builddir/build/BUILDROOT/copr-backend-1.168-1.x86_64/usr/lib/python3.11/site-packages/copr_backend copying build/lib/copr_backend/createrepo.py -> /builddir/build/BUILDROOT/copr-backend-1.168-1.x86_64/usr/lib/python3.11/site-packages/copr_backend copying build/lib/copr_backend/dispatcher.py -> /builddir/build/BUILDROOT/copr-backend-1.168-1.x86_64/usr/lib/python3.11/site-packages/copr_backend copying build/lib/copr_backend/exceptions.py -> /builddir/build/BUILDROOT/copr-backend-1.168-1.x86_64/usr/lib/python3.11/site-packages/copr_backend copying build/lib/copr_backend/frontend.py -> /builddir/build/BUILDROOT/copr-backend-1.168-1.x86_64/usr/lib/python3.11/site-packages/copr_backend copying build/lib/copr_backend/helpers.py -> /builddir/build/BUILDROOT/copr-backend-1.168-1.x86_64/usr/lib/python3.11/site-packages/copr_backend copying build/lib/copr_backend/hitcounter.py -> /builddir/build/BUILDROOT/copr-backend-1.168-1.x86_64/usr/lib/python3.11/site-packages/copr_backend copying build/lib/copr_backend/job.py -> /builddir/build/BUILDROOT/copr-backend-1.168-1.x86_64/usr/lib/python3.11/site-packages/copr_backend copying build/lib/copr_backend/msgbus.py -> /builddir/build/BUILDROOT/copr-backend-1.168-1.x86_64/usr/lib/python3.11/site-packages/copr_backend copying build/lib/copr_backend/rpm_builds.py -> /builddir/build/BUILDROOT/copr-backend-1.168-1.x86_64/usr/lib/python3.11/site-packages/copr_backend copying build/lib/copr_backend/setup.py -> /builddir/build/BUILDROOT/copr-backend-1.168-1.x86_64/usr/lib/python3.11/site-packages/copr_backend copying build/lib/copr_backend/sign.py -> /builddir/build/BUILDROOT/copr-backend-1.168-1.x86_64/usr/lib/python3.11/site-packages/copr_backend copying build/lib/copr_backend/sshcmd.py -> /builddir/build/BUILDROOT/copr-backend-1.168-1.x86_64/usr/lib/python3.11/site-packages/copr_backend copying build/lib/copr_backend/vm_alloc.py -> /builddir/build/BUILDROOT/copr-backend-1.168-1.x86_64/usr/lib/python3.11/site-packages/copr_backend copying build/lib/copr_backend/worker_manager.py -> /builddir/build/BUILDROOT/copr-backend-1.168-1.x86_64/usr/lib/python3.11/site-packages/copr_backend creating /builddir/build/BUILDROOT/copr-backend-1.168-1.x86_64/usr/lib/python3.11/site-packages/copr_backend/daemons copying build/lib/copr_backend/daemons/__init__.py -> /builddir/build/BUILDROOT/copr-backend-1.168-1.x86_64/usr/lib/python3.11/site-packages/copr_backend/daemons copying build/lib/copr_backend/daemons/action_dispatcher.py -> /builddir/build/BUILDROOT/copr-backend-1.168-1.x86_64/usr/lib/python3.11/site-packages/copr_backend/daemons copying build/lib/copr_backend/daemons/build_dispatcher.py -> /builddir/build/BUILDROOT/copr-backend-1.168-1.x86_64/usr/lib/python3.11/site-packages/copr_backend/daemons copying build/lib/copr_backend/daemons/log.py -> /builddir/build/BUILDROOT/copr-backend-1.168-1.x86_64/usr/lib/python3.11/site-packages/copr_backend/daemons creating /builddir/build/BUILDROOT/copr-backend-1.168-1.x86_64/usr/lib/python3.11/site-packages/copr_backend/stats_templates copying build/lib/copr_backend/stats_templates/__init__.py -> /builddir/build/BUILDROOT/copr-backend-1.168-1.x86_64/usr/lib/python3.11/site-packages/copr_backend/stats_templates copying build/lib/copr_backend/stats_templates/arches.html.j2 -> /builddir/build/BUILDROOT/copr-backend-1.168-1.x86_64/usr/lib/python3.11/site-packages/copr_backend/stats_templates copying build/lib/copr_backend/stats_templates/chroots.html.j2 -> /builddir/build/BUILDROOT/copr-backend-1.168-1.x86_64/usr/lib/python3.11/site-packages/copr_backend/stats_templates copying build/lib/copr_backend/stats_templates/distro.html.j2 -> /builddir/build/BUILDROOT/copr-backend-1.168-1.x86_64/usr/lib/python3.11/site-packages/copr_backend/stats_templates copying build/lib/copr_backend/stats_templates/index.html.j2 -> /builddir/build/BUILDROOT/copr-backend-1.168-1.x86_64/usr/lib/python3.11/site-packages/copr_backend/stats_templates copying build/lib/copr_backend/stats_templates/topmost.html.j2 -> /builddir/build/BUILDROOT/copr-backend-1.168-1.x86_64/usr/lib/python3.11/site-packages/copr_backend/stats_templates byte-compiling /builddir/build/BUILDROOT/copr-backend-1.168-1.x86_64/usr/lib/python3.11/site-packages/copr_backend/__init__.py to __init__.cpython-311.pyc byte-compiling /builddir/build/BUILDROOT/copr-backend-1.168-1.x86_64/usr/lib/python3.11/site-packages/copr_backend/actions.py to actions.cpython-311.pyc byte-compiling /builddir/build/BUILDROOT/copr-backend-1.168-1.x86_64/usr/lib/python3.11/site-packages/copr_backend/ans_utils.py to ans_utils.cpython-311.pyc byte-compiling /builddir/build/BUILDROOT/copr-backend-1.168-1.x86_64/usr/lib/python3.11/site-packages/copr_backend/app.py to app.cpython-311.pyc byte-compiling /builddir/build/BUILDROOT/copr-backend-1.168-1.x86_64/usr/lib/python3.11/site-packages/copr_backend/background_worker.py to background_worker.cpython-311.pyc byte-compiling /builddir/build/BUILDROOT/copr-backend-1.168-1.x86_64/usr/lib/python3.11/site-packages/copr_backend/background_worker_build.py to background_worker_build.cpython-311.pyc byte-compiling /builddir/build/BUILDROOT/copr-backend-1.168-1.x86_64/usr/lib/python3.11/site-packages/copr_backend/cancellable_thread.py to cancellable_thread.cpython-311.pyc byte-compiling /builddir/build/BUILDROOT/copr-backend-1.168-1.x86_64/usr/lib/python3.11/site-packages/copr_backend/constants.py to constants.cpython-311.pyc byte-compiling /builddir/build/BUILDROOT/copr-backend-1.168-1.x86_64/usr/lib/python3.11/site-packages/copr_backend/createrepo.py to createrepo.cpython-311.pyc byte-compiling /builddir/build/BUILDROOT/copr-backend-1.168-1.x86_64/usr/lib/python3.11/site-packages/copr_backend/dispatcher.py to dispatcher.cpython-311.pyc byte-compiling /builddir/build/BUILDROOT/copr-backend-1.168-1.x86_64/usr/lib/python3.11/site-packages/copr_backend/exceptions.py to exceptions.cpython-311.pyc byte-compiling /builddir/build/BUILDROOT/copr-backend-1.168-1.x86_64/usr/lib/python3.11/site-packages/copr_backend/frontend.py to frontend.cpython-311.pyc byte-compiling /builddir/build/BUILDROOT/copr-backend-1.168-1.x86_64/usr/lib/python3.11/site-packages/copr_backend/helpers.py to helpers.cpython-311.pyc byte-compiling /builddir/build/BUILDROOT/copr-backend-1.168-1.x86_64/usr/lib/python3.11/site-packages/copr_backend/hitcounter.py to hitcounter.cpython-311.pyc byte-compiling /builddir/build/BUILDROOT/copr-backend-1.168-1.x86_64/usr/lib/python3.11/site-packages/copr_backend/job.py to job.cpython-311.pyc byte-compiling /builddir/build/BUILDROOT/copr-backend-1.168-1.x86_64/usr/lib/python3.11/site-packages/copr_backend/msgbus.py to msgbus.cpython-311.pyc byte-compiling /builddir/build/BUILDROOT/copr-backend-1.168-1.x86_64/usr/lib/python3.11/site-packages/copr_backend/rpm_builds.py to rpm_builds.cpython-311.pyc byte-compiling /builddir/build/BUILDROOT/copr-backend-1.168-1.x86_64/usr/lib/python3.11/site-packages/copr_backend/setup.py to setup.cpython-311.pyc byte-compiling /builddir/build/BUILDROOT/copr-backend-1.168-1.x86_64/usr/lib/python3.11/site-packages/copr_backend/sign.py to sign.cpython-311.pyc byte-compiling /builddir/build/BUILDROOT/copr-backend-1.168-1.x86_64/usr/lib/python3.11/site-packages/copr_backend/sshcmd.py to sshcmd.cpython-311.pyc byte-compiling /builddir/build/BUILDROOT/copr-backend-1.168-1.x86_64/usr/lib/python3.11/site-packages/copr_backend/vm_alloc.py to vm_alloc.cpython-311.pyc byte-compiling /builddir/build/BUILDROOT/copr-backend-1.168-1.x86_64/usr/lib/python3.11/site-packages/copr_backend/worker_manager.py to worker_manager.cpython-311.pyc byte-compiling /builddir/build/BUILDROOT/copr-backend-1.168-1.x86_64/usr/lib/python3.11/site-packages/copr_backend/daemons/__init__.py to __init__.cpython-311.pyc byte-compiling /builddir/build/BUILDROOT/copr-backend-1.168-1.x86_64/usr/lib/python3.11/site-packages/copr_backend/daemons/action_dispatcher.py to action_dispatcher.cpython-311.pyc byte-compiling /builddir/build/BUILDROOT/copr-backend-1.168-1.x86_64/usr/lib/python3.11/site-packages/copr_backend/daemons/build_dispatcher.py to build_dispatcher.cpython-311.pyc byte-compiling /builddir/build/BUILDROOT/copr-backend-1.168-1.x86_64/usr/lib/python3.11/site-packages/copr_backend/daemons/log.py to log.cpython-311.pyc byte-compiling /builddir/build/BUILDROOT/copr-backend-1.168-1.x86_64/usr/lib/python3.11/site-packages/copr_backend/stats_templates/__init__.py to __init__.cpython-311.pyc writing byte-compilation script '/tmp/tmpji216z07.py' /usr/bin/python3 /tmp/tmpji216z07.py removing /tmp/tmpji216z07.py running install_egg_info running egg_info writing copr_backend.egg-info/PKG-INFO writing dependency_links to copr_backend.egg-info/dependency_links.txt writing top-level names to copr_backend.egg-info/top_level.txt reading manifest file 'copr_backend.egg-info/SOURCES.txt' adding license file 'LICENSE' writing manifest file 'copr_backend.egg-info/SOURCES.txt' Copying copr_backend.egg-info to /builddir/build/BUILDROOT/copr-backend-1.168-1.x86_64/usr/lib/python3.11/site-packages/copr_backend-1.168-py3.11.egg-info running install_scripts + install -d /builddir/build/BUILDROOT/copr-backend-1.168-1.x86_64/var/lib/copr/public_html/results + install -d /builddir/build/BUILDROOT/copr-backend-1.168-1.x86_64/usr/share/doc/copr-backend/lighttpd/ + install -d /builddir/build/BUILDROOT/copr-backend-1.168-1.x86_64/etc/copr + install -d /builddir/build/BUILDROOT/copr-backend-1.168-1.x86_64/etc/logrotate.d/ + install -d /builddir/build/BUILDROOT/copr-backend-1.168-1.x86_64/usr/lib/systemd/system + install -d /builddir/build/BUILDROOT/copr-backend-1.168-1.x86_64//var/log/copr-backend + install -d /builddir/build/BUILDROOT/copr-backend-1.168-1.x86_64//var/run/copr-backend/ + install -d /builddir/build/BUILDROOT/copr-backend-1.168-1.x86_64//usr/lib/tmpfiles.d + install -d /builddir/build/BUILDROOT/copr-backend-1.168-1.x86_64//usr/sbin + install -d /builddir/build/BUILDROOT/copr-backend-1.168-1.x86_64/etc/cron.daily + install -d /builddir/build/BUILDROOT/copr-backend-1.168-1.x86_64/etc/cron.weekly + install -d /builddir/build/BUILDROOT/copr-backend-1.168-1.x86_64/etc/sudoers.d + install -d /builddir/build/BUILDROOT/copr-backend-1.168-1.x86_64/usr/bin/ + cp -a copr-backend-service /builddir/build/BUILDROOT/copr-backend-1.168-1.x86_64//usr/sbin/ + cp -a run/copr-assure-permissions run/copr-aws-s3-hitcounter run/copr-backend-analyze-results run/copr-backend-generate-graphs run/copr-backend-process-action run/copr-backend-process-build run/copr-backend-resultdir-cleaner run/copr-backend-unknown-resalloc-tickets.py run/copr-compress-live-logs run/copr-rename-chroot run/copr-repo run/copr-run-dispatcher run/copr_find_obsolete_builds.sh run/copr_find_wrong_chroot_artifacts.py run/copr_fix_gpg.py run/copr_log_hitcounter.py run/copr_print_results_to_delete.py run/copr_prune_results.py run/copr_prune_srpms.py run/copr_run_logger.py run/copr_sign_unsigned.py run/print_queues.py /builddir/build/BUILDROOT/copr-backend-1.168-1.x86_64/usr/bin/ + cp -a conf/copr-be.conf.example /builddir/build/BUILDROOT/copr-backend-1.168-1.x86_64/etc/copr/copr-be.conf + install -p -m 755 conf/crontab/daily /builddir/build/BUILDROOT/copr-backend-1.168-1.x86_64/etc/cron.daily/copr-backend + install -p -m 755 conf/crontab/weekly /builddir/build/BUILDROOT/copr-backend-1.168-1.x86_64/etc/cron.weekly/copr-backend + cp -a conf/lighttpd/dirlisting.conf conf/lighttpd/mime.conf /builddir/build/BUILDROOT/copr-backend-1.168-1.x86_64/usr/share/doc/copr-backend/lighttpd/ + cp -a conf/logrotate/copr-backend /builddir/build/BUILDROOT/copr-backend-1.168-1.x86_64/etc/logrotate.d/ + cp -a conf/tmpfiles.d/copr-backend.conf /builddir/build/BUILDROOT/copr-backend-1.168-1.x86_64//usr/lib/tmpfiles.d + touch /builddir/build/BUILDROOT/copr-backend-1.168-1.x86_64/var/log/copr-backend/copr.log + touch /builddir/build/BUILDROOT/copr-backend-1.168-1.x86_64/var/log/copr-backend/prune_old.log + cp -a units/copr-backend.target units/copr-backend-action.service units/copr-backend-build.service units/copr-backend-log.service /builddir/build/BUILDROOT/copr-backend-1.168-1.x86_64//usr/lib/systemd/system/ + install -m 0644 conf/copr.sudoers.d /builddir/build/BUILDROOT/copr-backend-1.168-1.x86_64/etc/sudoers.d/copr + install -d /builddir/build/BUILDROOT/copr-backend-1.168-1.x86_64/etc/logstash.d + install -d /builddir/build/BUILDROOT/copr-backend-1.168-1.x86_64/usr/share/logstash/patterns/ + cp -a conf/logstash/lighttpd.pattern /builddir/build/BUILDROOT/copr-backend-1.168-1.x86_64/usr/share/logstash/patterns/lighttpd.pattern + cp -a conf/playbooks /builddir/build/BUILDROOT/copr-backend-1.168-1.x86_64/usr/share/doc/copr-backend/ + install -d /builddir/build/BUILDROOT/copr-backend-1.168-1.x86_64/usr/share/doc/copr-backend/examples//etc/logstash.d + cp -a conf/logstash/copr_backend.conf /builddir/build/BUILDROOT/copr-backend-1.168-1.x86_64/usr/share/doc/copr-backend/examples//etc/logstash.d/copr_backend.conf + cp -a docs/build/html /builddir/build/BUILDROOT/copr-backend-1.168-1.x86_64/usr/share/doc/copr-backend/ + /usr/bin/find-debuginfo -j4 --strict-build-id -i --build-id-seed 1.168-1 --unique-debug-suffix -1.168-1.x86_64 --unique-debug-src-base copr-backend-1.168-1.x86_64 -S debugsourcefiles.list /builddir/build/BUILD/copr-backend-1.168 find: 'debug': No such file or directory + /usr/lib/rpm/check-buildroot + /usr/lib/rpm/brp-ldconfig + /usr/lib/rpm/brp-compress + /usr/lib/rpm/brp-strip-static-archive /usr/bin/strip + /usr/lib/rpm/brp-python-bytecompile /usr/bin/python 1 1 Bytecompiling .py files below /builddir/build/BUILDROOT/copr-backend-1.168-1.x86_64/usr/lib/python3.11 using /usr/bin/python3.11 + /usr/lib/rpm/brp-python-hardlink Executing(%check): /bin/sh -e /var/tmp/rpm-tmp.nAmNVj + umask 022 + cd /builddir/build/BUILD + cd copr-backend-1.168 + ./run_tests.sh -vv --no-cov + set -e ++ dirname ./run_tests.sh + srcdir=. ++ grep -E '%global[[:space:]]*tests_version' ++ awk '{ print $3 }' + test_tarball_version=2 ++ grep -E '%global[[:space:]]*tests_tar' ++ awk '{ print $3 }' + test_tarball_name=test-data-copr-backend + test_tarball_extracted=test-data-copr-backend-2 + test_tarball=test-data-copr-backend-2.tar.gz + test -d test-data-copr-backend-2 + export TEST_DATA_DIRECTORY ++ readlink -f test-data-copr-backend-2 + TEST_DATA_DIRECTORY=/builddir/build/BUILD/copr-backend-1.168/test-data-copr-backend-2 + REDIS_PORT=7777 + trap cleanup EXIT + redis-server --port 7777 ++ readlink -f ../common + common_path=/builddir/build/BUILD/common ++ readlink -f ../messaging + messaging_path=/builddir/build/BUILD/messaging + export PYTHONPATH=/builddir/build/BUILD/common:/builddir/build/BUILD/messaging:/builddir/build/BUILD/copr-backend-1.168:/builddir/build/BUILD/copr-backend-1.168/tests:/builddir/build/BUILD/copr-backend-1.168/run + PYTHONPATH=/builddir/build/BUILD/common:/builddir/build/BUILD/messaging:/builddir/build/BUILD/copr-backend-1.168:/builddir/build/BUILD/copr-backend-1.168/tests:/builddir/build/BUILD/copr-backend-1.168/run + export PATH=/builddir/build/BUILD/copr-backend-1.168/run:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/sbin + PATH=/builddir/build/BUILD/copr-backend-1.168/run:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/sbin + COVPARAMS=(--cov-report term-missing --cov ./copr_backend --cov ./run) + KEEP_ARGS=() + for arg in "$@" + case $arg in + KEEP_ARGS+=("$arg") + for arg in "$@" + case $arg in + COVPARAMS=() + python3 -m pytest -s tests -vv ============================= test session starts ============================== platform linux -- Python 3.11.6, pytest-7.4.4, pluggy-1.4.0 -- /usr/bin/python3 cachedir: .pytest_cache rootdir: /builddir/build/BUILD/copr-backend-1.168 collecting ... collected 186 items tests/test_action.py::TestAction::test_action_run_legal_flag PASSED tests/test_action.py::TestAction::test_action_handle_forks PASSED tests/test_action.py::TestAction::test_action_run_rename SKIPPED (Fixme, test doesn't work.) tests/test_action.py::TestAction::test_action_run_rename_success_on_empty_src SKIPPED tests/test_action.py::TestAction::test_action_run_rename_failure_on_destination_exists SKIPPED tests/test_action.py::TestAction::test_action_run_delete_copr PASSED tests/test_action.py::TestAction::test_action_run_delete_copr_remove_folders SKIPPED tests/test_action.py::TestAction::test_delete_no_chroot_dirs PASSED tests/test_action.py::TestAction::test_delete_build_succeeded PASSED tests/test_action.py::TestAction::test_delete_build_acr_reflected[False] FAILED tests/test_action.py::TestAction::test_delete_build_acr_reflected[True] FAILED tests/test_action.py::TestAction::test_delete_build_succeeded_createrepo_error PASSED tests/test_action.py::TestAction::test_delete_two_chroots PASSED tests/test_action.py::TestAction::test_delete_two_chroots_two_remain PASSED tests/test_action.py::TestAction::test_delete_build_with_bad_pkg_name PASSED tests/test_action.py::TestAction::test_delete_multiple_builds_succeeded PASSED tests/test_action.py::TestAction::test_handle_createrepo_ok[False] PASSED tests/test_action.py::TestAction::test_handle_createrepo_ok[True] PASSED tests/test_action.py::TestAction::test_handle_createrepo_failure_1 PASSED tests/test_action.py::TestAction::test_handle_generate_gpg_key SKIPPED tests/test_action.py::TestAction::test_request_exception_is_taken_care_of_when_posting_to_frontend SKIPPED tests/test_action.py::TestAction::test_delete_chroot PASSED tests/test_action.py::TestAction::test_comps_create PASSED tests/test_action.py::TestAction::test_remove_dirs PASSED tests/test_background_worker_build.py::test_waiting_for_repo_fail PASSED tests/test_background_worker_build.py::test_waiting_for_repo_success PASSED tests/test_background_worker_build.py::test_full_rpm_build_no_sign FAILED tests/test_background_worker_build.py::test_prev_build_backup PASSED tests/test_background_worker_build.py::test_full_srpm_build PASSED tests/test_background_worker_build.py::test_build_and_sign PASSED tests/test_background_worker_build.py::test_sign_built_packages_exception PASSED tests/test_background_worker_build.py::test_unexpected_exception PASSED tests/test_background_worker_build.py::test_build_info_file_failure PASSED tests/test_background_worker_build.py::test_invalid_job_info PASSED tests/test_background_worker_build.py::test_cancel_build_on_vm_allocation PASSED tests/test_background_worker_build.py::test_cancel_build_on_tail_log_no_ssh PASSED tests/test_background_worker_build.py::test_cancel_before_vm PASSED tests/test_background_worker_build.py::test_cancel_before_start PASSED tests/test_background_worker_build.py::test_build_retry PASSED tests/test_background_worker_build.py::test_fe_disallowed_start PASSED tests/test_background_worker_build.py::test_fe_failed_start PASSED tests/test_background_worker_build.py::test_cancel_script_failure PASSED tests/test_background_worker_build.py::test_cancel_build_during_log_download PASSED tests/test_background_worker_build.py::test_ssh_connection_error PASSED tests/test_background_worker_build.py::test_average_step PASSED tests/test_background_worker_build.py::test_retry_for_ssh_tail_failure PASSED tests/test_background_worker_build.py::test_build_failure PASSED tests/test_background_worker_build.py::test_createrepo_failure PASSED tests/test_background_worker_build.py::test_pkg_collect_failure PASSED tests/test_background_worker_build.py::test_existing_compressed_file PASSED tests/test_background_worker_build.py::test_tail_f_nonzero_exit PASSED tests/test_background_worker_build.py::test_wrong_copr_rpmbuild_daemon_output PASSED tests/test_background_worker_build.py::test_unable_to_start_builder PASSED tests/test_background_worker_build.py::test_retry_vm_factory_take PASSED tests/test_background_worker_build.py::test_failed_build_retry PASSED tests/test_background_worker_build.py::test_buildjob_tags PASSED tests/test_build_dispatcher.py::test_priority_numbers PASSED tests/test_build_dispatcher.py::test_frontend_priority[True-2000000] PASSED tests/test_build_dispatcher.py::test_frontend_priority[False-0] PASSED tests/test_build_dispatcher.py::test_sandbox_priority PASSED tests/test_config_reader.py::TestBackendConfigReader::test_minimal_file_and_defaults PASSED tests/test_config_reader.py::TestBackendConfigReader::test_correct_build_limits PASSED tests/test_config_reader.py::TestBackendConfigReader::test_invalid_limits[builds_max_workers=asdfa\n] PASSED tests/test_config_reader.py::TestBackendConfigReader::test_invalid_limits[actions_max_workers=asdfa\n] PASSED tests/test_config_reader.py::TestBackendConfigReader::test_invalid_build_limits[builds_max_workers_arch=abc\n] PASSED tests/test_config_reader.py::TestBackendConfigReader::test_invalid_build_limits[builds_max_workers_arch=abc=asdf\n] PASSED tests/test_config_reader.py::TestBackendConfigReader::test_invalid_build_limits[builds_max_workers_arch=abc=10=\n] PASSED tests/test_config_reader.py::TestBackendConfigReader::test_invalid_build_limits[builds_max_workers_arch=abc=1,\n] PASSED tests/test_config_reader.py::TestBackendConfigReader::test_invalid_build_limits[builds_max_workers_tag=abc=1,\n] PASSED tests/test_createrepo.py::TestBatchedCreaterepo::test_batched_createrepo_normal PASSED tests/test_createrepo.py::TestBatchedCreaterepo::test_batched_createrepo_already_done PASSED tests/test_createrepo.py::TestBatchedCreaterepo::test_batched_createrepo_other_already_done PASSED tests/test_createrepo.py::TestBatchedCreaterepo::test_batched_createrepo_devel_mismatch PASSED tests/test_createrepo.py::TestBatchedCreaterepo::test_batched_createrepo_full_we_take_others PASSED tests/test_createrepo.py::TestBatchedCreaterepo::test_batched_createrepo_full_others_take_us PASSED tests/test_createrepo.py::TestBatchedCreaterepo::test_batched_createrepo_task_limit PASSED tests/test_frontend.py::TestFrontendClient::test_post_to_frontend[get] PASSED tests/test_frontend.py::TestFrontendClient::test_post_to_frontend[post] PASSED tests/test_frontend.py::TestFrontendClient::test_post_to_frontend[put] PASSED tests/test_frontend.py::TestFrontendClient::test_post_to_frontend_wrappers[get] PASSED tests/test_frontend.py::TestFrontendClient::test_post_to_frontend_wrappers[post] PASSED tests/test_frontend.py::TestFrontendClient::test_post_to_frontend_wrappers[put] PASSED tests/test_frontend.py::TestFrontendClient::test_post_to_frontend_repeated_first_try_ok PASSED tests/test_frontend.py::TestFrontendClient::test_post_to_frontend_repeated_second_try_ok[get] PASSED tests/test_frontend.py::TestFrontendClient::test_post_to_frontend_repeated_second_try_ok[post] PASSED tests/test_frontend.py::TestFrontendClient::test_post_to_frontend_repeated_second_try_ok[put] PASSED tests/test_frontend.py::TestFrontendClient::test_post_to_frontend_err_400 PASSED tests/test_frontend.py::TestFrontendClient::test_post_to_frontend_repeated_all_attempts_failed PASSED tests/test_frontend.py::TestFrontendClient::test_post_to_frontend_repeated_indefinitely PASSED tests/test_frontend.py::TestFrontendClient::test_retries_on_outdated_frontend PASSED tests/test_frontend.py::TestFrontendClient::test_update PASSED tests/test_frontend.py::TestFrontendClient::test_starting_build PASSED tests/test_frontend.py::TestFrontendClient::test_starting_build_err PASSED tests/test_frontend.py::TestFrontendClient::test_starting_build_err_2 PASSED tests/test_frontend.py::TestFrontendClient::test_reschedule_build PASSED tests/test_helpers.py::TestHelpers::test_redis_logger_exception PASSED tests/test_helpers.py::TestHelpers::test_get_chroot_arch PASSED tests/test_helpers.py::TestHelpers::test_format_filename PASSED tests/test_helpers.py::TestHelpers::test_walk_limited PASSED tests/test_helpers.py::TestHelpers::test_recursive_copy_and_link_rpms PASSED tests/test_modifyrepo.py::TestModifyRepo::test_copr_modifyrepo_locks PASSED tests/test_modifyrepo.py::TestModifyRepo::test_copr_repo_add_subdir FAILED tests/test_modifyrepo.py::TestModifyRepo::test_copr_repo_batched_createrepo FAILED tests/test_modifyrepo.py::TestModifyRepo::test_copr_repo_batched_already_processed FAILED tests/test_modifyrepo.py::TestModifyRepo::test_copr_repo_batched_two_builds FAILED tests/test_modifyrepo.py::TestModifyRepo::test_copr_repo_batched_full FAILED tests/test_modifyrepo.py::TestModifyRepo::test_copr_repo_batched_others_full FAILED tests/test_modifyrepo.py::TestModifyRepo::test_copr_repo_add_del_mixup FAILED tests/test_modifyrepo.py::TestModifyRepo::test_copr_repo_add_subdir_devel FAILED tests/test_modifyrepo.py::TestModifyRepo::test_copr_repo_subdir_validator[add0] PASSED tests/test_modifyrepo.py::TestModifyRepo::test_copr_repo_subdir_validator[add1] PASSED tests/test_modifyrepo.py::TestModifyRepo::test_copr_repo_subdir_validator[add2] PASSED tests/test_modifyrepo.py::TestModifyRepo::test_copr_repo_subdir_validator[add3] PASSED tests/test_modifyrepo.py::TestModifyRepo::test_copr_repo_subdir_none_doesnt_raise PASSED tests/test_modifyrepo.py::TestModifyRepo::test_copr_repo_do_stat PASSED tests/test_modifyrepo.py::TestModifyRepo::test_copr_repo_run_createrepo[True-fedora-37---no-database] PASSED tests/test_modifyrepo.py::TestModifyRepo::test_copr_repo_run_createrepo[False-centos-stream-8---no-database] PASSED tests/test_modifyrepo.py::TestModifyRepo::test_copr_repo_run_createrepo[True-rhel-8---no-database] PASSED tests/test_modifyrepo.py::TestModifyRepo::test_copr_repo_run_createrepo[False-epel-8---no-database] PASSED tests/test_modifyrepo.py::TestModifyRepo::test_copr_repo_el5 FAILED tests/test_modifyrepo.py::TestModifyRepo::test_copr_repo_noop FAILED tests/test_modifyrepo.py::TestModifyRepo::test_copr_repo_rpms_to_remove_in_call PASSED tests/test_modifyrepo.py::TestModifyRepo::test_copr_repo_rpms_to_remove_passes PASSED tests/test_modifyrepo.py::TestModifyRepo::test_copr_repo_rpms_to_remove_passes_2 PASSED tests/test_modifyrepo.py::TestModifyRepo::test_copr_repo_rpms_to_remove_passes_3 PASSED tests/test_modifyrepo.py::TestModifyRepo::test_comps_present FAILED tests/test_modifyrepo.py::TestModifyRepo::test_run_prunerepo SKIPPED tests/test_modifyrepo.py::TestModifyRepo::test_copr_repo_timeouted_check[True] FAILED tests/test_modifyrepo.py::TestModifyRepo::test_copr_repo_timeouted_check[False] FAILED tests/test_modifyrepo.py::test_aws_cdn_refresh PASSED tests/test_sign.py::TestSign::test_get_pubkey PASSED tests/test_sign.py::TestSign::test_get_pubkey_error PASSED tests/test_sign.py::TestSign::test_get_pubkey_unknown_key PASSED tests/test_sign.py::TestSign::test_get_pubkey_unknown_error PASSED tests/test_sign.py::TestSign::test_get_pubkey_outfile PASSED tests/test_sign.py::TestSign::test_sign_one PASSED tests/test_sign.py::TestSign::test_sign_one_popen_error PASSED tests/test_sign.py::TestSign::test_sign_one_cmd_erro PASSED tests/test_sign.py::TestSign::test_call_sign_bin_repeatedly PASSED tests/test_sign.py::TestSign::test_create_user_keys PASSED tests/test_sign.py::TestSign::test_create_user_keys_error_1 PASSED tests/test_sign.py::TestSign::test_create_user_keys_err PASSED tests/test_sign.py::TestSign::test_sign_rpms_id_dir_nothing PASSED tests/test_sign.py::TestSign::test_sign_rpms_id_dir_ok PASSED tests/test_sign.py::TestSign::test_sign_rpms_id_dir_error_on_pubkey PASSED tests/test_sign.py::TestSign::test_sign_rpms_id_dir_no_pub_key PASSED tests/test_sign.py::TestSign::test_sign_rpms_id_dir_sign_error_one PASSED tests/test_sign.py::TestSign::test_sign_rpms_id_dir_sign_error_all PASSED tests/test_sign.py::test_chroot_gpg_hashes PASSED tests/test_sshcmd.py::test_ipv4_ipv6_rsync PASSED tests/test_vm_alloc.py::test_ticket PASSED tests/test_vm_alloc.py::test_ticket_with_args PASSED tests/test_vm_alloc.py::test_ticket_wait_ready_normal PASSED tests/test_vm_alloc.py::test_ticket_wait_ready_raises PASSED tests/test_vm_alloc.py::test_ticket_wait_ready_fallback PASSED tests/test_worker_limits.py::test_predicate_worker_limit PASSED tests/test_worker_limits.py::test_predicate_worker_limit_sometimes PASSED tests/test_worker_limits.py::test_group_worker_limit PASSED tests/test_worker_limits.py::test_worker_limit_info PASSED tests/test_worker_limits.py::test_string_counter PASSED tests/test_worker_manager.py::TestPrioQueue::test_queue_order PASSED tests/test_worker_manager.py::TestPrioQueue::test_pop_push PASSED tests/test_worker_manager.py::TestPrioQueue::test_push_back PASSED tests/test_worker_manager.py::TestPrioQueue::test_shift_prio PASSED tests/test_worker_manager.py::TestLimitedWorkerManager::test_that_limits_are_respected PASSED tests/test_worker_manager.py::TestWorkerManager::test_worker_starts PASSED tests/test_worker_manager.py::TestWorkerManager::test_number_of_tasks PASSED tests/test_worker_manager.py::TestWorkerManager::test_task_to_worker_id PASSED tests/test_worker_manager.py::TestWorkerManager::test_preexisting_broken_worker PASSED tests/test_worker_manager.py::TestWorkerManager::test_cancel_task PASSED tests/test_worker_manager.py::TestWorkerManager::test_slow_priority_queue_filling PASSED tests/test_worker_manager.py::TestActionWorkerManager::test_run_starts_the_workers PASSED tests/test_worker_manager.py::TestActionWorkerManager::test_delete_not_allocated_workers PASSED tests/test_worker_manager.py::TestActionWorkerManager::test_delete_not_started_workers PASSED tests/test_worker_manager.py::TestActionWorkerManager::test_delete_not_finished_workers[FAIL_STARTED_PID] PASSED tests/test_worker_manager.py::TestActionWorkerManager::test_delete_not_finished_workers[FAIL_STARTED] PASSED tests/test_worker_manager.py::TestActionWorkerManager::test_all_passed PASSED tests/test_worker_manager.py::TestActionWorkerManager::test_add_task_for_running_worker PASSED tests/test_worker_manager.py::TestActionWorkerManager::test_empty_queue_but_workers_running PASSED tests/test_worker_manager.py::TestActionWorkerManager::test_that_we_check_aliveness PASSED tests/test_worker_manager.py::TestActionWorkerManager::test_max_workers_has_effect PASSED tests/test_worker_manager.py::TestActionWorkerManagerPriorities::test_actions_priorities PASSED tests/test_worker_manager.py::TestActionWorkerManagerPriorities::test_backend_priority_adjustments PASSED tests/run/test_copr_prune_results.py::TestPruneResults::test_run SKIPPED tests/run/test_copr_prune_results.py::TestPruneResults::test_project_skipped_when_acr_disabled SKIPPED tests/run/test_copr_prune_results.py::TestPruneResults::test_main SKIPPED =================================== FAILURES =================================== ______________ TestAction.test_delete_build_acr_reflected[False] _______________ self = mc_devel = mc_time = , devel = False @pytest.mark.parametrize('devel', [False, True]) @mock.patch("copr_backend.actions.uses_devel_repo") def test_delete_build_acr_reflected(self, mc_devel, mc_time, devel): """ When build is deleted, we want to remove it from both devel and normal (production) repodata """ mc_devel.return_value = devel self.unpack_resource("testresults.tar.gz") chroot = os.path.join(self.test_project_dir, 'fedora-23-x86_64') repodata = os.path.join(chroot, 'repodata') devel_dir = os.path.join(chroot, 'devel') repodata_devel = os.path.join(devel_dir, 'repodata') builddir = '00000049-example' assert os.path.exists(chroot) assert not os.path.exists(devel_dir) # create repodata under 'devel' assert subprocess.call(['copr-repo', chroot, '--devel']) == 0 old_primary = load_primary_xml(repodata) > old_primary_devel = load_primary_xml(repodata_devel) tests/test_action.py:439: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/testlib/repodata.py:20: in load_primary_xml xml_content = fprimary.read() /usr/lib64/python3.11/gzip.py:301: in read return self._buffer.read(size) /usr/lib64/python3.11/_compression.py:118: in readall while data := self.read(sys.maxsize): /usr/lib64/python3.11/gzip.py:499: in read if not self._read_gzip_header(): /usr/lib64/python3.11/gzip.py:468: in _read_gzip_header last_mtime = _read_gzip_header(self._fp) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ fp = def _read_gzip_header(fp): '''Read a gzip header from `fp` and progress to the end of the header. Returns last mtime if header was present or None otherwise. ''' magic = fp.read(2) if magic == b'': return None if magic != b'\037\213': > raise BadGzipFile('Not a gzipped file (%r)' % magic) E gzip.BadGzipFile: Not a gzipped file (b'(\xb5') /usr/lib64/python3.11/gzip.py:428: BadGzipFile _______________ TestAction.test_delete_build_acr_reflected[True] _______________ self = mc_devel = mc_time = , devel = True @pytest.mark.parametrize('devel', [False, True]) @mock.patch("copr_backend.actions.uses_devel_repo") def test_delete_build_acr_reflected(self, mc_devel, mc_time, devel): """ When build is deleted, we want to remove it from both devel and normal (production) repodata """ mc_devel.return_value = devel self.unpack_resource("testresults.tar.gz") chroot = os.path.join(self.test_project_dir, 'fedora-23-x86_64') repodata = os.path.join(chroot, 'repodata') devel_dir = os.path.join(chroot, 'devel') repodata_devel = os.path.join(devel_dir, 'repodata') builddir = '00000049-example' assert os.path.exists(chroot) assert not os.path.exists(devel_dir) # create repodata under 'devel' assert subprocess.call(['copr-repo', chroot, '--devel']) == 0 old_primary = load_primary_xml(repodata) > old_primary_devel = load_primary_xml(repodata_devel) tests/test_action.py:439: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/testlib/repodata.py:20: in load_primary_xml xml_content = fprimary.read() /usr/lib64/python3.11/gzip.py:301: in read return self._buffer.read(size) /usr/lib64/python3.11/_compression.py:118: in readall while data := self.read(sys.maxsize): /usr/lib64/python3.11/gzip.py:499: in read if not self._read_gzip_header(): /usr/lib64/python3.11/gzip.py:468: in _read_gzip_header last_mtime = _read_gzip_header(self._fp) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ fp = def _read_gzip_header(fp): '''Read a gzip header from `fp` and progress to the end of the header. Returns last mtime if header was present or None otherwise. ''' magic = fp.read(2) if magic == b'': return None if magic != b'\037\213': > raise BadGzipFile('Not a gzipped file (%r)' % magic) E gzip.BadGzipFile: Not a gzipped file (b'(\xb5') /usr/lib64/python3.11/gzip.py:428: BadGzipFile _________________________ test_full_rpm_build_no_sign __________________________ _parse_results = f_build_rpm_case = Munch({'workdir': '/tmp/build-worker-tests-x1uyehvx', 'be_config_file': '/tmp/build-worker-tests-x1uyehvx/copr-be.conf...gicMock name='ResallocHostFactory' id='139754281194640'>, 'ssh': }) caplog = <_pytest.logging.LogCaptureFixture object at 0x7f1b1442b9d0> @_patch_bwbuild_object("BuildBackgroundWorker._parse_results") def test_full_rpm_build_no_sign(_parse_results, f_build_rpm_case, caplog): """ Go through the whole (successful) build of a binary RPM """ worker = f_build_rpm_case.bw worker.process() results = worker.job.results_dir assert os.path.exists(os.path.join(results, "builder-live.log.gz")) assert os.path.exists(os.path.join(results, "backend.log.gz")) found_success_log_entry = False for record in caplog.record_tuples: _, level, msg = record assert level < logging.ERROR if "Finished build: id=848963 failed=False" in msg: found_success_log_entry = True assert found_success_log_entry > repodata = load_primary_xml(os.path.join(results, "..", "repodata")) tests/test_background_worker_build.py:292: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/testlib/repodata.py:20: in load_primary_xml xml_content = fprimary.read() /usr/lib64/python3.11/gzip.py:301: in read return self._buffer.read(size) /usr/lib64/python3.11/_compression.py:118: in readall while data := self.read(sys.maxsize): /usr/lib64/python3.11/gzip.py:499: in read if not self._read_gzip_header(): /usr/lib64/python3.11/gzip.py:468: in _read_gzip_header last_mtime = _read_gzip_header(self._fp) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ fp = def _read_gzip_header(fp): '''Read a gzip header from `fp` and progress to the end of the header. Returns last mtime if header was present or None otherwise. ''' magic = fp.read(2) if magic == b'': return None if magic != b'\037\213': > raise BadGzipFile('Not a gzipped file (%r)' % magic) E gzip.BadGzipFile: Not a gzipped file (b'(\xb5') /usr/lib64/python3.11/gzip.py:428: BadGzipFile ------------------------------ Captured log call ------------------------------- INFO test-build.managed.pid-7051:background_worker_build.py:202 Marking build as starting INFO test-build.managed.pid-7051:background_worker_build.py:397 Trying to allocate VM DEBUG root:cancellable_thread.py:40 starting background method: > DEBUG root:cancellable_thread.py:48 checking liveness DEBUG root:cancellable_thread.py:51 thread ended INFO test-build.managed.pid-7051:background_worker_build.py:412 Allocated host ResallocHost, ticket_id=10, hostname=1.2.3.4 INFO test-build.managed.pid-7051:background_worker_build.py:419 Allocating ssh connection to builder INFO test-build.managed.pid-7051:background_worker_build.py:230 Checking that builder machine is OK INFO test-build.managed.pid-7051:background_worker_build.py:240 Filling build.info file with builder info INFO test-build.managed.pid-7051:background_worker_build.py:266 Marking build as running on frontend INFO test-build.managed.pid-7051:background_worker_build.py:456 Starting remote build: copr-rpmbuild --verbose --drop-resultdir --build-id 848963 --chroot fedora-30-x86_64 --detached DEBUG root:cancellable_thread.py:40 starting background method: > DEBUG root:cancellable_thread.py:48 checking liveness INFO test-build.managed.pid-7051:background_worker_build.py:487 Downloading the builder-live.log file, attempt 1 DEBUG root:cancellable_thread.py:51 thread ended INFO test-build.managed.pid-7051:background_worker_build.py:569 Downloading results from builder INFO root:__init__.py:184 rsync from src=/builddir/build/BUILD/copr-backend-1.168/test-data-copr-backend-2/build_results/00848963-example/ to dest=/tmp/build-worker-tests-x1uyehvx/results/@copr/TEST1575431880356948981Project10/fedora-30-x86_64/00848963-example INFO root:sshcmd.py:209 rsyncing of /builddir/build/BUILD/copr-backend-1.168/test-data-copr-backend-2/build_results/00848963-example/ to /tmp/build-worker-tests-x1uyehvx/results/@copr/TEST1575431880356948981Project10/fedora-30-x86_64/00848963-example started INFO root:sshcmd.py:212 rsyncing finished. INFO test-build.managed.pid-7051:background_worker_build.py:363 Releasing VM back to pool INFO test-build.managed.pid-7051:background_worker_build.py:581 Searching for 'success' file in resultdir INFO test-build.managed.pid-7051:background_worker_build.py:624 Incremental createrepo run, adding 00848963-example into https://example.com/results/@copr/TEST1575431880356948981Project10/fedora-30-x86_64, (auto-create-repo=True) INFO test-build.managed.pid-7051:helpers.py:109 Running command 'copr-repo --batched /tmp/build-worker-tests-x1uyehvx/results/@copr/TEST1575431880356948981Project10/fedora-30-x86_64 --add 00848963-example' as PID 7236 INFO test-build.managed.pid-7051:helpers.py:109 Finished after 0 seconds with exit code 0 (copr-repo --batched /tmp/build-worker-tests-x1uyehvx/results/@copr/TEST1575431880356948981Project10/fedora-30-x86_64 --add 00848963-example) INFO test-build.managed.pid-7051:background_worker_build.py:668 Getting build details INFO test-build.managed.pid-7051:background_worker_build.py:647 Listing built binary packages in /tmp/build-worker-tests-x1uyehvx/results/@copr/TEST1575431880356948981Project10/fedora-30-x86_64/00848963-example INFO test-build.managed.pid-7051:helpers.py:109 Running command 'builtin cd /tmp/build-worker-tests-x1uyehvx/results/@copr/TEST1575431880356948981Project10/fedora-30-x86_64/00848963-example && for f in `ls *.rpm | grep -v "src.rpm$"`; do rpm --nosignature -qp --qf "%{NAME} %{VERSION} " $f; done' as PID 7261 INFO test-build.managed.pid-7051:helpers.py:109 Finished after 0 seconds with exit code 0 (builtin cd /tmp/build-worker-tests-x1uyehvx/results/@copr/TEST1575431880356948981Project10/fedora-30-x86_64/00848963-example && for f in `ls *.rpm | grep -v "src.rpm$"`; do rpm --nosignature -qp --qf "%{NAME} %{VERSION} " $f; done) INFO test-build.managed.pid-7051:background_worker_build.py:659 Built packages: example 1.0.14 INFO test-build.managed.pid-7051:background_worker_build.py:676 build details: {'built_packages': 'example 1.0.14'} INFO test-build.managed.pid-7051:background_worker_build.py:753 Finished build: id=848963 failed=False timeout=75600 destdir=/tmp/build-worker-tests-x1uyehvx/results/@copr/TEST1575431880356948981Project10 chroot=fedora-30-x86_64 INFO test-build.managed.pid-7051:background_worker_build.py:284 Worker succeeded build, took 0.4004337787628174 INFO test-build.managed.pid-7051:background_worker_build.py:560 Compressing /tmp/build-worker-tests-x1uyehvx/results/@copr/TEST1575431880356948981Project10/fedora-30-x86_64/00848963-example/builder-live.log by gzip INFO test-build.managed.pid-7051:helpers.py:109 Running command 'gzip /tmp/build-worker-tests-x1uyehvx/results/@copr/TEST1575431880356948981Project10/fedora-30-x86_64/00848963-example/builder-live.log' as PID 7266 INFO test-build.managed.pid-7051:helpers.py:109 Finished after 0 seconds with exit code 0 (gzip /tmp/build-worker-tests-x1uyehvx/results/@copr/TEST1575431880356948981Project10/fedora-30-x86_64/00848963-example/builder-live.log) INFO test-build.managed.pid-7051:background_worker_build.py:560 Compressing /tmp/build-worker-tests-x1uyehvx/results/@copr/TEST1575431880356948981Project10/fedora-30-x86_64/00848963-example/backend.log by gzip INFO test-build.managed.pid-7051:helpers.py:109 Running command 'gzip /tmp/build-worker-tests-x1uyehvx/results/@copr/TEST1575431880356948981Project10/fedora-30-x86_64/00848963-example/backend.log' as PID 7267 INFO test-build.managed.pid-7051:helpers.py:109 Finished after 0 seconds with exit code 0 (gzip /tmp/build-worker-tests-x1uyehvx/results/@copr/TEST1575431880356948981Project10/fedora-30-x86_64/00848963-example/backend.log) ___________________ TestModifyRepo.test_copr_repo_add_subdir ___________________ self = f_second_build = @mock.patch.dict(os.environ, {'COPR_TESTSUITE_NO_OUTPUT': '1'}) def test_copr_repo_add_subdir(self, f_second_build): _unused = self ctx = f_second_build chroot = ctx.chroots[0] chrootdir = os.path.join(ctx.empty_dir, chroot) repodata = os.path.join(chrootdir, 'repodata') > empty_repodata = load_primary_xml(repodata) tests/test_modifyrepo.py:103: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/testlib/repodata.py:20: in load_primary_xml xml_content = fprimary.read() /usr/lib64/python3.11/gzip.py:301: in read return self._buffer.read(size) /usr/lib64/python3.11/_compression.py:118: in readall while data := self.read(sys.maxsize): /usr/lib64/python3.11/gzip.py:499: in read if not self._read_gzip_header(): /usr/lib64/python3.11/gzip.py:468: in _read_gzip_header last_mtime = _read_gzip_header(self._fp) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ fp = def _read_gzip_header(fp): '''Read a gzip header from `fp` and progress to the end of the header. Returns last mtime if header was present or None otherwise. ''' magic = fp.read(2) if magic == b'': return None if magic != b'\037\213': > raise BadGzipFile('Not a gzipped file (%r)' % magic) E gzip.BadGzipFile: Not a gzipped file (b'(\xb5') /usr/lib64/python3.11/gzip.py:428: BadGzipFile _______________ TestModifyRepo.test_copr_repo_batched_createrepo _______________ self = f_second_build = def test_copr_repo_batched_createrepo(self, f_second_build): ctx = f_second_build chroot = ctx.chroots[0] chrootdir = os.path.join(ctx.empty_dir, chroot) repodata = os.path.join(chrootdir, 'repodata') assert call_copr_repo(chrootdir, add=[ctx.builds[0]]) > first_repodata = load_primary_xml(repodata) tests/test_modifyrepo.py:125: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/testlib/repodata.py:20: in load_primary_xml xml_content = fprimary.read() /usr/lib64/python3.11/gzip.py:301: in read return self._buffer.read(size) /usr/lib64/python3.11/_compression.py:118: in readall while data := self.read(sys.maxsize): /usr/lib64/python3.11/gzip.py:499: in read if not self._read_gzip_header(): /usr/lib64/python3.11/gzip.py:468: in _read_gzip_header last_mtime = _read_gzip_header(self._fp) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ fp = def _read_gzip_header(fp): '''Read a gzip header from `fp` and progress to the end of the header. Returns last mtime if header was present or None otherwise. ''' magic = fp.read(2) if magic == b'': return None if magic != b'\037\213': > raise BadGzipFile('Not a gzipped file (%r)' % magic) E gzip.BadGzipFile: Not a gzipped file (b'(\xb5') /usr/lib64/python3.11/gzip.py:428: BadGzipFile ___________ TestModifyRepo.test_copr_repo_batched_already_processed ____________ self = f_second_build = def test_copr_repo_batched_already_processed(self, f_second_build): ctx = f_second_build chroot = ctx.chroots[0] chrootdir = os.path.join(ctx.empty_dir, chroot) repodata = os.path.join(chrootdir, 'repodata') > repoinfo = load_primary_xml(repodata) tests/test_modifyrepo.py:149: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/testlib/repodata.py:20: in load_primary_xml xml_content = fprimary.read() /usr/lib64/python3.11/gzip.py:301: in read return self._buffer.read(size) /usr/lib64/python3.11/_compression.py:118: in readall while data := self.read(sys.maxsize): /usr/lib64/python3.11/gzip.py:499: in read if not self._read_gzip_header(): /usr/lib64/python3.11/gzip.py:468: in _read_gzip_header last_mtime = _read_gzip_header(self._fp) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ fp = def _read_gzip_header(fp): '''Read a gzip header from `fp` and progress to the end of the header. Returns last mtime if header was present or None otherwise. ''' magic = fp.read(2) if magic == b'': return None if magic != b'\037\213': > raise BadGzipFile('Not a gzipped file (%r)' % magic) E gzip.BadGzipFile: Not a gzipped file (b'(\xb5') /usr/lib64/python3.11/gzip.py:428: BadGzipFile _______________ TestModifyRepo.test_copr_repo_batched_two_builds _______________ self = f_third_build = def test_copr_repo_batched_two_builds(self, f_third_build): """ Two finished builds requesting createrepo at the same time """ ctx = f_third_build chroot = ctx.chroots[0] chrootdir = os.path.join(ctx.empty_dir, chroot) repodata = os.path.join(chrootdir, 'repodata') > repoinfo = load_primary_xml(repodata) tests/test_modifyrepo.py:189: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/testlib/repodata.py:20: in load_primary_xml xml_content = fprimary.read() /usr/lib64/python3.11/gzip.py:301: in read return self._buffer.read(size) /usr/lib64/python3.11/_compression.py:118: in readall while data := self.read(sys.maxsize): /usr/lib64/python3.11/gzip.py:499: in read if not self._read_gzip_header(): /usr/lib64/python3.11/gzip.py:468: in _read_gzip_header last_mtime = _read_gzip_header(self._fp) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ fp = def _read_gzip_header(fp): '''Read a gzip header from `fp` and progress to the end of the header. Returns last mtime if header was present or None otherwise. ''' magic = fp.read(2) if magic == b'': return None if magic != b'\037\213': > raise BadGzipFile('Not a gzipped file (%r)' % magic) E gzip.BadGzipFile: Not a gzipped file (b'(\xb5') /usr/lib64/python3.11/gzip.py:428: BadGzipFile __________________ TestModifyRepo.test_copr_repo_batched_full __________________ self = f_third_build = def test_copr_repo_batched_full(self, f_third_build): """ Full createrepo which also does one removal and one addition for others. """ ctx = f_third_build chroot = ctx.chroots[0] chrootdir = os.path.join(ctx.empty_dir, chroot) repodata = os.path.join(chrootdir, 'repodata') # createrepo was not run for the packages, yet > repoinfo = load_primary_xml(repodata) tests/test_modifyrepo.py:224: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/testlib/repodata.py:20: in load_primary_xml xml_content = fprimary.read() /usr/lib64/python3.11/gzip.py:301: in read return self._buffer.read(size) /usr/lib64/python3.11/_compression.py:118: in readall while data := self.read(sys.maxsize): /usr/lib64/python3.11/gzip.py:499: in read if not self._read_gzip_header(): /usr/lib64/python3.11/gzip.py:468: in _read_gzip_header last_mtime = _read_gzip_header(self._fp) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ fp = def _read_gzip_header(fp): '''Read a gzip header from `fp` and progress to the end of the header. Returns last mtime if header was present or None otherwise. ''' magic = fp.read(2) if magic == b'': return None if magic != b'\037\213': > raise BadGzipFile('Not a gzipped file (%r)' % magic) E gzip.BadGzipFile: Not a gzipped file (b'(\xb5') /usr/lib64/python3.11/gzip.py:428: BadGzipFile ______________ TestModifyRepo.test_copr_repo_batched_others_full _______________ self = f_third_build = def test_copr_repo_batched_others_full(self, f_third_build): """ We add one build, but other request is to - remove one build - run full createrepo """ ctx = f_third_build chroot = ctx.chroots[0] chrootdir = os.path.join(ctx.empty_dir, chroot) repodata = os.path.join(chrootdir, 'repodata') # check no one run craterepo against the builds > repoinfo = load_primary_xml(repodata) tests/test_modifyrepo.py:261: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/testlib/repodata.py:20: in load_primary_xml xml_content = fprimary.read() /usr/lib64/python3.11/gzip.py:301: in read return self._buffer.read(size) /usr/lib64/python3.11/_compression.py:118: in readall while data := self.read(sys.maxsize): /usr/lib64/python3.11/gzip.py:499: in read if not self._read_gzip_header(): /usr/lib64/python3.11/gzip.py:468: in _read_gzip_header last_mtime = _read_gzip_header(self._fp) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ fp = def _read_gzip_header(fp): '''Read a gzip header from `fp` and progress to the end of the header. Returns last mtime if header was present or None otherwise. ''' magic = fp.read(2) if magic == b'': return None if magic != b'\037\213': > raise BadGzipFile('Not a gzipped file (%r)' % magic) E gzip.BadGzipFile: Not a gzipped file (b'(\xb5') /usr/lib64/python3.11/gzip.py:428: BadGzipFile _________________ TestModifyRepo.test_copr_repo_add_del_mixup __________________ self = f_third_build = def test_copr_repo_add_del_mixup(self, f_third_build): """ Check that if one process requests adding one build, and another removal, we still remove it. """ ctx = f_third_build chroot = ctx.chroots[0] chrootdir = os.path.join(ctx.empty_dir, chroot) repodata = os.path.join(chrootdir, 'repodata') > repoinfo = load_primary_xml(repodata) tests/test_modifyrepo.py:306: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/testlib/repodata.py:20: in load_primary_xml xml_content = fprimary.read() /usr/lib64/python3.11/gzip.py:301: in read return self._buffer.read(size) /usr/lib64/python3.11/_compression.py:118: in readall while data := self.read(sys.maxsize): /usr/lib64/python3.11/gzip.py:499: in read if not self._read_gzip_header(): /usr/lib64/python3.11/gzip.py:468: in _read_gzip_header last_mtime = _read_gzip_header(self._fp) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ fp = def _read_gzip_header(fp): '''Read a gzip header from `fp` and progress to the end of the header. Returns last mtime if header was present or None otherwise. ''' magic = fp.read(2) if magic == b'': return None if magic != b'\037\213': > raise BadGzipFile('Not a gzipped file (%r)' % magic) E gzip.BadGzipFile: Not a gzipped file (b'(\xb5') /usr/lib64/python3.11/gzip.py:428: BadGzipFile ________________ TestModifyRepo.test_copr_repo_add_subdir_devel ________________ self = f_acr_on_and_first_build = @mock.patch.dict(os.environ, {'COPR_TESTSUITE_NO_OUTPUT': '1'}) def test_copr_repo_add_subdir_devel(self, f_acr_on_and_first_build): _unused = self ctx = f_acr_on_and_first_build chroot = ctx.chroots[0] chrootdir = os.path.join(ctx.empty_dir, chroot) repodata = os.path.join(chrootdir, 'repodata') devel_repodata = os.path.join(chrootdir, 'devel', 'repodata') > empty_repodata = load_primary_xml(repodata) tests/test_modifyrepo.py:339: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/testlib/repodata.py:20: in load_primary_xml xml_content = fprimary.read() /usr/lib64/python3.11/gzip.py:301: in read return self._buffer.read(size) /usr/lib64/python3.11/_compression.py:118: in readall while data := self.read(sys.maxsize): /usr/lib64/python3.11/gzip.py:499: in read if not self._read_gzip_header(): /usr/lib64/python3.11/gzip.py:468: in _read_gzip_header last_mtime = _read_gzip_header(self._fp) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ fp = def _read_gzip_header(fp): '''Read a gzip header from `fp` and progress to the end of the header. Returns last mtime if header was present or None otherwise. ''' magic = fp.read(2) if magic == b'': return None if magic != b'\037\213': > raise BadGzipFile('Not a gzipped file (%r)' % magic) E gzip.BadGzipFile: Not a gzipped file (b'(\xb5') /usr/lib64/python3.11/gzip.py:428: BadGzipFile ______________________ TestModifyRepo.test_copr_repo_el5 _______________________ self = f_third_build = @pytest.mark.skipif( distro.id() == 'fedora' and int(distro.version()) >= 36, reason="createrepo_c dropped md5 checksum support" ) def test_copr_repo_el5(self, f_third_build): """ Test that special createrepo_c arguments are used when creating el5 repositories. """ _unused = self ctx = f_third_build chroot = ctx.chroots[0] old_chrootdir = os.path.join(ctx.empty_dir, chroot) # assure that it looks like el5 directory chrootdir = os.path.join(ctx.empty_dir, "rhel-5-x86_64") repodata = os.path.join(chrootdir, 'repodata') subprocess.check_call(["cp", "-r", old_chrootdir, chrootdir]) assert call_copr_repo(old_chrootdir, add=[ctx.builds[0]], delete=[ctx.builds[2]]) > assert call_copr_repo(chrootdir, add=[ctx.builds[0]], delete=[ctx.builds[2]]) E AssertionError: assert False E + where False = call_copr_repo('/tmp/copr-backend-test-h0ny2tvf/john/empty/rhel-5-x86_64', add=['00000001-prunerepo'], delete=['00000003-example']) tests/test_modifyrepo.py:452: AssertionError ______________________ TestModifyRepo.test_copr_repo_noop ______________________ self = f_second_build = def test_copr_repo_noop(self, f_second_build): """ When anyone requests removal (or addition) of directories which do not exist, there's no point in running the createrepo_c at all. """ ctx = f_second_build chroot = ctx.chroots[0] chrootdir = os.path.join(ctx.empty_dir, chroot) self.request_createrepo.get(chrootdir, { "add": [], "delete": ["non-existing-dir"], }) assert call_copr_repo(chrootdir, add=["non-existing-dir-2"]) repodata = os.path.join(chrootdir, 'repodata') > repoinfo = load_primary_xml(repodata) tests/test_modifyrepo.py:484: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/testlib/repodata.py:20: in load_primary_xml xml_content = fprimary.read() /usr/lib64/python3.11/gzip.py:301: in read return self._buffer.read(size) /usr/lib64/python3.11/_compression.py:118: in readall while data := self.read(sys.maxsize): /usr/lib64/python3.11/gzip.py:499: in read if not self._read_gzip_header(): /usr/lib64/python3.11/gzip.py:468: in _read_gzip_header last_mtime = _read_gzip_header(self._fp) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ fp = def _read_gzip_header(fp): '''Read a gzip header from `fp` and progress to the end of the header. Returns last mtime if header was present or None otherwise. ''' magic = fp.read(2) if magic == b'': return None if magic != b'\037\213': > raise BadGzipFile('Not a gzipped file (%r)' % magic) E gzip.BadGzipFile: Not a gzipped file (b'(\xb5') /usr/lib64/python3.11/gzip.py:428: BadGzipFile ______________________ TestModifyRepo.test_comps_present _______________________ self = f_third_build = def test_comps_present(self, f_third_build): _unused = self ctx = f_third_build chroot = ctx.chroots[0] chrootdir = os.path.join(ctx.empty_dir, chroot) copms_path = os.path.join(chrootdir, "comps.xml") with open(copms_path, "w"): pass assert call_copr_repo(chrootdir) name = glob.glob(os.path.join(chrootdir, "repodata", "*-comps.xml.gz")) > assert os.path.exists(name[0]) E IndexError: list index out of range tests/test_modifyrepo.py:551: IndexError _____________ TestModifyRepo.test_copr_repo_timeouted_check[True] ______________ self = f_second_build = run_bg = True @pytest.mark.parametrize('run_bg', [True, False]) @mock.patch.dict(os.environ, {'COPR_TESTSUITE_NO_OUTPUT': '1'}) def test_copr_repo_timeouted_check(self, f_second_build, run_bg): _unused = self ctx = f_second_build chroot = ctx.chroots[0] chrootdir = os.path.join(ctx.empty_dir, chroot) repodata = os.path.join(chrootdir, 'repodata') # empty repodata at the beginning > empty_repodata = load_primary_xml(repodata) tests/test_modifyrepo.py:584: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/testlib/repodata.py:20: in load_primary_xml xml_content = fprimary.read() /usr/lib64/python3.11/gzip.py:301: in read return self._buffer.read(size) /usr/lib64/python3.11/_compression.py:118: in readall while data := self.read(sys.maxsize): /usr/lib64/python3.11/gzip.py:499: in read if not self._read_gzip_header(): /usr/lib64/python3.11/gzip.py:468: in _read_gzip_header last_mtime = _read_gzip_header(self._fp) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ fp = def _read_gzip_header(fp): '''Read a gzip header from `fp` and progress to the end of the header. Returns last mtime if header was present or None otherwise. ''' magic = fp.read(2) if magic == b'': return None if magic != b'\037\213': > raise BadGzipFile('Not a gzipped file (%r)' % magic) E gzip.BadGzipFile: Not a gzipped file (b'(\xb5') /usr/lib64/python3.11/gzip.py:428: BadGzipFile _____________ TestModifyRepo.test_copr_repo_timeouted_check[False] _____________ self = f_second_build = run_bg = False @pytest.mark.parametrize('run_bg', [True, False]) @mock.patch.dict(os.environ, {'COPR_TESTSUITE_NO_OUTPUT': '1'}) def test_copr_repo_timeouted_check(self, f_second_build, run_bg): _unused = self ctx = f_second_build chroot = ctx.chroots[0] chrootdir = os.path.join(ctx.empty_dir, chroot) repodata = os.path.join(chrootdir, 'repodata') # empty repodata at the beginning > empty_repodata = load_primary_xml(repodata) tests/test_modifyrepo.py:584: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/testlib/repodata.py:20: in load_primary_xml xml_content = fprimary.read() /usr/lib64/python3.11/gzip.py:301: in read return self._buffer.read(size) /usr/lib64/python3.11/_compression.py:118: in readall while data := self.read(sys.maxsize): /usr/lib64/python3.11/gzip.py:499: in read if not self._read_gzip_header(): /usr/lib64/python3.11/gzip.py:468: in _read_gzip_header last_mtime = _read_gzip_header(self._fp) _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ fp = def _read_gzip_header(fp): '''Read a gzip header from `fp` and progress to the end of the header. Returns last mtime if header was present or None otherwise. ''' magic = fp.read(2) if magic == b'': return None if magic != b'\037\213': > raise BadGzipFile('Not a gzipped file (%r)' % magic) E gzip.BadGzipFile: Not a gzipped file (b'(\xb5') /usr/lib64/python3.11/gzip.py:428: BadGzipFile =============================== warnings summary =============================== tests/test_frontend.py:14 /builddir/build/BUILD/copr-backend-1.168/tests/test_frontend.py:14: PytestDeprecationWarning: @pytest.yield_fixture is deprecated. Use @pytest.fixture instead; they are the same. @pytest.yield_fixture tests/test_frontend.py:29 /builddir/build/BUILD/copr-backend-1.168/tests/test_frontend.py:29: PytestDeprecationWarning: @pytest.yield_fixture is deprecated. Use @pytest.fixture instead; they are the same. @pytest.yield_fixture tests/daemons/test_log.py:18 /builddir/build/BUILD/copr-backend-1.168/tests/daemons/test_log.py:18: PytestDeprecationWarning: @pytest.yield_fixture is deprecated. Use @pytest.fixture instead; they are the same. @pytest.yield_fixture tests/daemons/test_log.py:24 /builddir/build/BUILD/copr-backend-1.168/tests/daemons/test_log.py:24: PytestDeprecationWarning: @pytest.yield_fixture is deprecated. Use @pytest.fixture instead; they are the same. @pytest.yield_fixture tests/run/test_copr_prune_results.py:21 /builddir/build/BUILD/copr-backend-1.168/tests/run/test_copr_prune_results.py:21: PytestDeprecationWarning: @pytest.yield_fixture is deprecated. Use @pytest.fixture instead; they are the same. @pytest.yield_fixture tests/run/test_copr_prune_results.py:26 /builddir/build/BUILD/copr-backend-1.168/tests/run/test_copr_prune_results.py:26: PytestDeprecationWarning: @pytest.yield_fixture is deprecated. Use @pytest.fixture instead; they are the same. @pytest.yield_fixture tests/run/test_copr_prune_results.py:31 /builddir/build/BUILD/copr-backend-1.168/tests/run/test_copr_prune_results.py:31: PytestDeprecationWarning: @pytest.yield_fixture is deprecated. Use @pytest.fixture instead; they are the same. @pytest.yield_fixture tests/run/test_copr_prune_results.py:36 /builddir/build/BUILD/copr-backend-1.168/tests/run/test_copr_prune_results.py:36: PytestDeprecationWarning: @pytest.yield_fixture is deprecated. Use @pytest.fixture instead; they are the same. @pytest.yield_fixture -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html =========================== short test summary info ============================ FAILED tests/test_action.py::TestAction::test_delete_build_acr_reflected[False] FAILED tests/test_action.py::TestAction::test_delete_build_acr_reflected[True] FAILED tests/test_background_worker_build.py::test_full_rpm_build_no_sign - g... FAILED tests/test_modifyrepo.py::TestModifyRepo::test_copr_repo_add_subdir - ... FAILED tests/test_modifyrepo.py::TestModifyRepo::test_copr_repo_batched_createrepo FAILED tests/test_modifyrepo.py::TestModifyRepo::test_copr_repo_batched_already_processed FAILED tests/test_modifyrepo.py::TestModifyRepo::test_copr_repo_batched_two_builds FAILED tests/test_modifyrepo.py::TestModifyRepo::test_copr_repo_batched_full FAILED tests/test_modifyrepo.py::TestModifyRepo::test_copr_repo_batched_others_full FAILED tests/test_modifyrepo.py::TestModifyRepo::test_copr_repo_add_del_mixup FAILED tests/test_modifyrepo.py::TestModifyRepo::test_copr_repo_add_subdir_devel FAILED tests/test_modifyrepo.py::TestModifyRepo::test_copr_repo_el5 - Asserti... FAILED tests/test_modifyrepo.py::TestModifyRepo::test_copr_repo_noop - gzip.B... FAILED tests/test_modifyrepo.py::TestModifyRepo::test_comps_present - IndexEr... FAILED tests/test_modifyrepo.py::TestModifyRepo::test_copr_repo_timeouted_check[True] FAILED tests/test_modifyrepo.py::TestModifyRepo::test_copr_repo_timeouted_check[False] =========== 16 failed, 160 passed, 10 skipped, 8 warnings in 44.99s ============ [INFO/MainProcess] process shutting down [INFO/MainProcess] process shutting down + cleanup + redis-cli -p 7777 shutdown + wait error: Bad exit status from /var/tmp/rpm-tmp.nAmNVj (%check) RPM build errors: Bad exit status from /var/tmp/rpm-tmp.nAmNVj (%check) Child return code was: 1 EXCEPTION: [Error('Command failed: \n # bash --login -c /usr/bin/rpmbuild -bb --target x86_64 --nodeps /builddir/build/SPECS/copr-backend.spec\n', 1)] Traceback (most recent call last): File "/usr/lib/python3.9/site-packages/mockbuild/trace_decorator.py", line 93, in trace result = func(*args, **kw) File "/usr/lib/python3.9/site-packages/mockbuild/util.py", line 598, in do_with_status raise exception.Error("Command failed: \n # %s\n%s" % (command, output), child.returncode) mockbuild.exception.Error: Command failed: # bash --login -c /usr/bin/rpmbuild -bb --target x86_64 --nodeps /builddir/build/SPECS/copr-backend.spec