Mock Version: 3.5 Mock Version: 3.5 Mock Version: 3.5 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target riscv64 --nodeps /builddir/build/SPECS/golang-github-teris-io-shortid.spec'], chrootPath='/var/lib/mock/f38-build-side-42-init-devel-1391353-30757/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=864000uid=996gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target riscv64 --nodeps /builddir/build/SPECS/golang-github-teris-io-shortid.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: riscv64 Building for target riscv64 setting SOURCE_DATE_EPOCH=1674086400 Wrote: /builddir/build/SRPMS/golang-github-teris-io-shortid-1.0-11.rvrebuild.20210113gite59966e.fc38.src.rpm Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --noclean --target riscv64 --nodeps /builddir/build/SPECS/golang-github-teris-io-shortid.spec'], chrootPath='/var/lib/mock/f38-build-side-42-init-devel-1391353-30757/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=864000uid=996gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --noclean --target riscv64 --nodeps /builddir/build/SPECS/golang-github-teris-io-shortid.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: riscv64 Building for target riscv64 setting SOURCE_DATE_EPOCH=1674086400 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.De9QJ9 + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf shortid-e59966efd12590a864fec7feae347307ffacc60f + /usr/lib/rpm/rpmuncompress -x /builddir/build/SOURCES/shortid-e59966efd12590a864fec7feae347307ffacc60f.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + cd shortid-e59966efd12590a864fec7feae347307ffacc60f + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + rm -fr /builddir/build/BUILD/shortid-e59966efd12590a864fec7feae347307ffacc60f/vendor + [[ ! -e /builddir/build/BUILD/shortid-e59966efd12590a864fec7feae347307ffacc60f/_build/bin ]] + install -m 0755 -vd /builddir/build/BUILD/shortid-e59966efd12590a864fec7feae347307ffacc60f/_build/bin install: creating directory '/builddir/build/BUILD/shortid-e59966efd12590a864fec7feae347307ffacc60f/_build' install: creating directory '/builddir/build/BUILD/shortid-e59966efd12590a864fec7feae347307ffacc60f/_build/bin' + export GOPATH=/builddir/build/BUILD/shortid-e59966efd12590a864fec7feae347307ffacc60f/_build:/usr/share/gocode + GOPATH=/builddir/build/BUILD/shortid-e59966efd12590a864fec7feae347307ffacc60f/_build:/usr/share/gocode + [[ ! -e /builddir/build/BUILD/shortid-e59966efd12590a864fec7feae347307ffacc60f/_build/src/github.com/teris-io/shortid ]] ++ dirname /builddir/build/BUILD/shortid-e59966efd12590a864fec7feae347307ffacc60f/_build/src/github.com/teris-io/shortid + install -m 0755 -vd /builddir/build/BUILD/shortid-e59966efd12590a864fec7feae347307ffacc60f/_build/src/github.com/teris-io install: creating directory '/builddir/build/BUILD/shortid-e59966efd12590a864fec7feae347307ffacc60f/_build/src' install: creating directory '/builddir/build/BUILD/shortid-e59966efd12590a864fec7feae347307ffacc60f/_build/src/github.com' install: creating directory '/builddir/build/BUILD/shortid-e59966efd12590a864fec7feae347307ffacc60f/_build/src/github.com/teris-io' + ln -fs /builddir/build/BUILD/shortid-e59966efd12590a864fec7feae347307ffacc60f /builddir/build/BUILD/shortid-e59966efd12590a864fec7feae347307ffacc60f/_build/src/github.com/teris-io/shortid + cd /builddir/build/BUILD/shortid-e59966efd12590a864fec7feae347307ffacc60f/_build/src/github.com/teris-io/shortid + RPM_EC=0 ++ jobs -p + exit 0 Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.358JiC + umask 022 + cd /builddir/build/BUILD + '[' /builddir/build/BUILDROOT/golang-github-teris-io-shortid-1.0-11.rvrebuild.20210113gite59966e.fc38.riscv64 '!=' / ']' + rm -rf /builddir/build/BUILDROOT/golang-github-teris-io-shortid-1.0-11.rvrebuild.20210113gite59966e.fc38.riscv64 ++ dirname /builddir/build/BUILDROOT/golang-github-teris-io-shortid-1.0-11.rvrebuild.20210113gite59966e.fc38.riscv64 + mkdir -p /builddir/build/BUILDROOT + mkdir /builddir/build/BUILDROOT/golang-github-teris-io-shortid-1.0-11.rvrebuild.20210113gite59966e.fc38.riscv64 + cd shortid-e59966efd12590a864fec7feae347307ffacc60f + cd /builddir/build/BUILD/shortid-e59966efd12590a864fec7feae347307ffacc60f/_build/src/github.com/teris-io/shortid + IFS= + gosupfiles= + mapfile -t gosupfilesA + go-rpm-integration install -i github.com/teris-io/shortid -b /builddir/build/BUILD/shortid-e59966efd12590a864fec7feae347307ffacc60f/_build/bin -s /builddir/build/BUILD/shortid-e59966efd12590a864fec7feae347307ffacc60f/_build -o golang-github-teris-io-shortid-devel.file-list -O /builddir/build/BUILD/shortid-e59966efd12590a864fec7feae347307ffacc60f -V 1.0-11.rvrebuild.20210113gite59966e.fc38 -C e59966efd12590a864fec7feae347307ffacc60f -p /builddir/build/BUILDROOT/golang-github-teris-io-shortid-1.0-11.rvrebuild.20210113gite59966e.fc38.riscv64 -g /usr/share/gocode -r '.*example.*' Installing: github.com/teris-io/shortid realpath: go.mod: No such file or directory + IFS= +++ realpath -e --relative-base=. README.md +++ sort -u ++ listfiles_include=README.md ++ echo README.md + godocs=README.md + [[ -n README.md ]] + IFS= + read -r f + echo %doc '"README.md"' + IFS= + read -r f + IFS= +++ realpath -e --relative-base=. LICENSE +++ sort -u ++ 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 + /usr/lib/rpm/redhat/brp-ldconfig + /usr/lib/rpm/brp-compress + /usr/lib/rpm/brp-strip /usr/bin/strip + /usr/lib/rpm/brp-strip-comment-note /usr/bin/strip /usr/bin/objdump + /usr/lib/rpm/redhat/brp-strip-lto /usr/bin/strip + /usr/lib/rpm/brp-strip-static-archive /usr/bin/strip + /usr/lib/rpm/check-rpaths + /usr/lib/rpm/redhat/brp-mangle-shebangs + /usr/lib/rpm/brp-remove-la-files + env /usr/lib/rpm/redhat/brp-python-bytecompile '' 1 0 -j8 + /usr/lib/rpm/redhat/brp-python-hardlink Executing(%check): /bin/sh -e /var/tmp/rpm-tmp.EhKFUd + umask 022 + cd /builddir/build/BUILD + cd shortid-e59966efd12590a864fec7feae347307ffacc60f + LDFLAGS=' -X github.com/teris-io/shortid/version.commit=e59966efd12590a864fec7feae347307ffacc60f -X github.com/teris-io/shortid/version=1.0' + GO_TEST_FLAGS='-buildmode pie -compiler gc' + GO_TEST_EXT_LD_FLAGS='-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 -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes ' + go-rpm-integration check -i github.com/teris-io/shortid -b /builddir/build/BUILD/shortid-e59966efd12590a864fec7feae347307ffacc60f/_build/bin -s /builddir/build/BUILD/shortid-e59966efd12590a864fec7feae347307ffacc60f/_build -V 1.0-11.rvrebuild.20210113gite59966e.fc38 -C e59966efd12590a864fec7feae347307ffacc60f -p /builddir/build/BUILDROOT/golang-github-teris-io-shortid-1.0-11.rvrebuild.20210113gite59966e.fc38.riscv64 -g /usr/share/gocode -r '.*example.*' Testing in: /builddir/build/BUILD/shortid-e59966efd12590a864fec7feae347307ffacc60f/_build/src PATH: /builddir/build/BUILD/shortid-e59966efd12590a864fec7feae347307ffacc60f/_build/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/sbin GOPATH: /builddir/build/BUILD/shortid-e59966efd12590a864fec7feae347307ffacc60f/_build:/usr/share/gocode GO111MODULE: off command: go test -buildmode pie -compiler gc -ldflags " -X github.com/teris-io/shortid/version.commit=e59966efd12590a864fec7feae347307ffacc60f -X github.com/teris-io/shortid/version=1.0 -extldflags '-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 -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes '" testing: github.com/teris-io/shortid github.com/teris-io/shortid panic: test timed out after 10m0s running tests: TestShortid_Generate_500kValues_concurrently (23s) goroutine 36 [running]: testing.(*M).startAlarm.func1() /usr/lib/golang/src/testing/testing.go:2241 +0x30c created by time.goFunc /usr/lib/golang/src/time/sleep.go:176 +0x50 goroutine 1 [chan receive]: testing.(*T).Run(0xc000001ba0, {0xaaaaaab48ce8ba?, 0xaaaaaab4849590?}, 0xaaaaaab4926168) /usr/lib/golang/src/testing/testing.go:1630 +0x3b4 testing.runTests.func1(0x1a0?) /usr/lib/golang/src/testing/testing.go:2036 +0x54 testing.tRunner(0xc000001ba0, 0xc000061ca0) /usr/lib/golang/src/testing/testing.go:1576 +0x11c testing.runTests(0xc00019c0a0?, {0xaaaaaab49db0c0, 0x21, 0x21}, {0xaaaaaab47e05d8?, 0xc00018eef8?, 0xaaaaaab49f4220?}) /usr/lib/golang/src/testing/testing.go:2034 +0x424 testing.(*M).Run(0xc00019c0a0) /usr/lib/golang/src/testing/testing.go:1906 +0x560 main.main() _testmain.go:113 +0x1a8 goroutine 10 [chan receive]: github.com/teris-io/shortid_test.TestShortid_Generate_500kValues_concurrently(0xc0001b4340) /builddir/build/BUILD/shortid-e59966efd12590a864fec7feae347307ffacc60f/_build/src/github.com/teris-io/shortid/shortid_integration_test.go:119 +0x22c testing.tRunner(0xc0001b4340, 0xaaaaaab4926168) /usr/lib/golang/src/testing/testing.go:1576 +0x11c created by testing.(*T).Run /usr/lib/golang/src/testing/testing.go:1629 +0x3a0 goroutine 11 [runnable]: github.com/teris-io/shortid.(*Abc).Encode(0xc00019a190, 0x0, 0x1, 0x5) /builddir/build/BUILD/shortid-e59966efd12590a864fec7feae347307ffacc60f/_build/src/github.com/teris-io/shortid/shortid.go:298 +0x1c github.com/teris-io/shortid.(*Shortid).GenerateInternal(0xc00019a190, 0xb48c0bdc?, {0x0?, 0x4?, 0x0?}) /builddir/build/BUILD/shortid-e59966efd12590a864fec7feae347307ffacc60f/_build/src/github.com/teris-io/shortid/shortid.go:190 +0xc8 github.com/teris-io/shortid.(*Shortid).Generate(...) /builddir/build/BUILD/shortid-e59966efd12590a864fec7feae347307ffacc60f/_build/src/github.com/teris-io/shortid/shortid.go:169 github.com/teris-io/shortid.(*Shortid).MustGenerate(0xaaaaaab4908ec0?) /builddir/build/BUILD/shortid-e59966efd12590a864fec7feae347307ffacc60f/_build/src/github.com/teris-io/shortid/shortid.go:174 +0x3c github.com/teris-io/shortid_test.TestShortid_Generate_500kValues_concurrently.func1(0xaaaaaab4926168?) /builddir/build/BUILD/shortid-e59966efd12590a864fec7feae347307ffacc60f/_build/src/github.com/teris-io/shortid/shortid_integration_test.go:106 +0x78 created by github.com/teris-io/shortid_test.TestShortid_Generate_500kValues_concurrently /builddir/build/BUILD/shortid-e59966efd12590a864fec7feae347307ffacc60f/_build/src/github.com/teris-io/shortid/shortid_integration_test.go:114 +0x150 goroutine 12 [runnable]: github.com/teris-io/shortid.(*Abc).Encode(0xc00019a190, 0x38dd11aea0, 0x8, 0x5) /builddir/build/BUILD/shortid-e59966efd12590a864fec7feae347307ffacc60f/_build/src/github.com/teris-io/shortid/shortid.go:321 +0x16c github.com/teris-io/shortid.(*Shortid).GenerateInternal(0xc00019a190, 0xb48c0bdc?, {0x1fab913bb6f1e?, 0x0?, 0x0?}) /builddir/build/BUILD/shortid-e59966efd12590a864fec7feae347307ffacc60f/_build/src/github.com/teris-io/shortid/shortid.go:185 +0x8c github.com/teris-io/shortid.(*Shortid).Generate(...) /builddir/build/BUILD/shortid-e59966efd12590a864fec7feae347307ffacc60f/_build/src/github.com/teris-io/shortid/shortid.go:169 github.com/teris-io/shortid.(*Shortid).MustGenerate(0xaaaaaab4908ec0?) /builddir/build/BUILD/shortid-e59966efd12590a864fec7feae347307ffacc60f/_build/src/github.com/teris-io/shortid/shortid.go:174 +0x3c github.com/teris-io/shortid_test.TestShortid_Generate_500kValues_concurrently.func1(0x0?) /builddir/build/BUILD/shortid-e59966efd12590a864fec7feae347307ffacc60f/_build/src/github.com/teris-io/shortid/shortid_integration_test.go:106 +0x78 created by github.com/teris-io/shortid_test.TestShortid_Generate_500kValues_concurrently /builddir/build/BUILD/shortid-e59966efd12590a864fec7feae347307ffacc60f/_build/src/github.com/teris-io/shortid/shortid_integration_test.go:116 +0x1b8 goroutine 13 [runnable]: syscall.Syscall(0xaaaaaab47e9b08?, 0xaaaaaab47f9eb4?, 0xaaaaaab47e9ad0?, 0xc00005dc68?) /usr/lib/golang/src/syscall/syscall_linux.go:69 +0x20 internal/syscall/unix.GetRandom({0xc0123ba010?, 0x1?, 0xc00005dc60?}, 0x9?) /usr/lib/golang/src/internal/syscall/unix/getrandom.go:28 +0x74 crypto/rand.getRandom({0xc0123ba010?, 0x1, 0xaaaaaab47e9638?}) /usr/lib/golang/src/crypto/rand/rand_getrandom.go:40 +0x44 crypto/rand.batched.func1({0xc0123ba010?, 0xaaaa0000000000?, 0x50000000000000?}) /usr/lib/golang/src/crypto/rand/rand.go:37 +0xb0 crypto/rand.(*reader).Read(0xc00006e020, {0xc0123ba010, 0x1, 0x1}) /usr/lib/golang/src/crypto/rand/rand_unix.go:56 +0x11c io.ReadAtLeast({0xaaaaaab4926e98, 0xc00006e020}, {0xc0123ba010, 0x1, 0x1}, 0x1) /usr/lib/golang/src/io/io.go:332 +0xd4 io.ReadFull(...) /usr/lib/golang/src/io/io.go:351 crypto/rand.Read({0xc0123ba010?, 0x0?, 0xaaaaaab48bf718?}) /usr/lib/golang/src/crypto/rand/rand.go:25 +0x64 github.com/teris-io/shortid.maskedRandomInts(0x1, 0x20) /builddir/build/BUILD/shortid-e59966efd12590a864fec7feae347307ffacc60f/_build/src/github.com/teris-io/shortid/shortid.go:342 +0x70 github.com/teris-io/shortid.(*Abc).Encode(0xc00019a190, 0x0, 0x1, 0x5) /builddir/build/BUILD/shortid-e59966efd12590a864fec7feae347307ffacc60f/_build/src/github.com/teris-io/shortid/shortid.go:318 +0x12c github.com/teris-io/shortid.(*Shortid).GenerateInternal(0xc00019a190, 0xaaaaaab48c0bdc?, {0x0?, 0x3?, 0x0?}) /builddir/build/BUILD/shortid-e59966efd12590a864fec7feae347307ffacc60f/_build/src/github.com/teris-io/shortid/shortid.go:190 +0xc8 github.com/teris-io/shortid.(*Shortid).Generate(...) /builddir/build/BUILD/shortid-e59966efd12590a864fec7feae347307ffacc60f/_build/src/github.com/teris-io/shortid/shortid.go:169 github.com/teris-io/shortid.(*Shortid).MustGenerate(0xaaaaaab4908ec0?) /builddir/build/BUILD/shortid-e59966efd12590a864fec7feae347307ffacc60f/_build/src/github.com/teris-io/shortid/shortid.go:174 +0x3c github.com/teris-io/shortid_test.TestShortid_Generate_500kValues_concurrently.func1(0x0?) /builddir/build/BUILD/shortid-e59966efd12590a864fec7feae347307ffacc60f/_build/src/github.com/teris-io/shortid/shortid_integration_test.go:106 +0x78 created by github.com/teris-io/shortid_test.TestShortid_Generate_500kValues_concurrently /builddir/build/BUILD/shortid-e59966efd12590a864fec7feae347307ffacc60f/_build/src/github.com/teris-io/shortid/shortid_integration_test.go:118 +0x220 exit status 2 FAIL github.com/teris-io/shortid 600.311s error: RPM build errors: Bad exit status from /var/tmp/rpm-tmp.EhKFUd (%check) Bad exit status from /var/tmp/rpm-tmp.EhKFUd (%check) Child return code was: 1 EXCEPTION: [Error('Command failed: \n # bash --login -c /usr/bin/rpmbuild -bb --noclean --target riscv64 --nodeps /builddir/build/SPECS/golang-github-teris-io-shortid.spec\n', 1)] Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/mockbuild/trace_decorator.py", line 93, in trace result = func(*args, **kw) ^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/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 --noclean --target riscv64 --nodeps /builddir/build/SPECS/golang-github-teris-io-shortid.spec