Mock Version: 2.16 Mock Version: 2.16 Mock Version: 2.16 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target ppc64le --nodeps /builddir/build/SPECS/prometheus-jmx-exporter.spec'], chrootPath='/home/mockroot/dist-circle8-ppc64le-build-49511-12624/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=995gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target ppc64le --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'} and shell False Building target platforms: ppc64le Building for target ppc64le Wrote: /builddir/build/SRPMS/prometheus-jmx-exporter-0.12.0-6.el8.src.rpm Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target ppc64le --nodeps /builddir/build/SPECS/prometheus-jmx-exporter.spec'], chrootPath='/home/mockroot/dist-circle8-ppc64le-build-49511-12624/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=995gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target ppc64le --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'} and shell False Building target platforms: ppc64le Building for target ppc64le Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.Zdwuz7 + 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 . Patch #1 (properly_rewrite_namespace.patch): + echo '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.VboSz7 + 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.SafeNameTest [INFO] Tests run: 14, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.078 s - in io.prometheus.jmx.SafeNameTest [INFO] Running io.prometheus.jmx.SnakeCaseAttrTest [INFO] Tests run: 15, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.001 s - in io.prometheus.jmx.SnakeCaseAttrTest [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] 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.JmxCollectorTest [ERROR] Tests run: 30, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 4.129 s <<< FAILURE! - in io.prometheus.jmx.JmxCollectorTest [ERROR] testBillionLaughs(io.prometheus.jmx.JmxCollectorTest) Time elapsed: 0.011 s <<< FAILURE! java.lang.AssertionError: Excected yaml exception due to billion laughs at io.prometheus.jmx.JmxCollectorTest.testBillionLaughs(JmxCollectorTest.java:268) [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.002 s] [INFO] collector .......................................... FAILURE [ 12.242 s] [INFO] jmx_prometheus_httpserver .......................... SKIPPED [INFO] jmx_prometheus_javaagent 0.12.0 .................... SKIPPED [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 13.192 s [INFO] Finished at: 2022-04-14T22:30:49+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.VboSz7 (%build) Bad exit status from /var/tmp/rpm-tmp.VboSz7 (%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 599, 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 ppc64le --nodeps /builddir/build/SPECS/prometheus-jmx-exporter.spec