[Bug 2131499] Review Request: golang-github-erikgeiser-promptkit - Go prompt library

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



https://bugzilla.redhat.com/show_bug.cgi?id=2131499



--- Comment #2 from W. Michael Petullo <mike@xxxxxxxx> ---
I found that the mock build failed, as run by "fedora-review -b 2131499".
Building with "rpmbuild --rebuild ..." on Fedora 37 similarly failed.

+ go-rpm-integration check -i github.com/erikgeiser/promptkit -b
/builddir/build/BUILD/promptkit-1f33bc73d091f90faf118ee5ab5d85cb6474ca7c/_build/bin
-s
/builddir/build/BUILD/promptkit-1f33bc73d091f90faf118ee5ab5d85cb6474ca7c/_build
-V 0.7.0-1.20221001git1f33bc7.fc38 -C 1f33bc73d091f90faf118ee5ab5d85cb6474ca7c
-p
/builddir/build/BUILDROOT/golang-github-erikgeiser-promptkit-0.7.0-1.20221001git1f33bc7.fc38.x86_64
-g /usr/share/gocode -r '.*example.*'
Testing    in:
/builddir/build/BUILD/promptkit-1f33bc73d091f90faf118ee5ab5d85cb6474ca7c/_build/src
         PATH:
/builddir/build/BUILD/promptkit-1f33bc73d091f90faf118ee5ab5d85cb6474ca7c/_build/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/sbin
       GOPATH:
/builddir/build/BUILD/promptkit-1f33bc73d091f90faf118ee5ab5d85cb6474ca7c/_build:/usr/share/gocode
  GO111MODULE: off
      command: go test -buildmode pie -compiler gc -ldflags " -X
github.com/erikgeiser/promptkit/version=0.7.0 -X
github.com/erikgeiser/promptkit/version.commit=1f33bc73d091f90faf118ee5ab5d85cb6474ca7c
-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/erikgeiser/promptkit
github.com/erikgeiser/promptkit
PASS
ok      github.com/erikgeiser/promptkit 0.001s
github.com/erikgeiser/promptkit/confirmation
--- FAIL: TestDefaultYes (0.00s)
    model_test.go:29: view mismatch in default_yes.golden:
        Expected:
            ready? Yes

        Got:
            ready? Yes
--- FAIL: TestDefaultNilIsUndecided (0.00s)
    model_test.go:93: view mismatch in default_nil.golden:
        Expected:
            ready?  Yes  No
        Got:
            ready?  Yes  No
--- FAIL: TestImmediatelyChooseNo (0.00s)
    model_test.go:137: view mismatch in choose_no.golden:
        Expected:
            ready? No

        Got:
            ready? No
--- FAIL: TestToggle (0.00s)
    model_test.go:155: view mismatch in toggle_before.golden:
        Expected:
            ready?  Yes  No
        Got:
            ready?  Yes  No
    model_test.go:163: view mismatch in toggle_once.golden:
        Expected:
            ready? �Yes  No
        Got:
            ready? �Yes  No
    model_test.go:171: view mismatch in toggle_twice.golden:
        Expected:
            ready?  Yes �No
        Got:
            ready?  Yes �No
    model_test.go:180: view mismatch in toggle_confirmed.golden:
        Expected:
            ready? Yes

        Got:
            ready? Yes
--- FAIL: TestTemplateYN (0.00s)
    model_test.go:271: view mismatch in templateyn_undecided.golden:
        Expected:
            yes or no? [y/n]
        Got:
            yes or no? [y/n]
    model_test.go:276: view mismatch in templateyn_no.golden:
        Expected:
            yes or no? [y/N]
        Got:
            yes or no? [y/N]
    model_test.go:281: view mismatch in templateyn_yes.golden:
        Expected:
            yes or no? [Y/n]
        Got:
            yes or no? [Y/n]
    model_test.go:290: view mismatch in templateyn_result.golden:
        Expected:
            yes or no? [Y/n]

        Got:
            yes or no? [Y/n]
--- FAIL: TestDefaultUndecided (0.00s)
    model_test.go:70: view mismatch in default_undecided.golden:
        Expected:
            ready?  Yes  No
        Got:
            ready?  Yes  No
--- FAIL: TestDefaultNo (0.00s)
    model_test.go:47: view mismatch in default_no.golden:
        Expected:
            ready? No

        Got:
            ready? No
--- FAIL: TestImmediatelyChooseYes (0.00s)
    model_test.go:115: view mismatch in choose_yes.golden:
        Expected:
            ready? Yes

        Got:
            ready? Yes
--- FAIL: TestSubmit (0.00s)
    model_test.go:256: view mismatch in submit.golden:
        Expected:
            ready? Yes

        Got:
            ready? Yes
--- FAIL: TestSelectNo (0.00s)
    model_test.go:216: view mismatch in select_no.golden:
        Expected:
            ready?  Yes �No
        Got:
            ready?  Yes �No
    model_test.go:218: view mismatch in select_no_confirmed.golden:
        Expected:
            ready? No

        Got:
            ready? No
--- FAIL: TestSelectYes (0.00s)
    model_test.go:197: view mismatch in select_yes.golden:
        Expected:
            ready? �Yes  No
        Got:
            ready? �Yes  No
    model_test.go:199: view mismatch in select_yes_confirmed.golden:
        Expected:
            ready? Yes

        Got:
            ready? Yes
FAIL
exit status 1
FAIL    github.com/erikgeiser/promptkit/confirmation    0.005s
error: Bad exit status from /var/tmp/rpm-tmp.snR5zg (%check)
    Bad exit status from /var/tmp/rpm-tmp.snR5zg (%check)
RPM build errors:
Child return code was: 1
EXCEPTION: [Error('Command failed: \n # /usr/bin/systemd-nspawn -q -M
3445907e19af467db4a77a1d2527a461 -D /var/lib/mock/fedora-rawhide-x86_64/root -a
-u mockbuild --capability=cap_ipc_lock
--bind=/tmp/mock-resolv.6nv75dot:/etc/resolv.conf --bind=/dev/btrfs-control
--bind=/dev/mapper/control --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 --console=pipe
--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;<mock-chroot>\\007"
--setenv=PS1=<mock-chroot> \\s-\\v\\$  --setenv=LANG=C.UTF-8 --resolv-conf=off
bash --login -c /usr/bin/rpmbuild -ba --noprep --noclean --target x86_64
--nodeps /builddir/build/SPECS/golang-github-erikgeiser-promptkit.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: 
 # /usr/bin/systemd-nspawn -q -M 3445907e19af467db4a77a1d2527a461 -D
/var/lib/mock/fedora-rawhide-x86_64/root -a -u mockbuild
--capability=cap_ipc_lock --bind=/tmp/mock-resolv.6nv75dot:/etc/resolv.conf
--bind=/dev/btrfs-control --bind=/dev/mapper/control --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
--console=pipe --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;<mock-chroot>\007" --setenv=PS1=<mock-chroot> \s-\v\$ 
--setenv=LANG=C.UTF-8 --resolv-conf=off bash --login -c /usr/bin/rpmbuild -ba
--noprep --noclean --target x86_64 --nodeps
/builddir/build/SPECS/golang-github-erikgeiser-promptkit.spec


-- 
You are receiving this mail because:
You are always notified about changes to this product and component
You are on the CC list for the bug.
https://bugzilla.redhat.com/show_bug.cgi?id=2131499
_______________________________________________
package-review mailing list -- package-review@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to package-review-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/package-review@xxxxxxxxxxxxxxxxxxxxxxx
Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue




[Index of Archives]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite Conditions]     [KDE Users]

  Powered by Linux