Mock Version: 2.9 Mock Version: 2.9 Mock Version: 2.9 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target noarch --nodeps /builddir/build/SPECS/prometheus-jmx-exporter.spec'], chrootPath='/var/lib/mock/dist-circle8-build-14113-2956/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=86400uid=993gid=135user='mockbuild'nspawn_args=['--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.tocyvj77:/etc/resolv.conf', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11']unshare_net=TrueprintOutput=False) Using nspawn with args ['--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.tocyvj77:/etc/resolv.conf', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11'] Executing command: ['/usr/bin/systemd-nspawn', '-q', '-M', 'bcf241dc6d1d477d9bad263df0435642', '-D', '/var/lib/mock/dist-circle8-build-14113-2956/root', '-a', '-u', 'mockbuild', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.tocyvj77:/etc/resolv.conf', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11', '--setenv=TERM=vt100', '--setenv=SHELL=/bin/bash', '--setenv=HOME=/builddir', '--setenv=HOSTNAME=mock', '--setenv=PATH=/usr/bin:/bin:/usr/sbin:/sbin', '--setenv=PROMPT_COMMAND=printf "\\033]0;\\007"', '--setenv=PS1= \\s-\\v\\$ ', '--setenv=LANG=C.UTF-8', '--resolv-conf=off', 'bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target noarch --nodeps /builddir/build/SPECS/prometheus-jmx-exporter.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', 'SYSTEMD_NSPAWN_TMPFS_TMP': '0'} and shell False Building target platforms: noarch Building for target noarch Wrote: /builddir/build/SRPMS/prometheus-jmx-exporter-0.12.0-6.el8_3.src.rpm Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target noarch --nodeps /builddir/build/SPECS/prometheus-jmx-exporter.spec'], chrootPath='/var/lib/mock/dist-circle8-build-14113-2956/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=86400uid=993gid=135user='mockbuild'nspawn_args=['--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.tocyvj77:/etc/resolv.conf', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11']unshare_net=TrueprintOutput=False) Using nspawn with args ['--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.tocyvj77:/etc/resolv.conf', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11'] Executing command: ['/usr/bin/systemd-nspawn', '-q', '-M', '99871ace2cac4843aa8fd72bf0f64a49', '-D', '/var/lib/mock/dist-circle8-build-14113-2956/root', '-a', '-u', 'mockbuild', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.tocyvj77:/etc/resolv.conf', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11', '--setenv=TERM=vt100', '--setenv=SHELL=/bin/bash', '--setenv=HOME=/builddir', '--setenv=HOSTNAME=mock', '--setenv=PATH=/usr/bin:/bin:/usr/sbin:/sbin', '--setenv=PROMPT_COMMAND=printf "\\033]0;\\007"', '--setenv=PS1= \\s-\\v\\$ ', '--setenv=LANG=C.UTF-8', '--resolv-conf=off', 'bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target noarch --nodeps /builddir/build/SPECS/prometheus-jmx-exporter.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', 'SYSTEMD_NSPAWN_TMPFS_TMP': '0'} and shell False Building target platforms: noarch Building for target noarch Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.yvZMaJ + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf jmx_exporter-parent-0.12.0 + /usr/bin/gzip -dc /builddir/build/SOURCES/parent-0.12.0.tar.gz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd jmx_exporter-parent-0.12.0 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + echo 'Patch #1 (properly_rewrite_namespace.patch):' Patch #1 (properly_rewrite_namespace.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file jmx_prometheus_javaagent/pom.xml Patch #2 (0001-Fix-CVE-2017-18640-and-add-a-test.patch): + echo 'Patch #2 (0001-Fix-CVE-2017-18640-and-add-a-test.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file collector/pom.xml patching file collector/src/main/java/io/prometheus/jmx/JmxCollector.java patching file collector/src/test/java/io/prometheus/jmx/JmxCollectorTest.java patching file collector/src/test/resources/testyaml.config + /usr/libexec/platform-python /usr/share/java-utils/pom_editor.py pom_remove_plugin org.vafer:jdeb jmx_prometheus_httpserver + /usr/libexec/platform-python /usr/share/java-utils/pom_editor.py pom_remove_plugin org.apache.maven.plugins:maven-failsafe-plugin jmx_prometheus_javaagent + /usr/libexec/platform-python /usr/share/java-utils/pom_editor.py pom_remove_plugin org.codehaus.mojo:build-helper-maven-plugin jmx_prometheus_javaagent + /usr/libexec/platform-python /usr/share/java-utils/mvn_package.py io.prometheus.jmx:jmx_prometheus_httpserver __noinstall + /usr/libexec/platform-python /usr/share/java-utils/mvn_package.py io.prometheus.jmx:parent __noinstall + /usr/libexec/platform-python /usr/share/java-utils/pom_editor.py pom_xpath_remove pom:project/pom:parent + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.e1m8M4 + umask 022 + cd /builddir/build/BUILD + cd jmx_exporter-parent-0.12.0 + /usr/libexec/platform-python /usr/share/java-utils/mvn_build.py --xmvn-javadoc -j Executing: xmvn --batch-mode --offline verify org.fedoraproject.xmvn:xmvn-mojo:install org.fedoraproject.xmvn:xmvn-mojo:builddep ['xmvn', '--batch-mode', '--offline', 'verify', 'org.fedoraproject.xmvn:xmvn-mojo:install', 'org.fedoraproject.xmvn:xmvn-mojo:builddep'] [INFO] Scanning for projects... [INFO] ------------------------------------------------------------------------ [INFO] Reactor Build Order: [INFO] [INFO] parent [pom] [INFO] collector [jar] [INFO] jmx_prometheus_httpserver [jar] [INFO] jmx_prometheus_javaagent [jar] [INFO] [INFO] ----------------------< io.prometheus.jmx:parent >---------------------- [INFO] Building parent 0.12.0 [1/4] [INFO] --------------------------------[ pom ]--------------------------------- [INFO] [INFO] --------------------< io.prometheus.jmx:collector >--------------------- [INFO] Building collector 0.12.0 [2/4] [INFO] --------------------------------[ jar ]--------------------------------- [INFO] [INFO] --- maven-resources-plugin:3.1.0:resources (default-resources) @ collector --- [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] skip non existing resourceDirectory /builddir/build/BUILD/jmx_exporter-parent-0.12.0/collector/src/main/resources [INFO] [INFO] --- maven-compiler-plugin:3.7.0:compile (default-compile) @ collector --- [INFO] Changes detected - recompiling the module! [INFO] Compiling 4 source files to /builddir/build/BUILD/jmx_exporter-parent-0.12.0/collector/target/classes [INFO] /builddir/build/BUILD/jmx_exporter-parent-0.12.0/collector/src/main/java/io/prometheus/jmx/JmxCollector.java: /builddir/build/BUILD/jmx_exporter-parent-0.12.0/collector/src/main/java/io/prometheus/jmx/JmxCollector.java uses unchecked or unsafe operations. [INFO] /builddir/build/BUILD/jmx_exporter-parent-0.12.0/collector/src/main/java/io/prometheus/jmx/JmxCollector.java: Recompile with -Xlint:unchecked for details. [INFO] [INFO] --- maven-resources-plugin:3.1.0:testResources (default-testResources) @ collector --- [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] Copying 2 resources [INFO] [INFO] --- maven-compiler-plugin:3.7.0:testCompile (default-testCompile) @ collector --- [INFO] Changes detected - recompiling the module! [INFO] Compiling 12 source files to /builddir/build/BUILD/jmx_exporter-parent-0.12.0/collector/target/test-classes [INFO] [INFO] --- maven-surefire-plugin:2.22.0:test (default-test) @ collector --- [INFO] [INFO] ------------------------------------------------------- [INFO] T E S T S [INFO] ------------------------------------------------------- [INFO] Running io.prometheus.jmx.SnakeCaseAttrTest [INFO] Tests run: 15, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.047 s - in io.prometheus.jmx.SnakeCaseAttrTest [INFO] Running io.prometheus.jmx.JmxCollectorTest [ERROR] Tests run: 30, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 2.616 s <<< FAILURE! - in io.prometheus.jmx.JmxCollectorTest [ERROR] testBillionLaughs(io.prometheus.jmx.JmxCollectorTest) Time elapsed: 0.006 s <<< FAILURE! java.lang.AssertionError: Excected yaml exception due to billion laughs at io.prometheus.jmx.JmxCollectorTest.testBillionLaughs(JmxCollectorTest.java:268) [INFO] Running io.prometheus.jmx.BuildInfoCollectorTest [INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 s - in io.prometheus.jmx.BuildInfoCollectorTest [INFO] Running io.prometheus.jmx.JmxMBeanPropertyCacheTest [INFO] Tests run: 13, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.001 s - in io.prometheus.jmx.JmxMBeanPropertyCacheTest [INFO] Running io.prometheus.jmx.SafeNameTest [INFO] Tests run: 14, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 s - in io.prometheus.jmx.SafeNameTest [INFO] Running io.prometheus.jmx.TomcatPatternCheckTest [INFO] Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 s - in io.prometheus.jmx.TomcatPatternCheckTest [INFO] [INFO] Results: [INFO] [ERROR] Failures: [ERROR] JmxCollectorTest.testBillionLaughs:268 Excected yaml exception due to billion laughs [INFO] [ERROR] Tests run: 76, Failures: 1, Errors: 0, Skipped: 0 [INFO] [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Skipping parent [INFO] This project has been banned from the build due to previous failures. [INFO] ------------------------------------------------------------------------ [INFO] ------------------------------------------------------------------------ [INFO] Reactor Summary: [INFO] [INFO] parent 0.12.0 ...................................... SUCCESS [ 0.001 s] [INFO] collector .......................................... FAILURE [ 10.866 s] [INFO] jmx_prometheus_httpserver .......................... SKIPPED [INFO] jmx_prometheus_javaagent 0.12.0 .................... SKIPPED [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 11.406 s [INFO] Finished at: 2021-05-25T22:13:36+08:00 [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.22.0:test (default-test) on project collector: There are test failures. [ERROR] [ERROR] Please refer to /builddir/build/BUILD/jmx_exporter-parent-0.12.0/collector/target/surefire-reports for the individual test results. [ERROR] Please refer to dump files (if any exist) [date]-jvmRun[N].dump, [date].dumpstream and [date]-jvmRun[N].dumpstream. [ERROR] -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException [ERROR] [ERROR] After correcting the problems, you can resume the build with the command [ERROR] mvn -rf :collector error: Bad exit status from /var/tmp/rpm-tmp.e1m8M4 (%build) Bad exit status from /var/tmp/rpm-tmp.e1m8M4 (%build) RPM build errors: Child return code was: 1 EXCEPTION: [Error()] Traceback (most recent call last): File "/usr/lib/python3.6/site-packages/mockbuild/trace_decorator.py", line 93, in trace result = func(*args, **kw) File "/usr/lib/python3.6/site-packages/mockbuild/util.py", line 600, in do_with_status raise exception.Error("Command failed: \n # %s\n%s" % (command, output), child.returncode) mockbuild.exception.Error: Command failed: # /usr/bin/systemd-nspawn -q -M 99871ace2cac4843aa8fd72bf0f64a49 -D /var/lib/mock/dist-circle8-build-14113-2956/root -a -u mockbuild --capability=cap_ipc_lock --bind=/tmp/mock-resolv.tocyvj77:/etc/resolv.conf --bind=/dev/loop-control --bind=/dev/loop0 --bind=/dev/loop1 --bind=/dev/loop2 --bind=/dev/loop3 --bind=/dev/loop4 --bind=/dev/loop5 --bind=/dev/loop6 --bind=/dev/loop7 --bind=/dev/loop8 --bind=/dev/loop9 --bind=/dev/loop10 --bind=/dev/loop11 --setenv=TERM=vt100 --setenv=SHELL=/bin/bash --setenv=HOME=/builddir --setenv=HOSTNAME=mock --setenv=PATH=/usr/bin:/bin:/usr/sbin:/sbin --setenv=PROMPT_COMMAND=printf "\033]0;\007" --setenv=PS1= \s-\v\$ --setenv=LANG=C.UTF-8 --resolv-conf=off bash --login -c /usr/bin/rpmbuild -bb --target noarch --nodeps /builddir/build/SPECS/prometheus-jmx-exporter.spec