Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 910640 - sys-apps/coreutils-9.3-r3 - test tests/misc/tty-eof.pl is very flaky
Summary: sys-apps/coreutils-9.3-r3 - test tests/misc/tty-eof.pl is very flaky
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords: TESTFAILURE
Depends on:
Blocks:
 
Reported: 2023-07-21 13:26 UTC by Paolo Pedroni
Modified: 2024-03-26 23:40 UTC (History)
0 users

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


Attachments
coreutils-9.3-r3:20230721-130405.log.gz (coreutils-9.3-r3:20230721-130405.log.gz,127.80 KB, application/gzip)
2023-07-21 13:26 UTC, Paolo Pedroni
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Paolo Pedroni 2023-07-21 13:26:09 UTC
Created attachment 865856 [details]
coreutils-9.3-r3:20230721-130405.log.gz

Test tests/misc/tty-eof.pl is very flaky on one of my machines: it succeeds maybe once out of five times I try to merge the package (it was like this also in older revisions but I never managed to report it).

FAIL: tests/misc/tty-eof
========================

F: 1: 42d31e6715c300e2c4db53bacaff0e2d5f59454a28e2efd026a4762415171e7af0bb6ead7bcaf0a179b0f720febb5c26a2a7842fae19f71fb0c82163bedb2ce5  -
F: 1: MEQGECQ=
tty-eof.pl: base32 exited with status 1 (expected 0)
F: 1: YSBiCg==
tty-eof.pl: base64 exited with status 1 (expected 0)
F: 1: a b
tty-eof.pl: cat exited with status 1 (expected 0)
F: 1: 780509149 4
tty-eof.pl: cksum exited with status 1 (expected 0)
F: 1: a b
tty-eof.pl: dd exited with status 1 (expected 0)
F: 1: a b
F: 1: a b
F: 1: a b
tty-eof.pl: fold exited with status 1 (expected 0)
F: 1: a b
tty-eof.pl: head exited with status 1 (expected 0)
F: 1: 7557d2f3a6ad1a3a8ebd23a94ab0c642  -
tty-eof.pl: md5sum exited with status 1 (expected 0)
F: 1:      1    
tty-eof.pl: nl exited with status 1 (expected 0)
F: 1: 0000000 020141 005142
F: 1: a b
F: 1: 
F: 1:                                        a b
F: 1: 90ce62edf2fe4940e041a68b13e7b5f9d02bbf51  -
tty-eof.pl: sha1sum exited with status 1 (expected 0)
F: 1: afa36e61f94d23fa2869cc1ca3c7a0855ecb7f3d3305e446e7566d1f  -
tty-eof.pl: sha224sum exited with status 1 (expected 0)
F: 1: 01186fcf04b4b447f393e552964c08c7b419c1ad7a25c342a0b631b1967d3a27  -
tty-eof.pl: sha256sum exited with status 1 (expected 0)
F: 1: adf433b1ea7db8dec7ca64f88f4c8bc5403a1ac1d3540ae0229c79fc8d84e3db4dd9616605c61215ee7c50da0a97d0e2  -
F: 1: ae206702ea661de518d6451ee5b76fe0120429239b73838301991a294bc2628c0b9bbe79d06b1ab0610a66e9ce7d7e16cdcbdc244058befefc03c5d9cce54357  -
F: 1: a b
tty-eof.pl: shuf exited with status 1 (expected 0)
F: 1: a b
F: 1: 08271     1
F: 1: a b
F: 1: a b
F: 1: a b
F: 1: a
F: 1: a b
F: 1: a b
F: 1:       1       2       4
F: 1: vix1^
F: 1: a b
FAIL tests/misc/tty-eof.pl (exit status: 1)
[...]
============================================================================
Testsuite summary for GNU coreutils 9.3
============================================================================
# TOTAL: 643
# PASS:  510
# SKIP:  132
# XFAIL: 0
# FAIL:  1
# XPASS: 0
# ERROR: 0
============================================================================
See ./tests/test-suite.log
Please report to bug-coreutils@gnu.org
============================================================================
make[4]: *** [Makefile:21412: tests/test-suite.log] Error 1
make[4]: Leaving directory '/var/tmp/portage/sys-apps/coreutils-9.3-r3/work/coreutils-9.3'
make[3]: *** [Makefile:21520: check-TESTS] Error 2
make[3]: Leaving directory '/var/tmp/portage/sys-apps/coreutils-9.3-r3/work/coreutils-9.3'
make[2]: *** [Makefile:21780: check-am] Error 2
make[2]: Leaving directory '/var/tmp/portage/sys-apps/coreutils-9.3-r3/work/coreutils-9.3'
[...]
make[2]: Leaving directory '/var/tmp/portage/sys-apps/coreutils-9.3-r3/work/coreutils-9.3/gnulib-tests'
make[1]: *** [Makefile:21297: check-recursive] Error 1
make[1]: Leaving directory '/var/tmp/portage/sys-apps/coreutils-9.3-r3/work/coreutils-9.3'
make: *** [Makefile:21782: check] Error 2
 * ERROR: sys-apps/coreutils-9.3-r3::gentoo failed (test phase):
 *   emake failed

