Mock Version: 3.5 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target x86_64 --nodeps /builddir/build/SPECS/copr-keygen.spec'], chrootPath='/var/lib/mock/rhel+epel-9-x86_64-1683740443.002912/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=FalseprintOutput=True) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target x86_64 --nodeps /builddir/build/SPECS/copr-keygen.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 setting SOURCE_DATE_EPOCH=1674518400 Wrote: /builddir/build/SRPMS/copr-keygen-1.88-1.el9.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-keygen.spec'], chrootPath='/var/lib/mock/rhel+epel-9-x86_64-1683740443.002912/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=FalseprintOutput=True) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target x86_64 --nodeps /builddir/build/SPECS/copr-keygen.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 setting SOURCE_DATE_EPOCH=1674518400 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.410acK + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf copr-keygen-1.88 + /usr/bin/gzip -dc /builddir/build/SOURCES/copr-keygen-1.88.tar.gz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd copr-keygen-1.88 + /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.drcynD + umask 022 + cd /builddir/build/BUILD + cd copr-keygen-1.88 + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection' + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 ' + /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_keygen copying src/copr_keygen/util.py -> build/lib/copr_keygen copying src/copr_keygen/logic.py -> build/lib/copr_keygen copying src/copr_keygen/gpg.py -> build/lib/copr_keygen copying src/copr_keygen/exceptions.py -> build/lib/copr_keygen copying src/copr_keygen/default_settings.py -> build/lib/copr_keygen copying src/copr_keygen/__init__.py -> build/lib/copr_keygen running egg_info creating src/copr_keygen.egg-info writing src/copr_keygen.egg-info/PKG-INFO writing dependency_links to src/copr_keygen.egg-info/dependency_links.txt writing requirements to src/copr_keygen.egg-info/requires.txt writing top-level names to src/copr_keygen.egg-info/top_level.txt writing manifest file 'src/copr_keygen.egg-info/SOURCES.txt' reading manifest file 'src/copr_keygen.egg-info/SOURCES.txt' adding license file 'LICENSE' writing manifest file 'src/copr_keygen.egg-info/SOURCES.txt' + make -C docs -j2 html make: Entering directory '/builddir/build/BUILD/copr-keygen-1.88/docs' sphinx-build-3 -b html -d _build/doctrees . _build/html Running Sphinx v4.4.0 making output directory... done WARNING: html_static_path entry '_static' does not exist building [mo]: targets for 0 po files that are out of date building [html]: targets for 4 source files that are out of date updating environment: [new config] 4 added, 0 changed, 0 removed reading sources... [ 25%] Autodoc reading sources... [ 50%] INSTALL reading sources... [ 75%] README reading sources... [100%] index looking for now-outdated files... /builddir/build/BUILD/copr-keygen-1.88/src/copr_keygen/logic.py:docstring of copr_keygen.logic.validate_name_email:4: WARNING: Definition list ends without a blank line; unexpected unindent. none found pickling environment... done checking consistency... done preparing documents... done writing output... [ 25%] Autodoc writing output... [ 50%] INSTALL writing output... [ 75%] README writing output... [100%] index generating indices... :1: WARNING: Could not lex literal_block as "http". Highlighting skipped. genindex http-routingtable py-modindex done highlighting module code... [ 50%] copr_keygen.exceptions highlighting module code... [100%] copr_keygen.logic 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, 3 warnings. The HTML pages are in _build/html. Build finished. The HTML pages are in _build/html. make: Leaving directory '/builddir/build/BUILD/copr-keygen-1.88/docs' + RPM_EC=0 ++ jobs -p + exit 0 Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.P91ZCE + umask 022 + cd /builddir/build/BUILD + '[' /builddir/build/BUILDROOT/copr-keygen-1.88-1.el9.x86_64 '!=' / ']' + rm -rf /builddir/build/BUILDROOT/copr-keygen-1.88-1.el9.x86_64 ++ dirname /builddir/build/BUILDROOT/copr-keygen-1.88-1.el9.x86_64 + mkdir -p /builddir/build/BUILDROOT + mkdir /builddir/build/BUILDROOT/copr-keygen-1.88-1.el9.x86_64 + cd copr-keygen-1.88 + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection' + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 ' + /usr/bin/python3 setup.py install -O1 --skip-build --root /builddir/build/BUILDROOT/copr-keygen-1.88-1.el9.x86_64 running install running install_lib creating /builddir/build/BUILDROOT/copr-keygen-1.88-1.el9.x86_64/usr creating /builddir/build/BUILDROOT/copr-keygen-1.88-1.el9.x86_64/usr/lib creating /builddir/build/BUILDROOT/copr-keygen-1.88-1.el9.x86_64/usr/lib/python3.9 creating /builddir/build/BUILDROOT/copr-keygen-1.88-1.el9.x86_64/usr/lib/python3.9/site-packages creating /builddir/build/BUILDROOT/copr-keygen-1.88-1.el9.x86_64/usr/lib/python3.9/site-packages/copr_keygen copying build/lib/copr_keygen/__init__.py -> /builddir/build/BUILDROOT/copr-keygen-1.88-1.el9.x86_64/usr/lib/python3.9/site-packages/copr_keygen copying build/lib/copr_keygen/default_settings.py -> /builddir/build/BUILDROOT/copr-keygen-1.88-1.el9.x86_64/usr/lib/python3.9/site-packages/copr_keygen copying build/lib/copr_keygen/exceptions.py -> /builddir/build/BUILDROOT/copr-keygen-1.88-1.el9.x86_64/usr/lib/python3.9/site-packages/copr_keygen copying build/lib/copr_keygen/gpg.py -> /builddir/build/BUILDROOT/copr-keygen-1.88-1.el9.x86_64/usr/lib/python3.9/site-packages/copr_keygen copying build/lib/copr_keygen/logic.py -> /builddir/build/BUILDROOT/copr-keygen-1.88-1.el9.x86_64/usr/lib/python3.9/site-packages/copr_keygen copying build/lib/copr_keygen/util.py -> /builddir/build/BUILDROOT/copr-keygen-1.88-1.el9.x86_64/usr/lib/python3.9/site-packages/copr_keygen byte-compiling /builddir/build/BUILDROOT/copr-keygen-1.88-1.el9.x86_64/usr/lib/python3.9/site-packages/copr_keygen/__init__.py to __init__.cpython-39.pyc byte-compiling /builddir/build/BUILDROOT/copr-keygen-1.88-1.el9.x86_64/usr/lib/python3.9/site-packages/copr_keygen/default_settings.py to default_settings.cpython-39.pyc byte-compiling /builddir/build/BUILDROOT/copr-keygen-1.88-1.el9.x86_64/usr/lib/python3.9/site-packages/copr_keygen/exceptions.py to exceptions.cpython-39.pyc byte-compiling /builddir/build/BUILDROOT/copr-keygen-1.88-1.el9.x86_64/usr/lib/python3.9/site-packages/copr_keygen/gpg.py to gpg.cpython-39.pyc byte-compiling /builddir/build/BUILDROOT/copr-keygen-1.88-1.el9.x86_64/usr/lib/python3.9/site-packages/copr_keygen/logic.py to logic.cpython-39.pyc byte-compiling /builddir/build/BUILDROOT/copr-keygen-1.88-1.el9.x86_64/usr/lib/python3.9/site-packages/copr_keygen/util.py to util.cpython-39.pyc writing byte-compilation script '/tmp/tmpxhxn1jm0.py' /usr/bin/python3 /tmp/tmpxhxn1jm0.py removing /tmp/tmpxhxn1jm0.py running install_egg_info running egg_info creating src/copr_keygen.egg-info writing src/copr_keygen.egg-info/PKG-INFO writing dependency_links to src/copr_keygen.egg-info/dependency_links.txt writing requirements to src/copr_keygen.egg-info/requires.txt writing top-level names to src/copr_keygen.egg-info/top_level.txt writing manifest file 'src/copr_keygen.egg-info/SOURCES.txt' reading manifest file 'src/copr_keygen.egg-info/SOURCES.txt' adding license file 'LICENSE' writing manifest file 'src/copr_keygen.egg-info/SOURCES.txt' Copying src/copr_keygen.egg-info to /builddir/build/BUILDROOT/copr-keygen-1.88-1.el9.x86_64/usr/lib/python3.9/site-packages/copr_keygen-1.88-py3.9.egg-info running install_scripts + rm -rfv /builddir/build/BUILDROOT/copr-keygen-1.88-1.el9.x86_64/usr/bin/__pycache__ + find /builddir/build/BUILDROOT/copr-keygen-1.88-1.el9.x86_64 -name '*.exe' -delete + install -d /builddir/build/BUILDROOT/copr-keygen-1.88-1.el9.x86_64/etc/copr-keygen + install -d /builddir/build/BUILDROOT/copr-keygen-1.88-1.el9.x86_64/etc/sudoers.d + install -d /builddir/build/BUILDROOT/copr-keygen-1.88-1.el9.x86_64/usr/share/doc/copr-keygen + install -d /builddir/build/BUILDROOT/copr-keygen-1.88-1.el9.x86_64/usr/share/doc/copr-keygen/httpd + install -d /builddir/build/BUILDROOT/copr-keygen-1.88-1.el9.x86_64/usr/share/doc/copr-keygen/sign + install -d /builddir/build/BUILDROOT/copr-keygen-1.88-1.el9.x86_64/usr/share/copr-keygen + install -d /builddir/build/BUILDROOT/copr-keygen-1.88-1.el9.x86_64/usr/bin + install -d -m 500 /builddir/build/BUILDROOT/copr-keygen-1.88-1.el9.x86_64/var/lib/copr-keygen/phrases + install -d -m 500 /builddir/build/BUILDROOT/copr-keygen-1.88-1.el9.x86_64/var/lib/copr-keygen/gnupg + install -d /builddir/build/BUILDROOT/copr-keygen-1.88-1.el9.x86_64/var/log/copr-keygen + install -d /builddir/build/BUILDROOT/copr-keygen-1.88-1.el9.x86_64/etc/logrotate.d/ + install -d /builddir/build/BUILDROOT/copr-keygen-1.88-1.el9.x86_64/etc/cron.daily + /usr/bin/install -p -m 0755 run/gpg_copr.sh /builddir/build/BUILDROOT/copr-keygen-1.88-1.el9.x86_64//usr/bin/gpg_copr.sh + /usr/bin/install -p -m 0755 run/gpg-copr /builddir/build/BUILDROOT/copr-keygen-1.88-1.el9.x86_64//usr/bin/ + /usr/bin/install -p -m 0755 run/gpg-copr-prolong /builddir/build/BUILDROOT/copr-keygen-1.88-1.el9.x86_64//usr/bin/ + /usr/bin/install -p -m 0755 run/application.py /builddir/build/BUILDROOT/copr-keygen-1.88-1.el9.x86_64/usr/share/copr-keygen/ + /usr/bin/install -p -m 0644 configs/httpd/copr-keygen.conf.example /builddir/build/BUILDROOT/copr-keygen-1.88-1.el9.x86_64/usr/share/doc/copr-keygen/httpd/ + /usr/bin/install -p -m 0644 configs/logrotate /builddir/build/BUILDROOT/copr-keygen-1.88-1.el9.x86_64/etc/logrotate.d/copr-keygen + /usr/bin/install -p -m 0644 configs/sign/sign.conf.example /builddir/build/BUILDROOT/copr-keygen-1.88-1.el9.x86_64/usr/share/doc/copr-keygen/sign/sign.conf.example + /usr/bin/install -p -m 0755 configs/cron.daily /builddir/build/BUILDROOT/copr-keygen-1.88-1.el9.x86_64/etc/cron.daily/copr-keygen + cp -a configs/sudoers/copr_signer /builddir/build/BUILDROOT/copr-keygen-1.88-1.el9.x86_64/etc/sudoers.d/copr_signer + cp -a docs/_build/html /builddir/build/BUILDROOT/copr-keygen-1.88-1.el9.x86_64/usr/share/doc/copr-keygen/ + /usr/lib/rpm/find-debuginfo.sh -j2 --strict-build-id -m -i --build-id-seed 1.88-1.el9 --unique-debug-suffix -1.88-1.el9.x86_64 --unique-debug-src-base copr-keygen-1.88-1.el9.x86_64 --run-dwz --dwz-low-mem-die-limit 10000000 --dwz-max-die-limit 110000000 --remove-section .gnu.build.attributes -S debugsourcefiles.list /builddir/build/BUILD/copr-keygen-1.88 find: 'debug': No such file or directory + /usr/lib/rpm/check-buildroot + /usr/lib/rpm/redhat/brp-ldconfig + /usr/lib/rpm/brp-compress + /usr/lib/rpm/redhat/brp-strip-lto /usr/bin/strip + /usr/lib/rpm/brp-strip-static-archive /usr/bin/strip + /usr/lib/rpm/redhat/brp-python-bytecompile '' 1 0 Bytecompiling .py files below /builddir/build/BUILDROOT/copr-keygen-1.88-1.el9.x86_64/usr/lib/python3.9 using python3.9 + /usr/lib/rpm/brp-python-hardlink + /usr/lib/rpm/redhat/brp-mangle-shebangs mangling shebang in /etc/cron.daily/copr-keygen from /bin/sh to #!/usr/bin/sh mangling shebang in /usr/bin/gpg-copr-prolong from /bin/sh to #!/usr/bin/sh mangling shebang in /usr/bin/gpg_copr.sh from /bin/sh to #!/usr/bin/sh *** WARNING: ./usr/share/copr-keygen/application.py is executable but has no shebang, removing executable bit Executing(%check): /bin/sh -e /var/tmp/rpm-tmp.uMhpS6 + umask 022 + cd /builddir/build/BUILD + cd copr-keygen-1.88 + ./run_tests.sh -vv --no-cov ============================= test session starts ============================== platform linux -- Python 3.9.16, pytest-6.2.2, py-1.10.0, pluggy-0.13.1 -- /usr/bin/python3 cachedir: .pytest_cache rootdir: /builddir/build/BUILD/copr-keygen-1.88 collecting ... collected 21 items tests/test_handles.py::test_ping PASSED [ 4%] tests/test_handles.py::TestGenKey::test_gen_key PASSED [ 9%] tests/test_handles.py::TestGenKey::test_gen_key_user_not_exists PASSED [ 14%] tests/test_handles.py::TestGenKey::test_gen_key_with_existing_user PASSED [ 19%] tests/test_handles.py::TestGenKey::test_server_error_at_user_exists PASSED [ 23%] tests/test_handles.py::TestGenKey::test_server_error_at_create_new_key PASSED [ 28%] tests/test_logging.py::TestRemoteAddrFilter::test_backend PASSED [ 33%] tests/test_logging.py::TestRemoteAddrFilter::test_server PASSED [ 38%] tests/test_logic.py::TestEnsurePassphrase::test_add_content_to_empty_file PASSED [ 42%] tests/test_logic.py::TestEnsurePassphrase::test_file_creation PASSED [ 47%] tests/test_logic.py::test_ensure_passphrase_exist PASSED [ 52%] tests/test_logic.py::TestUserExists::test_exists PASSED [ 57%] tests/test_logic.py::TestUserExists::test_gpg_unknown_err PASSED [ 61%] tests/test_logic.py::TestUserExists::test_not_exists PASSED [ 66%] tests/test_logic.py::TestUserExists::test_popen_unknown_err PASSED [ 71%] tests/test_logic.py::TestGenKey::test_error_gpg PASSED [ 76%] tests/test_logic.py::TestGenKey::test_error_popen PASSED [ 80%] tests/test_logic.py::TestGenKey::test_simple_create PASSED [ 85%] tests/test_logic.py::TestGenKey::test_strange_situation_create PASSED [ 90%] tests/test_logic.py::TestGenKey::test_tmpfiles_errors PASSED [ 95%] tests/test_logic.py::TestGenKey::test_validate_name_email PASSED [100%] ============================== 21 passed in 0.21s ============================== + RPM_EC=0 ++ jobs -p + exit 0 Processing files: copr-keygen-1.88-1.el9.noarch Executing(%doc): /bin/sh -e /var/tmp/rpm-tmp.6b1YVB + umask 022 + cd /builddir/build/BUILD + cd copr-keygen-1.88 + DOCDIR=/builddir/build/BUILDROOT/copr-keygen-1.88-1.el9.x86_64/usr/share/doc/copr-keygen + export LC_ALL=C + LC_ALL=C + export DOCDIR + /usr/bin/mkdir -p /builddir/build/BUILDROOT/copr-keygen-1.88-1.el9.x86_64/usr/share/doc/copr-keygen + cp -pr docs/INSTALL.rst /builddir/build/BUILDROOT/copr-keygen-1.88-1.el9.x86_64/usr/share/doc/copr-keygen + cp -pr docs/README.rst /builddir/build/BUILDROOT/copr-keygen-1.88-1.el9.x86_64/usr/share/doc/copr-keygen + cp -pr configs/local_settings.py.example /builddir/build/BUILDROOT/copr-keygen-1.88-1.el9.x86_64/usr/share/doc/copr-keygen + RPM_EC=0 ++ jobs -p + exit 0 Executing(%license): /bin/sh -e /var/tmp/rpm-tmp.FO20zp + umask 022 + cd /builddir/build/BUILD + cd copr-keygen-1.88 + LICENSEDIR=/builddir/build/BUILDROOT/copr-keygen-1.88-1.el9.x86_64/usr/share/licenses/copr-keygen + export LC_ALL=C + LC_ALL=C + export LICENSEDIR + /usr/bin/mkdir -p /builddir/build/BUILDROOT/copr-keygen-1.88-1.el9.x86_64/usr/share/licenses/copr-keygen + cp -pr LICENSE /builddir/build/BUILDROOT/copr-keygen-1.88-1.el9.x86_64/usr/share/licenses/copr-keygen + RPM_EC=0 ++ jobs -p + exit 0 Provides: config(copr-keygen) = 1.88-1.el9 copr-keygen = 1.88-1.el9 python3.9dist(copr-keygen) = 1.88 python3dist(copr-keygen) = 1.88 Requires(interp): /bin/sh /bin/sh /bin/sh Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PartialHardlinkSets) <= 4.0.4-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Requires(pre): /bin/sh Requires(post): /bin/sh Requires(postun): /bin/sh Requires: /usr/bin/python3 /usr/bin/sh python(abi) = 3.9 python3.9dist(flask) python3.9dist(six) python3.9dist(sphinxcontrib-httpdomain) Recommends: logrotate Processing files: copr-keygen-doc-1.88-1.el9.noarch Provides: copr-keygen-doc = 1.88-1.el9 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Obsoletes: copr-doc < 1.38 Checking for unpackaged file(s): /usr/lib/rpm/check-files /builddir/build/BUILDROOT/copr-keygen-1.88-1.el9.x86_64 Wrote: /builddir/build/RPMS/copr-keygen-1.88-1.el9.noarch.rpm Wrote: /builddir/build/RPMS/copr-keygen-doc-1.88-1.el9.noarch.rpm Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.wZTsFg + umask 022 + cd /builddir/build/BUILD + cd copr-keygen-1.88 + /usr/bin/rm -rf /builddir/build/BUILDROOT/copr-keygen-1.88-1.el9.x86_64 + RPM_EC=0 ++ jobs -p + exit 0 Child return code was: 0