D: [iurt_root_command] chroot Building target platforms: noarch Building for target noarch warning: /home/pterjan/rpmbuild/SPECS/golang-github-prometheus-exporter-toolkit.spec line 40: autopatch: no matching patches in range Installing /home/pterjan/rpmbuild/SRPMS/golang-github-prometheus-exporter-toolkit-0.13.2-1.mga10.src.rpm Executing(%mkbuilddir): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.08hQuv + umask 022 + cd /home/pterjan/rpmbuild/BUILD/golang-github-prometheus-exporter-toolkit-0.13.2-build + test -d /home/pterjan/rpmbuild/BUILD/golang-github-prometheus-exporter-toolkit-0.13.2-build + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w /home/pterjan/rpmbuild/BUILD/golang-github-prometheus-exporter-toolkit-0.13.2-build + /usr/bin/rm -rf /home/pterjan/rpmbuild/BUILD/golang-github-prometheus-exporter-toolkit-0.13.2-build + /usr/bin/mkdir -p /home/pterjan/rpmbuild/BUILD/golang-github-prometheus-exporter-toolkit-0.13.2-build + /usr/bin/mkdir -p /home/pterjan/rpmbuild/BUILD/golang-github-prometheus-exporter-toolkit-0.13.2-build/SPECPARTS + RPM_EC=0 ++ jobs -p + exit 0 Executing(%prep): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.iQgsUu + umask 022 + cd /home/pterjan/rpmbuild/BUILD/golang-github-prometheus-exporter-toolkit-0.13.2-build + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + cd /home/pterjan/rpmbuild/BUILD/golang-github-prometheus-exporter-toolkit-0.13.2-build + rm -rf exporter-toolkit-0.13.2 + /usr/lib/rpm/rpmuncompress -x /home/pterjan/rpmbuild/SOURCES/exporter-toolkit-0.13.2.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + cd exporter-toolkit-0.13.2 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + rm -fr /home/pterjan/rpmbuild/BUILD/golang-github-prometheus-exporter-toolkit-0.13.2-build/exporter-toolkit-0.13.2/vendor + [[ ! -e /home/pterjan/rpmbuild/BUILD/golang-github-prometheus-exporter-toolkit-0.13.2-build/exporter-toolkit-0.13.2/_build/bin ]] + install -m 0755 -vd /home/pterjan/rpmbuild/BUILD/golang-github-prometheus-exporter-toolkit-0.13.2-build/exporter-toolkit-0.13.2/_build/bin install: creating directory '/home/pterjan/rpmbuild/BUILD/golang-github-prometheus-exporter-toolkit-0.13.2-build/exporter-toolkit-0.13.2/_build' install: creating directory '/home/pterjan/rpmbuild/BUILD/golang-github-prometheus-exporter-toolkit-0.13.2-build/exporter-toolkit-0.13.2/_build/bin' + export GOPATH=/home/pterjan/rpmbuild/BUILD/golang-github-prometheus-exporter-toolkit-0.13.2-build/exporter-toolkit-0.13.2/_build:/usr/share/gocode + GOPATH=/home/pterjan/rpmbuild/BUILD/golang-github-prometheus-exporter-toolkit-0.13.2-build/exporter-toolkit-0.13.2/_build:/usr/share/gocode + [[ ! -e /home/pterjan/rpmbuild/BUILD/golang-github-prometheus-exporter-toolkit-0.13.2-build/exporter-toolkit-0.13.2/_build/src/github.com/prometheus/exporter-toolkit ]] ++ dirname /home/pterjan/rpmbuild/BUILD/golang-github-prometheus-exporter-toolkit-0.13.2-build/exporter-toolkit-0.13.2/_build/src/github.com/prometheus/exporter-toolkit + install -m 0755 -vd /home/pterjan/rpmbuild/BUILD/golang-github-prometheus-exporter-toolkit-0.13.2-build/exporter-toolkit-0.13.2/_build/src/github.com/prometheus install: creating directory '/home/pterjan/rpmbuild/BUILD/golang-github-prometheus-exporter-toolkit-0.13.2-build/exporter-toolkit-0.13.2/_build/src' install: creating directory '/home/pterjan/rpmbuild/BUILD/golang-github-prometheus-exporter-toolkit-0.13.2-build/exporter-toolkit-0.13.2/_build/src/github.com' install: creating directory '/home/pterjan/rpmbuild/BUILD/golang-github-prometheus-exporter-toolkit-0.13.2-build/exporter-toolkit-0.13.2/_build/src/github.com/prometheus' + ln -fs /home/pterjan/rpmbuild/BUILD/golang-github-prometheus-exporter-toolkit-0.13.2-build/exporter-toolkit-0.13.2 /home/pterjan/rpmbuild/BUILD/golang-github-prometheus-exporter-toolkit-0.13.2-build/exporter-toolkit-0.13.2/_build/src/github.com/prometheus/exporter-toolkit + cd /home/pterjan/rpmbuild/BUILD/golang-github-prometheus-exporter-toolkit-0.13.2-build/exporter-toolkit-0.13.2/_build/src/github.com/prometheus/exporter-toolkit + RPM_EC=0 ++ jobs -p + exit 0 Executing(%generate_buildrequires): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.hlwo6h + umask 022 + cd /home/pterjan/rpmbuild/BUILD/golang-github-prometheus-exporter-toolkit-0.13.2-build + cd exporter-toolkit-0.13.2 + GOPATH=/home/pterjan/rpmbuild/BUILD/golang-github-prometheus-exporter-toolkit-0.13.2-build/exporter-toolkit-0.13.2/_build:/usr/share/gocode + GO111MODULE=off + golist --imported --package-path github.com/prometheus/exporter-toolkit --template 'golang({{.}})\n' --with-tests --skip-self + RPM_EC=0 ++ jobs -p + exit 0 Executing(%install): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.DK56Y6 + umask 022 + cd /home/pterjan/rpmbuild/BUILD/golang-github-prometheus-exporter-toolkit-0.13.2-build + '[' 1 -eq 1 ']' + '[' /home/pterjan/rpmbuild/BUILD/golang-github-prometheus-exporter-toolkit-0.13.2-build/BUILDROOT '!=' / ']' + rm -rf /home/pterjan/rpmbuild/BUILD/golang-github-prometheus-exporter-toolkit-0.13.2-build/BUILDROOT ++ dirname /home/pterjan/rpmbuild/BUILD/golang-github-prometheus-exporter-toolkit-0.13.2-build/BUILDROOT + mkdir -p /home/pterjan/rpmbuild/BUILD/golang-github-prometheus-exporter-toolkit-0.13.2-build + mkdir /home/pterjan/rpmbuild/BUILD/golang-github-prometheus-exporter-toolkit-0.13.2-build/BUILDROOT + cd exporter-toolkit-0.13.2 + '[' 1 -eq 1 ']' + cd /home/pterjan/rpmbuild/BUILD/golang-github-prometheus-exporter-toolkit-0.13.2-build/exporter-toolkit-0.13.2/_build/src/github.com/prometheus/exporter-toolkit + IFS= +++ sort -u +++ realpath -e --relative-base=. web/landing_page.css web/landing_page.html ++ listfiles_include='web/landing_page.css web/landing_page.html' ++ echo 'web/landing_page.css web/landing_page.html' + gosupfiles='web/landing_page.css web/landing_page.html' + mapfile -t gosupfilesA + go-rpm-integration install -i github.com/prometheus/exporter-toolkit -b /home/pterjan/rpmbuild/BUILD/golang-github-prometheus-exporter-toolkit-0.13.2-build/exporter-toolkit-0.13.2/_build/bin -s /home/pterjan/rpmbuild/BUILD/golang-github-prometheus-exporter-toolkit-0.13.2-build/exporter-toolkit-0.13.2/_build -o golang-github-prometheus-exporter-toolkit-devel.file-list -O /home/pterjan/rpmbuild/BUILD/golang-github-prometheus-exporter-toolkit-0.13.2-build/exporter-toolkit-0.13.2 -V 0.13.2-1.mga10 -p /home/pterjan/rpmbuild/BUILD/golang-github-prometheus-exporter-toolkit-0.13.2-build/BUILDROOT -g /usr/share/gocode -r '.*example.*' web/landing_page.css web/landing_page.html Installing: github.com/prometheus/exporter-toolkit + IFS= +++ sort -u +++ realpath -e --relative-base=. CHANGELOG.md CODE_OF_CONDUCT.md CONTRIBUTING.md README.md ++ listfiles_include='CHANGELOG.md CODE_OF_CONDUCT.md CONTRIBUTING.md README.md' ++ echo 'CHANGELOG.md CODE_OF_CONDUCT.md CONTRIBUTING.md README.md' + godocs='CHANGELOG.md CODE_OF_CONDUCT.md CONTRIBUTING.md README.md' + [[ -n CHANGELOG.md CODE_OF_CONDUCT.md CONTRIBUTING.md README.md ]] + IFS= + read -r f + echo %doc '"CHANGELOG.md"' + IFS= + read -r f + echo %doc '"CODE_OF_CONDUCT.md"' + IFS= + read -r f + echo %doc '"CONTRIBUTING.md"' + IFS= + read -r f + echo %doc '"README.md"' + IFS= + read -r f + IFS= +++ sort -u +++ realpath -e --relative-base=. LICENSE ++ listfiles_include=LICENSE ++ echo LICENSE + golicenses=LICENSE + [[ -n LICENSE ]] + IFS= + read -r f + echo %license '"LICENSE"' + IFS= + read -r f + /usr/lib/rpm/check-buildroot + '[' -n '' ']' + /usr/share/spec-helper/clean_files + '[' -n '' ']' + /usr/share/spec-helper/compress_files .xz + '[' -n '' ']' + /usr/share/spec-helper/relink_symlinks + '[' -n '' ']' + /usr/share/spec-helper/clean_perl + '[' -n '' ']' + /usr/share/spec-helper/lib_symlinks + '[' -n '' ']' + /usr/share/spec-helper/gprintify + '[' -n '' ']' + /usr/share/spec-helper/fix_mo + '[' -n '' ']' + /usr/share/spec-helper/fix_pamd + '[' -n '' ']' + /usr/share/spec-helper/remove_info_dir + '[' -n '' ']' + /usr/share/spec-helper/fix_eol + '[' -n '' ']' + /usr/share/spec-helper/check_desktop_files + '[' -n '' ']' + /usr/share/spec-helper/check_elf_files + /usr/lib/rpm/brp-strip /usr/bin/strip + /usr/lib/rpm/brp-strip-comment-note /usr/bin/strip /usr/bin/objdump + /usr/lib/rpm/brp-strip-static-archive /usr/bin/strip + /usr/lib/rpm/check-rpaths + /usr/lib/rpm/brp-remove-la-files + /usr/lib/rpm/redhat/brp-mangle-shebangs + env -u SOURCE_DATE_EPOCH /usr/lib/rpm/redhat/brp-python-bytecompile '' 1 0 -j16 + /usr/lib/rpm/redhat/brp-python-hardlink Executing(%check): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.rPYMYH + umask 022 + cd /home/pterjan/rpmbuild/BUILD/golang-github-prometheus-exporter-toolkit-0.13.2-build + cd exporter-toolkit-0.13.2 + '[' 1 -eq 1 ']' + export GODEBUG=x509sha1=1 + GODEBUG=x509sha1=1 + for test in "TestServerBehaviour" ++ grep -rl TestServerBehaviour + awk -i inplace '/^func.*TestServerBehaviour\(/ { print; print "\tt.Skip(\"disabled failing test\")"; next}1' web/tls_config_test.go web/tls_config_go121_test.go web/tls_config_go118_test.go + GO_LDFLAGS=' -X github.com/prometheus/exporter-toolkit/version=0.13.2' + GO_TEST_FLAGS='-buildmode pie -compiler gc' + GO_TEST_EXT_LD_FLAGS='-Wl,--as-needed -Wl,--no-undefined -Wl,-z,relro -Wl,-z,now -Wl,-O1 -Wl,--build-id=sha1 -Wl,--enable-new-dtags -specs=/usr/lib/rpm/redhat/redhat-hardened-ld ' + go-rpm-integration check -i github.com/prometheus/exporter-toolkit -b /home/pterjan/rpmbuild/BUILD/golang-github-prometheus-exporter-toolkit-0.13.2-build/exporter-toolkit-0.13.2/_build/bin -s /home/pterjan/rpmbuild/BUILD/golang-github-prometheus-exporter-toolkit-0.13.2-build/exporter-toolkit-0.13.2/_build -V 0.13.2-1.mga10 -p /home/pterjan/rpmbuild/BUILD/golang-github-prometheus-exporter-toolkit-0.13.2-build/BUILDROOT -g /usr/share/gocode -r '.*example.*' Testing in: /home/pterjan/rpmbuild/BUILD/golang-github-prometheus-exporter-toolkit-0.13.2-build/exporter-toolkit-0.13.2/_build/src PATH: /home/pterjan/rpmbuild/BUILD/golang-github-prometheus-exporter-toolkit-0.13.2-build/exporter-toolkit-0.13.2/_build/bin:/usr/local/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/home/pterjan/.local/bin:/home/pterjan/bin GOPATH: /home/pterjan/rpmbuild/BUILD/golang-github-prometheus-exporter-toolkit-0.13.2-build/exporter-toolkit-0.13.2/_build:/usr/share/gocode GO111MODULE: off command: go test -buildmode pie -compiler gc -ldflags " -X github.com/prometheus/exporter-toolkit/version=0.13.2 -extldflags '-Wl,--as-needed -Wl,--no-undefined -Wl,-z,relro -Wl,-z,now -Wl,-O1 -Wl,--build-id=sha1 -Wl,--enable-new-dtags -specs=/usr/lib/rpm/redhat/redhat-hardened-ld '" testing: github.com/prometheus/exporter-toolkit github.com/prometheus/exporter-toolkit/web time=2025-02-19T07:01:51.256Z level=INFO msg="Listening on" address=[::]:33505 time=2025-02-19T07:01:51.256Z level=INFO msg="TLS is disabled." http2=false address=[::]:33505 time=2025-02-19T07:01:52.740Z level=INFO msg="Listening on" address=[::]:33505 time=2025-02-19T07:01:52.740Z level=INFO msg="TLS is disabled." http2=false address=[::]:33505 time=2025-02-19T07:01:52.913Z level=INFO msg="Listening on" address=[::]:33505 time=2025-02-19T07:01:52.913Z level=INFO msg="TLS is disabled." http2=false address=[::]:33505 time=2025-02-19T07:01:53.373Z level=INFO msg="Listening on" address=[::]:33505 time=2025-02-19T07:01:53.373Z level=INFO msg="TLS is disabled." http2=false address=[::]:33505 time=2025-02-19T07:01:53.475Z level=INFO msg="Listening on" address=[::]:33505 time=2025-02-19T07:01:53.476Z level=INFO msg="TLS is enabled." http2=true address=[::]:33505 2025/02/19 07:01:53 http: TLS handshake error from 127.0.0.1:58138: tls: client didn't provide a certificate time=2025-02-19T07:01:53.735Z level=INFO msg="Listening on" address=[::]:33505 time=2025-02-19T07:01:53.736Z level=INFO msg="TLS is enabled." http2=true address=[::]:33505 2025/02/19 07:01:53 http: TLS handshake error from 127.0.0.1:58140: tls: client didn't provide a certificate time=2025-02-19T07:01:53.996Z level=INFO msg="Listening on" address=[::]:33505 time=2025-02-19T07:01:53.997Z level=INFO msg="TLS is enabled." http2=true address=[::]:33505 2025/02/19 07:01:54 http: TLS handshake error from 127.0.0.1:58156: tls: failed to verify certificate: x509: certificate signed by unknown authority --- FAIL: TestServerBehaviour121 (0.80s) --- FAIL: TestServerBehaviour121/valid_tls_config_yml_and_tls_client_with_RequireAndVerifyClientCert_(present_wrong_certificate) (0.28s) tls_config_test.go:552: Expected error matching regular expression: unknown certificate authority tls_config_test.go:553: Got: Get "https://localhost:33505": write tcp 127.0.0.1:58156->127.0.0.1:33505: write: connection reset by peer time=2025-02-19T07:01:54.276Z level=INFO msg="Listening on" address=[::]:33505 time=2025-02-19T07:01:54.276Z level=INFO msg="Listening on" address=[::]:33505 time=2025-02-19T07:01:54.276Z level=INFO msg="TLS is disabled." http2=false address=[::]:33505 time=2025-02-19T07:01:54.527Z level=INFO msg="Listening on" address=[::]:33505 time=2025-02-19T07:01:54.528Z level=INFO msg="Listening on" address=[::]:33505 time=2025-02-19T07:01:54.528Z level=INFO msg="Listening on" address=[::]:33505 time=2025-02-19T07:01:54.528Z level=INFO msg="Listening on" address=[::]:33505 time=2025-02-19T07:01:54.528Z level=INFO msg="Listening on" address=[::]:33505 time=2025-02-19T07:01:54.528Z level=INFO msg="Listening on" address=[::]:33505 time=2025-02-19T07:01:54.529Z level=INFO msg="Listening on" address=[::]:33505 time=2025-02-19T07:01:54.529Z level=INFO msg="Listening on" address=[::]:33505 time=2025-02-19T07:01:54.529Z level=INFO msg="Listening on" address=[::]:33505 time=2025-02-19T07:01:54.529Z level=INFO msg="Listening on" address=[::]:33505 time=2025-02-19T07:01:54.529Z level=INFO msg="Listening on" address=[::]:33505 time=2025-02-19T07:01:54.530Z level=INFO msg="Listening on" address=[::]:33505 time=2025-02-19T07:01:54.531Z level=INFO msg="Listening on" address=[::]:33505 time=2025-02-19T07:01:54.531Z level=INFO msg="Listening on" address=[::]:33505 time=2025-02-19T07:01:54.531Z level=INFO msg="Listening on" address=[::]:33505 time=2025-02-19T07:01:54.531Z level=INFO msg="Listening on" address=[::]:33505 time=2025-02-19T07:01:54.531Z level=INFO msg="Listening on" address=[::]:33505 time=2025-02-19T07:01:54.532Z level=INFO msg="TLS is enabled." http2=true address=[::]:33505 2025/02/19 07:01:54 http: TLS handshake error from 127.0.0.1:58196: client sent an HTTP request to an HTTPS server 2025/02/19 07:01:54 http: TLS handshake error from 127.0.0.1:58178: client sent an HTTP request to an HTTPS server 2025/02/19 07:01:54 http: TLS handshake error from 127.0.0.1:58164: client sent an HTTP request to an HTTPS server 2025/02/19 07:01:54 http: TLS handshake error from 127.0.0.1:58186: client sent an HTTP request to an HTTPS server 2025/02/19 07:01:54 http: TLS handshake error from 127.0.0.1:58162: client sent an HTTP request to an HTTPS server 2025/02/19 07:01:54 http: TLS handshake error from 127.0.0.1:58208: client sent an HTTP request to an HTTPS server 2025/02/19 07:01:54 http: TLS handshake error from 127.0.0.1:58210: client sent an HTTP request to an HTTPS server 2025/02/19 07:01:54 http: TLS handshake error from 127.0.0.1:58218: client sent an HTTP request to an HTTPS server 2025/02/19 07:01:54 http: TLS handshake error from 127.0.0.1:58224: client sent an HTTP request to an HTTPS server 2025/02/19 07:01:54 http: TLS handshake error from 127.0.0.1:58234: client sent an HTTP request to an HTTPS server 2025/02/19 07:01:54 http: TLS handshake error from 127.0.0.1:58222: client sent an HTTP request to an HTTPS server 2025/02/19 07:01:54 http: TLS handshake error from 127.0.0.1:58246: client sent an HTTP request to an HTTPS server 2025/02/19 07:01:54 http: TLS handshake error from 127.0.0.1:58254: client sent an HTTP request to an HTTPS server 2025/02/19 07:01:54 http: TLS handshake error from 127.0.0.1:58284: client sent an HTTP request to an HTTPS server 2025/02/19 07:01:54 http: TLS handshake error from 127.0.0.1:58258: client sent an HTTP request to an HTTPS server 2025/02/19 07:01:54 http: TLS handshake error from 127.0.0.1:58272: client sent an HTTP request to an HTTPS server 2025/02/19 07:01:54 http: TLS handshake error from 127.0.0.1:58286: tls: client didn't provide a certificate time=2025-02-19T07:01:55.056Z level=INFO msg="Listening on" address=[::]:33505 time=2025-02-19T07:01:55.057Z level=INFO msg="TLS is disabled." http2=false address=[::]:33505 time=2025-02-19T07:01:55.308Z level=INFO msg="Listening on" address=[::]:33505 time=2025-02-19T07:01:55.308Z level=INFO msg="TLS is disabled." http2=false address=[::]:33505 time=2025-02-19T07:01:55.628Z level=INFO msg="Listening on" address=[::]:33505 time=2025-02-19T07:01:55.628Z level=INFO msg="TLS is enabled." http2=true address=[::]:33505 time=2025-02-19T07:01:55.888Z level=INFO msg="Listening on" address=[::]:33505 time=2025-02-19T07:01:55.889Z level=INFO msg="TLS is enabled." http2=true address=[::]:33505 time=2025-02-19T07:01:56.217Z level=INFO msg="Listening on" address=[::]:33505 time=2025-02-19T07:01:56.223Z level=INFO msg="TLS is enabled." http2=true address=[::]:33505 time=2025-02-19T07:01:56.567Z level=INFO msg="Listening on" address=[::]:33505 time=2025-02-19T07:01:56.567Z level=INFO msg="TLS is enabled." http2=true address=[::]:33505 time=2025-02-19T07:01:56.894Z level=INFO msg="Listening on" address=[::]:33505 time=2025-02-19T07:01:56.895Z level=INFO msg="TLS is enabled." http2=true address=[::]:33505 FAIL exit status 1 FAIL github.com/prometheus/exporter-toolkit/web 6.030s error: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.rPYMYH (%check) RPM build warnings: /home/pterjan/rpmbuild/SPECS/golang-github-prometheus-exporter-toolkit.spec line 40: autopatch: no matching patches in range RPM build errors: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.rPYMYH (%check) I: [iurt_root_command] ERROR: chroot