# emerge --info =sys-apps/coreutils-9.3-r3
Portage 3.0.49 (python 3.11.4-final-0, default/linux/amd64/17.1/desktop/plasma/systemd/merged-usr, gcc-12, glibc-2.37-r3, 6.1.38-gentoo x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-6.1.38-gentoo-x86_64-Intel-R-_Core-TM-_i5-1035G1_CPU_@_1.00GHz-with-glibc2.37
KiB Mem:    15888240 total,   3423576 free
KiB Swap:   16777212 total,  12635388 free
Timestamp of repository gentoo: Fri, 21 Jul 2023 06:45:01 +0000
Head commit of repository gentoo: 6930c8c4b3f3f877e7efd992dae2ebaa8eb42a93
sh dash 0.5.12
ld GNU ld (Gentoo 2.40 p5) 2.40.0
distcc 3.4 x86_64-pc-linux-gnu [enabled]
ccache version 4.8.2 [disabled]
app-misc/pax-utils:        1.3.5::gentoo
app-shells/bash:           5.1_p16-r6::gentoo
dev-java/java-config:      2.3.1-r1::gentoo
dev-lang/perl:             5.36.1-r3::gentoo
dev-lang/python:           3.11.4::gentoo
dev-lang/rust:             1.69.0-r1::gentoo
dev-util/ccache:           4.8.2::gentoo
dev-util/cmake:            3.26.4-r1::gentoo
dev-util/meson:            1.1.1::gentoo
sys-apps/baselayout:       2.13-r1::gentoo
sys-apps/sandbox:          2.37::gentoo
sys-apps/systemd:          253.6::gentoo
sys-devel/autoconf:        2.71-r6::gentoo
sys-devel/automake:        1.16.5-r1::gentoo
sys-devel/binutils:        2.40-r5::gentoo
sys-devel/binutils-config: 5.5::gentoo
sys-devel/clang:           15.0.7-r3::gentoo, 16.0.6::gentoo
sys-devel/gcc:             12.3.1_p20230526::gentoo
sys-devel/gcc-config:      2.11::gentoo
sys-devel/libtool:         2.4.7-r1::gentoo
sys-devel/lld:             15.0.7::gentoo, 16.0.6::gentoo
sys-devel/llvm:            15.0.7-r3::gentoo, 16.0.6::gentoo
sys-devel/make:            4.4.1-r1::gentoo
sys-kernel/linux-headers:  6.1::gentoo (virtual/os-headers)
sys-libs/glibc:            2.37-r3::gentoo
Repositories:

gentoo
    location: /var/db/repos/gentoo
    sync-type: rsync
    sync-uri: rsync://rsync.europe.gentoo.org/gentoo-portage
    priority: -1000
    volatile: True
    sync-rsync-extra-opts: 
    sync-rsync-verify-jobs: 1
    sync-rsync-verify-max-age: 24
    sync-rsync-verify-metamanifest: yes

x-portage
    location: /usr/local/portage
    masters: gentoo
    priority: 0
    volatile: True

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="@FREE"
AR="/usr/bin/gcc-ar"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -frecord-gcc-switches -march=icelake-client -mabm -ftree-vectorize -flto=4"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/easy-rsa /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d"
CXXFLAGS="-O2 -pipe -frecord-gcc-switches -march=icelake-client -mabm -ftree-vectorize -flto=4"
DISTDIR="/var/cache/distfiles"
EMERGE_DEFAULT_OPTS="--keep-going y --with-bdeps y"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GDK_PIXBUF_MODULE_FILE GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR XDG_STATE_HOME"
FCFLAGS="-O2 -pipe -frecord-gcc-switches -march=icelake-client -mabm -ftree-vectorize -flto=4"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs buildpkg-live cgroup compress-build-logs config-protect-if-modified distcc distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms sign split-elog split-log strict strict-keepdir test unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync warn-on-large-env xattr"
FFLAGS="-O2 -pipe -frecord-gcc-switches -march=icelake-client -mabm -ftree-vectorize -flto=4"
GENTOO_MIRRORS="http://mirror.leaseweb.com/gentoo/ http://gentoo.mirrors.ovh.net/gentoo-distfiles/ http://tux.rainside.sk/gentoo/ http://mirror.init7.net/gentoo/"
LANG="it_IT.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,--hash-style=gnu -Wl,--sort-common -ftree-vectorize -flto=4"
LEX="flex"
LINGUAS="it it_IT"
MAKEOPTS="-j15 -l8"
NM="/usr/bin/gcc-nm"
PKGDIR="/var/cache/binpkgs"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
RANLIB="/usr/bin/gcc-ranlib"
SHELL="/bin/bash"
USE="X a52 aac aalib acl acpi activities adns alsa amd64 ao audiofile bash-completion bluetooth branding brotli bzip2 cairo caps cdda cddb cdparanoia cdr cli crypt css cups curl dbus declarative dga djvu dri dts dvd dvdr encode exif expat fbcon ffmpeg fftw flac fontconfig foomaticdb fortran ftp gd gdbm geoip gif gimp gmp gnutls gphoto2 gpm graphviz gstreamer gtk gui guile handbook iconv icu idn imagemagick imlib introspection ipv6 java javascript jbig jemalloc jpeg jpeg2k kde kwallet lame lcms libass libnotify libsamplerate libtirpc lm-sensors lua lz4 lzma lzo mad magic mhash mmap mng mp3 mp4 mpeg multilib musicbrainz ncurses networkmanager nls nptl offensive ogg openal opengl openmp opus pam pango pcre pdf pipewire plasma png policykit postscript ppds pulseaudio qml qt5 rdesktop readline recode samba screencast sctp sdl seccomp sndfile sockets sound speex spell sqlite ssl startup-notification svg symlink syslog systemd sysvipc taglib telemetry test test-rust theora threads tidy tiff truetype udev udisks unicode upower usb v4l vaapi vala verify-sig vim-syntax vnc vorbis vulkan wavpack wayland webp widgets win32codecs wmf wxwidgets x264 xattr xcb xft xinerama xml xpm xscreensaver xv xvid yahoo zip zlib zstd" ABI_X86="64" ADA_TARGET="gnat_2021" ALSA_CARDS="hda-intel virmidi" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 avx512f avx512dq avx512cd avx512bw avx512vl avx512vbmi f16c fma3 mmx mmxext pclmul popcnt rdrand sha sse sse2 sse3 sse4_1 sse4_2 ssse3" CURL_SSL="gnutls" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="libinput" KERNEL="linux" L10N="it en" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php8-1" POSTGRES_TARGETS="postgres12 postgres13" PYTHON_SINGLE_TARGET="python3_11" PYTHON_TARGETS="python3_11" RUBY_TARGETS="ruby31" VIDEO_CARDS="intel i965 iris" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq proto steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  ADDR2LINE, ARFLAGS, AS, ASFLAGS, CC, CCLD, CONFIG_SHELL, CPP, CPPFLAGS, CTARGET, CXX, CXXFILT, ELFEDIT, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LC_ALL, LD, LFLAGS, LIBTOOL, MAKE, MAKEFLAGS, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS

# emerge -1pqv =sys-apps/coreutils-9.3-r3
[ebuild     U ] sys-apps/coreutils-9.3-r3 [9.3-r2] USE="acl caps gmp nls openssl test verify-sig xattr -hostname -kill -multicall (-selinux) (-split-usr) -static -vanilla"
Comment 1 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-03-23 19:49:46 UTC
I reported this upstream before but we couldn't debug it.

* https://lists.gnu.org/archive/html/coreutils/2023-04/msg00020.html
* https://www.mail-archive.com/coreutils@gnu.org/msg11492.html

I just have no idea what it's about...
Comment 2 Larry the Git Cow gentoo-dev 2024-03-23 20:19:46 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=502e78b6185f3351434b7345dd9b36ce4131a76e

commit 502e78b6185f3351434b7345dd9b36ce4131a76e
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2024-03-23 20:01:05 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2024-03-23 20:02:03 +0000

    sys-apps/coreutils: add 9.4_p20240323 (unkeyworded)
    
    Reworked tests as well.
    
    Closes: https://bugs.gentoo.org/413621
    Closes: https://bugs.gentoo.org/629660
    Closes: https://bugs.gentoo.org/803377
    Closes: https://bugs.gentoo.org/898370
    Closes: https://bugs.gentoo.org/910640
    Closes: https://bugs.gentoo.org/926349
    Signed-off-by: Sam James <sam@gentoo.org>

 sys-apps/coreutils/Manifest                       |   3 +
 sys-apps/coreutils/coreutils-9.4_p20240323.ebuild | 302 ++++++++++++++++++++++
 sys-apps/coreutils/coreutils-9999.ebuild          |  63 +++--
 3 files changed, 352 insertions(+), 16 deletions(-)

Additionally, it has been referenced in the following commit(s):

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

commit b6c182cea4b7c5516ddaa3d69dad06fd1c088ae7
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2024-03-23 20:08:20 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2024-03-23 20:08:20 +0000

    sys-apps/coreutils: backport test fixes to 9.4
    
    Bug: https://bugs.gentoo.org/413621
    Bug: https://bugs.gentoo.org/629660
    Bug: https://bugs.gentoo.org/803377
    Bug: https://bugs.gentoo.org/898370
    Bug: https://bugs.gentoo.org/910640
    Bug: https://bugs.gentoo.org/926349
    Signed-off-by: Sam James <sam@gentoo.org>

 sys-apps/coreutils/coreutils-9.4.ebuild | 59 +++++++++++++++++++++++++--------
 1 file changed, 45 insertions(+), 14 deletions(-)
Comment 3 Larry the Git Cow gentoo-dev 2024-03-26 23:40:42 UTC
The bug has been referenced in the following commit(s):

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

commit f2059605a643678ff4c26bd8104140281360c47a
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2024-03-26 23:40:01 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2024-03-26 23:40:01 +0000

    sys-apps/coreutils: fully skip tty-eof.pl
    
    It's an unreliable/flaky test, not just a known failure, so XFAIL isn't appropriate
    as it may pass sometimes -> unexpected XPASS.
    
    tdr reported this passed for him which is how I noticed my silly error.
    
    Bug: https://bugs.gentoo.org/910640
    Signed-off-by: Sam James <sam@gentoo.org>

 sys-apps/coreutils/coreutils-9.4-r1.ebuild        | 9 ++++++---
 sys-apps/coreutils/coreutils-9.4.ebuild           | 9 ++++++---
 sys-apps/coreutils/coreutils-9.4_p20240323.ebuild | 9 ++++++---
 sys-apps/coreutils/coreutils-9999.ebuild          | 9 ++++++---
 4 files changed, 24 insertions(+), 12 deletions(-)