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-gopkg-redis-2.spec'], chrootPath='/var/lib/mock/f38-build-side-42-init-devel-944606-28778/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-gopkg-redis-2.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 warning: %patchN is deprecated (2 usages found), use %patch N (or %patch -P N) Building target platforms: riscv64 Building for target riscv64 setting SOURCE_DATE_EPOCH=1674086400 Wrote: /builddir/build/SRPMS/golang-gopkg-redis-2-2.3.2-12.fc38.src.rpm RPM build warnings: %patchN is deprecated (2 usages found), use %patch N (or %patch -P N) Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --noclean --target riscv64 --nodeps /builddir/build/SPECS/golang-gopkg-redis-2.spec'], chrootPath='/var/lib/mock/f38-build-side-42-init-devel-944606-28778/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-gopkg-redis-2.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 warning: %patchN is deprecated (2 usages found), use %patch N (or %patch -P N) Building target platforms: riscv64 Building for target riscv64 setting SOURCE_DATE_EPOCH=1674086400 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.clXdB9 + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf redis-2.3.2 + /usr/lib/rpm/rpmuncompress -x /builddir/build/SOURCES/redis-2.3.2.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + cd redis-2.3.2 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + rm -fr /builddir/build/BUILD/redis-2.3.2/vendor + [[ ! -e /builddir/build/BUILD/redis-2.3.2/_build/bin ]] + install -m 0755 -vd /builddir/build/BUILD/redis-2.3.2/_build/bin install: creating directory '/builddir/build/BUILD/redis-2.3.2/_build' install: creating directory '/builddir/build/BUILD/redis-2.3.2/_build/bin' + export GOPATH=/builddir/build/BUILD/redis-2.3.2/_build:/usr/share/gocode + GOPATH=/builddir/build/BUILD/redis-2.3.2/_build:/usr/share/gocode + [[ ! -e /builddir/build/BUILD/redis-2.3.2/_build/src/gopkg.in/redis.v2 ]] ++ dirname /builddir/build/BUILD/redis-2.3.2/_build/src/gopkg.in/redis.v2 + install -m 0755 -vd /builddir/build/BUILD/redis-2.3.2/_build/src/gopkg.in install: creating directory '/builddir/build/BUILD/redis-2.3.2/_build/src' install: creating directory '/builddir/build/BUILD/redis-2.3.2/_build/src/gopkg.in' + ln -fs /builddir/build/BUILD/redis-2.3.2 /builddir/build/BUILD/redis-2.3.2/_build/src/gopkg.in/redis.v2 + cd /builddir/build/BUILD/redis-2.3.2/_build/src/gopkg.in/redis.v2 Patch #0 (redis-testing-fixes.patch): + echo 'Patch #0 (redis-testing-fixes.patch):' + /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0 patching file example_test.go patching file export.go (renamed from export_test.go) patching file redis_test.go Patch #1 (0001-Fix-error-message-in-TestAuth.patch): + echo 'Patch #1 (0001-Fix-error-message-in-TestAuth.patch):' + /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0 patching file redis_test.go + RPM_EC=0 ++ jobs -p + exit 0 Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.E0koWV + umask 022 + cd /builddir/build/BUILD + '[' /builddir/build/BUILDROOT/golang-gopkg-redis-2-2.3.2-12.fc38.riscv64 '!=' / ']' + rm -rf /builddir/build/BUILDROOT/golang-gopkg-redis-2-2.3.2-12.fc38.riscv64 ++ dirname /builddir/build/BUILDROOT/golang-gopkg-redis-2-2.3.2-12.fc38.riscv64 + mkdir -p /builddir/build/BUILDROOT + mkdir /builddir/build/BUILDROOT/golang-gopkg-redis-2-2.3.2-12.fc38.riscv64 + cd redis-2.3.2 + cd /builddir/build/BUILD/redis-2.3.2/_build/src/gopkg.in/redis.v2 + IFS= + gosupfiles= + mapfile -t gosupfilesA + go-rpm-integration install -i gopkg.in/redis.v2 -b /builddir/build/BUILD/redis-2.3.2/_build/bin -s /builddir/build/BUILD/redis-2.3.2/_build -o golang-gopkg-redis-2-devel.file-list -O /builddir/build/BUILD/redis-2.3.2 -V 2.3.2-12.fc38 -p /builddir/build/BUILDROOT/golang-gopkg-redis-2-2.3.2-12.fc38.riscv64 -g /usr/share/gocode -r '.*example.*' Installing: gopkg.in/redis.v2 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 + install -m 0755 -d /builddir/build/BUILDROOT/golang-gopkg-redis-2-2.3.2-12.fc38.riscv64/usr/share/gocode/src/github.com/go-redis + ln -rs /builddir/build/BUILDROOT/golang-gopkg-redis-2-2.3.2-12.fc38.riscv64/usr/share/gocode/src/gopkg.in/redis.v2 /builddir/build/BUILDROOT/golang-gopkg-redis-2-2.3.2-12.fc38.riscv64/usr/share/gocode/src/github.com/go-redis/redis + echo /usr/share/gocode/src/github.com/go-redis/redis + echo '%dir "/usr/share/gocode/src/github.com/go-redis"' + echo '%dir "/usr/share/gocode/src/github.com"' + /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.iJ6luP + umask 022 + cd /builddir/build/BUILD + cd redis-2.3.2 + redis-cli -p 8126 SHUTDOWN + true + sleep 0.2 + redis-server --port 8126 727081:C 16 Jul 2023 10:33:07.708 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo 727081:C 16 Jul 2023 10:33:07.710 # Redis version=7.0.10, bits=64, commit=00000000, modified=0, pid=727081, just started 727081:C 16 Jul 2023 10:33:07.710 # Configuration loaded 727081:M 16 Jul 2023 10:33:07.724 * Increased maximum number of open files to 10032 (it was originally set to 1024). 727081:M 16 Jul 2023 10:33:07.724 * monotonic clock: POSIX clock_gettime + redis-cli -p 8126 PING 727081:M 16 Jul 2023 10:33:07.769 * Running mode=standalone, port=8126. 727081:M 16 Jul 2023 10:33:07.770 # Server initialized 727081:M 16 Jul 2023 10:33:07.771 # WARNING Memory overcommit must be enabled! Without it, a background save or replication may fail under low memory condition. Being disabled, it can can also cause failures without low memory condition, see https://github.com/jemalloc/jemalloc/issues/1328. To fix this issue add 'vm.overcommit_memory = 1' to /etc/sysctl.conf and then reboot or run the command 'sysctl vm.overcommit_memory=1' for this to take effect. 727081:M 16 Jul 2023 10:33:07.791 * Ready to accept connections PONG + LDFLAGS=' -X gopkg.in/redis.v2/version=2.3.2' + 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 gopkg.in/redis.v2 -b /builddir/build/BUILD/redis-2.3.2/_build/bin -s /builddir/build/BUILD/redis-2.3.2/_build -V 2.3.2-12.fc38 -p /builddir/build/BUILDROOT/golang-gopkg-redis-2-2.3.2-12.fc38.riscv64 -g /usr/share/gocode -r '.*example.*' Testing in: /builddir/build/BUILD/redis-2.3.2/_build/src PATH: /builddir/build/BUILD/redis-2.3.2/_build/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/sbin GOPATH: /builddir/build/BUILD/redis-2.3.2/_build:/usr/share/gocode GO111MODULE: off command: go test -buildmode pie -compiler gc -ldflags " -X gopkg.in/redis.v2/version=2.3.2 -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: gopkg.in/redis.v2 gopkg.in/redis.v2 727081:M 16 Jul 2023 10:35:41.299 * Background append only file rewriting started by pid 729010 729010:C 16 Jul 2023 10:35:41.434 * Successfully created the temporary AOF base file temp-rewriteaof-bg-729010.aof 729010:C 16 Jul 2023 10:35:41.452 * Fork CoW for AOF rewrite: current 0 MB, peak 0 MB, average 0 MB 727081:M 16 Jul 2023 10:35:41.535 * Background AOF rewrite terminated with success 727081:M 16 Jul 2023 10:35:41.537 * Successfully renamed the temporary AOF base file temp-rewriteaof-bg-729010.aof into appendonly.aof.1.base.rdb 727081:M 16 Jul 2023 10:35:41.550 * Background AOF rewrite finished successfully 727081:M 16 Jul 2023 10:35:42.358 * Background saving started by pid 729011 729011:C 16 Jul 2023 10:35:42.383 * DB saved on disk 729011:C 16 Jul 2023 10:35:42.396 * Fork CoW for RDB: current 0 MB, peak 0 MB, average 0 MB 727081:M 16 Jul 2023 10:35:42.482 * Background saving terminated with success ---------------------------------------------------------------------- FAIL: redis_test.go:3202: RedisTest.TestCmdDebugObject redis_test.go:3206: c.Assert(debug.Err().Error(), Equals, "ERR no such key") ... obtained string = "ERR DEBUG command not allowed. If the enable-debug-command option is set to \"local\", you can run it from a local connection, otherwise you need to set this option in the configuration file, and then restart the server." ... expected string = "ERR no such key" ---------------------------------------------------------------------- FAIL: redis_test.go:485: RedisTest.TestCmdKeysDump redis_test.go:492: c.Assert(dump.Val(), Equals, "\x00\x05hello\t\x00\xb3\x80\x8e\xba1\xb2C\xbb") ... obtained string = "" + ... "\x00\x05hello\n" + ... "\x00cr\xdfve4 \n" ... expected string = "\x00\x05hello\t\x00\xb3\x80\x8e\xba1\xb2C\xbb" ---------------------------------------------------------------------- FAIL: redis_test.go:651: RedisTest.TestCmdKeysPExpire redis_test.go:668: c.Assert(pttl.Val() >= expiration-time.Millisecond, Equals, true) ... obtained bool = false ... expected bool = true ---------------------------------------------------------------------- FAIL: redis_test.go:671: RedisTest.TestCmdKeysPExpireAt redis_test.go:688: c.Assert(pttl.Val() >= expiration-time.Millisecond, Equals, true) ... obtained bool = false ... expected bool = true ---------------------------------------------------------------------- FAIL: redis_test.go:691: RedisTest.TestCmdKeysPTTL redis_test.go:704: c.Assert(pttl.Val() >= expiration-time.Millisecond, Equals, true) ... obtained bool = false ... expected bool = true 727081:M 16 Jul 2023 10:35:49.969 * DB saved on disk 727081:M 16 Jul 2023 10:36:50.026 * 10000 changes in 60 seconds. Saving... 727081:M 16 Jul 2023 10:36:50.035 * Background saving started by pid 729013 729013:C 16 Jul 2023 10:36:50.390 * DB saved on disk 729013:C 16 Jul 2023 10:36:50.401 * Fork CoW for RDB: current 0 MB, peak 0 MB, average 0 MB 727081:M 16 Jul 2023 10:36:50.455 * Background saving terminated with success 727081:M 16 Jul 2023 10:37:51.066 * 10000 changes in 60 seconds. Saving... 727081:M 16 Jul 2023 10:37:51.080 * Background saving started by pid 729014 729014:C 16 Jul 2023 10:37:51.802 * DB saved on disk 729014:C 16 Jul 2023 10:37:51.818 * Fork CoW for RDB: current 1 MB, peak 1 MB, average 0 MB 727081:M 16 Jul 2023 10:37:51.910 * Background saving terminated with success 727081:M 16 Jul 2023 10:38:52.069 * 10000 changes in 60 seconds. Saving... 727081:M 16 Jul 2023 10:38:52.078 * Background saving started by pid 729016 729016:C 16 Jul 2023 10:38:52.452 * DB saved on disk 729016:C 16 Jul 2023 10:38:52.463 * Fork CoW for RDB: current 0 MB, peak 0 MB, average 0 MB 727081:M 16 Jul 2023 10:38:52.498 * Background saving terminated with success 727081:M 16 Jul 2023 10:39:53.020 * 10000 changes in 60 seconds. Saving... 727081:M 16 Jul 2023 10:39:53.031 * Background saving started by pid 729018 729018:C 16 Jul 2023 10:39:53.766 * DB saved on disk 729018:C 16 Jul 2023 10:39:53.781 * Fork CoW for RDB: current 1 MB, peak 1 MB, average 0 MB 727081:M 16 Jul 2023 10:39:53.865 * Background saving terminated with success 727081:S 16 Jul 2023 10:40:19.710 * Before turning into a replica, using my own master parameters to synthesize a cached master: I may be able to synchronize with the new master with just a partial transfer. 727081:S 16 Jul 2023 10:40:19.712 * Connecting to MASTER localhost:8888 727081:S 16 Jul 2023 10:40:19.716 * MASTER <-> REPLICA sync started 727081:S 16 Jul 2023 10:40:19.717 * REPLICAOF localhost:8888 enabled (user request from 'id=229 addr=127.0.0.1:49426 laddr=127.0.0.1:8126 fd=9 name= age=0 idle=0 flags=N db=0 sub=0 psub=0 ssub=0 multi=-1 qbuf=42 qbuf-free=20432 argv-mem=20 multi-mem=0 rbs=16384 rbp=16384 obl=0 oll=0 omem=0 tot-mem=37676 events=r cmd=slaveof user=default redir=-1 resp=2') 727081:M 16 Jul 2023 10:40:19.720 * Discarding previously cached master state. 727081:M 16 Jul 2023 10:40:19.722 # Setting secondary replication ID to d86d59904abc5c62b57516998377dbe3cec8d968, valid up to offset: 1. New replication ID is 2f75f10d727b387512f30b4e832946cb6c632fdc 727081:M 16 Jul 2023 10:40:19.722 * MASTER MODE enabled (user request from 'id=229 addr=127.0.0.1:49426 laddr=127.0.0.1:8126 fd=9 name= age=0 idle=0 flags=N db=0 sub=0 psub=0 ssub=0 multi=-1 qbuf=34 qbuf-free=20440 argv-mem=12 multi-mem=0 rbs=16384 rbp=16384 obl=0 oll=0 omem=0 tot-mem=37668 events=r cmd=slaveof user=default redir=-1 resp=2') ---------------------------------------------------------------------- FAIL: redis_test.go:1158: RedisTest.TestStringsPSetEx redis_test.go:1167: c.Assert(pttl.Val() >= expiration-time.Millisecond, Equals, true) ... obtained bool = false ... expected bool = true 727081:M 16 Jul 2023 10:40:54.069 * 10000 changes in 60 seconds. Saving... 727081:M 16 Jul 2023 10:40:54.083 * Background saving started by pid 729021 729021:C 16 Jul 2023 10:40:54.143 * DB saved on disk 729021:C 16 Jul 2023 10:40:54.158 * Fork CoW for RDB: current 0 MB, peak 0 MB, average 0 MB 727081:M 16 Jul 2023 10:40:54.193 * Background saving terminated with success OOPS: 182 passed, 2 skipped, 6 FAILED --- FAIL: Test (377.49s) --- FAIL: TestSentinel (0.22s) sentinel_test.go:104: dial tcp :8123: connect: connection refused FAIL exit status 1 FAIL gopkg.in/redis.v2 378.784s error: Bad exit status from /var/tmp/rpm-tmp.iJ6luP (%check) RPM build warnings: RPM build errors: %patchN is deprecated (2 usages found), use %patch N (or %patch -P N) Bad exit status from /var/tmp/rpm-tmp.iJ6luP (%check) Child pid '726731' is dead Child dead, killing orphans 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-gopkg-redis-2.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-gopkg-redis-2.spec