Bug 1185520 - coreutils testsuite fails on 1-core VM
Summary: coreutils testsuite fails on 1-core VM
Status: RESOLVED FIXED
Alias: None
Product: openSUSE Tumbleweed
Classification: openSUSE
Component: Other (show other bugs)
Version: Current
Hardware: Other All
: P5 - None : Normal (vote)
Target Milestone: ---
Assignee: Raymund Will
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-05-01 07:19 UTC by Bernhard Wiedemann
Modified: 2021-05-05 06:42 UTC (History)
2 users (show)

See Also:
Found By: Development
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments
build log (776.77 KB, text/plain)
2021-05-01 07:19 UTC, Bernhard Wiedemann
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Bernhard Wiedemann 2021-05-01 07:19:06 UTC
Created attachment 848936 [details]
build log

While working on reproducible builds, I found that
coreutils testsuite (randomly?) fails to pass on 1-core VMs.

Steps to Reproduce:
osc co openSUSE:Factory/coreutils && cd $_
osc build --noservice -M testsuite -j1 --vm-type=kvm standard

Actual Results:

[  560s] FAIL tests/ls/stat-free-color.sh (exit status: 1)

[  561s] Testsuite summary for GNU coreutils 8.32
[  561s] ============================================================================
[  561s] # TOTAL: 591
[  561s] # PASS:  534
[  561s] # SKIP:  56
[  561s] # XFAIL: 0
[  561s] # FAIL:  1
[  561s] # XPASS: 0
[  561s] # ERROR: 0

note: probably also affects all enterprise codestreams
Comment 1 Raymund Will 2021-05-03 13:24:12 UTC
Would you mind to re-test with SR#889683, please?
Comment 2 Bernhard Voelker 2021-05-03 16:59:14 UTC
FWIW: the false positive was not really related to 1 or more CPUs,
but because ls(1) now calls stat(STDOUT_FILENO, ...) before writing to stdout,
and the ls invocation to create the reference count didn't output anything;
hence the difference to the expected outcome.

Discussed at:
  https://lists.gnu.org/r/coreutils/2021-04/msg00050.html
Upstream patch:
  https://git.sv.gnu.org/cgit/coreutils.git/commit/?id=b7091093bb
Comment 3 Bernhard Wiedemann 2021-05-05 00:15:32 UTC
The update seems to have fixed the tests.
Indeed, I could also reproduce the issue without -j1 (before the patch).
Comment 4 Bernhard Voelker 2021-05-05 06:42:44 UTC
Thanks for confirming.