Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 885559 - dev-vcs/pre-commit-2.20.0-r1 fails tests against sys-apps/coreutils[multicall]: tests/parse_shebang_test.py::test_normalize_cmd_{trivial,PATH}: AssertionError
Summary: dev-vcs/pre-commit-2.20.0-r1 fails tests against sys-apps/coreutils[multicall...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Marek Szuba
URL:
Whiteboard:
Keywords: TESTFAILURE
Depends on:
Blocks:
 
Reported: 2022-12-12 10:05 UTC by Toralf Förster
Modified: 2022-12-13 11:02 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge-info.txt (emerge-info.txt,18.01 KB, text/plain)
2022-12-12 10:05 UTC, Toralf Förster
Details
dev-vcs:pre-commit-2.20.0-r1:20221212-044659.log (dev-vcs:pre-commit-2.20.0-r1:20221212-044659.log,81.40 KB, text/plain)
2022-12-12 10:05 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,84.19 KB, text/plain)
2022-12-12 10:05 UTC, Toralf Förster
Details
environment (environment,144.13 KB, text/plain)
2022-12-12 10:05 UTC, Toralf Förster
Details
etc.clang.tar.bz2 (etc.clang.tar.bz2,702 bytes, application/x-bzip)
2022-12-12 10:05 UTC, Toralf Förster
Details
etc.portage.tar.bz2 (etc.portage.tar.bz2,33.50 KB, application/x-bzip)
2022-12-12 10:05 UTC, Toralf Förster
Details
temp.tar.bz2 (temp.tar.bz2,836.85 KB, application/x-bzip)
2022-12-12 10:06 UTC, Toralf Förster
Details
tests.tar.bz2 (tests.tar.bz2,43.27 KB, application/x-bzip)
2022-12-12 10:06 UTC, Toralf Förster
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2022-12-12 10:05:49 UTC
=================================== FAILURES ===================================
__________________________ test_normalize_cmd_trivial __________________________

    def test_normalize_cmd_trivial():
        cmd = (_echo_exe(), 'hi')
>       assert parse_shebang.normalize_cmd(cmd) == cmd
E       AssertionError: assert ('/usr/bin/coreutils', '--coreutils-prog-shebang=echo', '/bin/echo', 'hi') == ('/bin/echo', 'hi')
E         At index 0 diff: '/usr/bin/coreutils' != '/bin/echo'
E         Left contains 2 more items, first extra item: '/bin/echo'

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_systemd-j4_test-20221211-060004

  -------------------------------------------------------------------

GNUMAKEFLAGS="$GNUMAKEFLAGS --jobserver-style=pipe"
CC=clang
CXX=clang++
gcc-config -l:
 [1] x86_64-pc-linux-gnu-12 *
clang/llvm (if any):
clang version 15.0.6
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/15/bin
Configuration file: /etc/clang/clang.cfg
/usr/lib/llvm/15
15.0.6
Python 3.10.9
Available Rust versions:
  [1]   rust-bin-1.65.0 *
The following VMs are available for generation-2:
*)	Eclipse Temurin JDK 11.0.17_p8 [openjdk-bin-11]
Available Java Virtual Machines:
  [1]   openjdk-bin-11  system-vm

The Glorious Glasgow Haskell Compilation System, version 9.0.2
php cli (if any):

  HEAD of ::gentoo
commit 910d2ac50857db1f028781c20fd22dc18ba14dd8
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Mon Dec 12 03:46:48 2022 +0000

    2022-12-12 03:46:47 UTC

emerge -qpvO dev-vcs/pre-commit
[ebuild  N    ] dev-vcs/pre-commit-2.20.0-r1  USE="test" PYTHON_SINGLE_TARGET="python3_10 -python3_8 -python3_9 -python3_11"
Comment 1 Toralf Förster gentoo-dev 2022-12-12 10:05:51 UTC
Created attachment 841823 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2022-12-12 10:05:52 UTC
Created attachment 841825 [details]
dev-vcs:pre-commit-2.20.0-r1:20221212-044659.log
Comment 3 Toralf Förster gentoo-dev 2022-12-12 10:05:56 UTC
Created attachment 841827 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2022-12-12 10:05:57 UTC
Created attachment 841829 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2022-12-12 10:05:58 UTC
Created attachment 841831 [details]
etc.clang.tar.bz2
Comment 6 Toralf Förster gentoo-dev 2022-12-12 10:05:59 UTC
Created attachment 841833 [details]
etc.portage.tar.bz2
Comment 7 Toralf Förster gentoo-dev 2022-12-12 10:06:01 UTC
Created attachment 841835 [details]
temp.tar.bz2
Comment 8 Toralf Förster gentoo-dev 2022-12-12 10:06:02 UTC
Created attachment 841837 [details]
tests.tar.bz2
Comment 9 Marek Szuba archtester gentoo-dev 2022-12-12 22:34:03 UTC
Do I see correctly that the system in question has had sys-apps/coreutils emerged with USE=multicall?
Comment 10 Toralf Förster gentoo-dev 2022-12-13 10:07:14 UTC
(In reply to Marek Szuba from comment #9)
> Do I see correctly that the system in question has had sys-apps/coreutils
> emerged with USE=multicall?

# emerge -qpvO sys-apps/coreutils
[ebuild   R   ] sys-apps/coreutils-9.1-r2  USE="acl caps gmp multicall nls openssl (split-usr) test verify-sig xattr -hostname -kill (-selinux) -static -vanilla"
Comment 11 Larry the Git Cow gentoo-dev 2022-12-13 11:02:49 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2402bd56e409fbb6b0c40ed7e2fe7354a8a602a6

commit 2402bd56e409fbb6b0c40ed7e2fe7354a8a602a6
Author:     Marek Szuba <marecki@gentoo.org>
AuthorDate: 2022-12-13 10:54:55 +0000
Commit:     Marek Szuba <marecki@gentoo.org>
CommitDate: 2022-12-13 10:54:55 +0000

    dev-vcs/pre-commit: require non-multicall coreutils for tests
    
    Two of the parse_shebang_test.py tests do not like it it where echo
    is a wrapper around the multicall binary. Given the behaviour
    demonstrated by pre-commit upstream, I don't really them to address
    this any time soon.
    
    Closes: https://bugs.gentoo.org/885559
    Signed-off-by: Marek Szuba <marecki@gentoo.org>

 dev-vcs/pre-commit/pre-commit-2.20.0-r1.ebuild | 2 ++
 1 file changed, 2 insertions(+)