Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 809755 - [TEST] dev-util/bats-1.4.1 - not ok 121 parallelity factor is met exactly
Summary: [TEST] dev-util/bats-1.4.1 - not ok 121 parallelity factor is met exactly
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Henning Schild
URL:
Whiteboard:
Keywords: PullRequest, TESTFAILURE
Depends on:
Blocks:
 
Reported: 2021-08-23 07:31 UTC by Toralf Förster
Modified: 2021-09-25 02:58 UTC (History)
1 user (show)

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


Attachments
emerge-info.txt (emerge-info.txt,16.73 KB, text/plain)
2021-08-23 07:31 UTC, Toralf Förster
Details
dev-util:bats-1.4.1:20210823-003229.log (dev-util:bats-1.4.1:20210823-003229.log,9.71 KB, text/plain)
2021-08-23 07:31 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,416.43 KB, text/plain)
2021-08-23 07:31 UTC, Toralf Förster
Details
environment (environment,23.76 KB, text/plain)
2021-08-23 07:31 UTC, Toralf Förster
Details
etc.portage.tar.bz2 (etc.portage.tar.bz2,28.78 KB, application/x-bzip)
2021-08-23 07:31 UTC, Toralf Förster
Details
temp.tar.bz2 (temp.tar.bz2,10.79 KB, application/x-bzip)
2021-08-23 07:31 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 2021-08-23 07:31:25 UTC
ok 119 setup_file is not over parallelized
ok 120 running the same file twice runs its tests twice without errors
not ok 121 parallelity factor is met exactly
# (in test file test/parallel.bats, line 127)
#   `[[ "${#lines[@]}" -eq $parallelity  ]]' failed
# 1..10
# 

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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_hardened-j4_test-20210817-100010

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

gcc-config -l:
 [1] x86_64-pc-linux-gnu-11.2.0 *
/usr/lib/llvm/12
12.0.1
Python 3.9.6
Available Ruby profiles:
  [1]   ruby26 (with Rubygems)
  [2]   ruby30 (with Rubygems) *
Available Rust versions:
  [1]   rust-1.54.0 *
The following VMs are available for generation-2:
Available Java Virtual Machines:
  (none found)

The Glorious Glasgow Haskell Compilation System, version 8.10.4

  HEAD of ::gentoo
commit ba2d72b2c82b26954651689795ab4bcb36ba16fc
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Sun Aug 22 23:21:31 2021 +0000

    2021-08-22 23:21:29 UTC

emerge -qpvO dev-util/bats
[ebuild  N    ] dev-util/bats-1.4.1
Comment 1 Toralf Förster gentoo-dev 2021-08-23 07:31:27 UTC
Created attachment 735265 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2021-08-23 07:31:28 UTC
Created attachment 735268 [details]
dev-util:bats-1.4.1:20210823-003229.log
Comment 3 Toralf Förster gentoo-dev 2021-08-23 07:31:30 UTC
Created attachment 735271 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2021-08-23 07:31:32 UTC
Created attachment 735274 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2021-08-23 07:31:33 UTC
Created attachment 735277 [details]
etc.portage.tar.bz2
Comment 6 Toralf Förster gentoo-dev 2021-08-23 07:31:34 UTC
Created attachment 735280 [details]
temp.tar.bz2
Comment 7 Henning Schild 2021-08-23 19:43:44 UTC
I can reproduce the issue when "sys-process/parallel" is installed. That one test will fail for both versions currently in the tree.

Not having "sys-process/parallel" installed looks good, but that should be "added value" and not conflict in any way.
Comment 8 Henning Schild 2021-08-23 21:02:01 UTC
The test failure seems to boil down to a "ps" not delivering the expected result. Might be some kind of sandbox FEATURE.

Running that same test outside or portage looks good, but inside that "ps" will not find "bats-exec-test" and "$output" will be empty, resulting in "${#lines[@]}" being "0" instead of the expected "5"
Comment 9 Henning Schild 2021-08-24 19:33:49 UTC
Could not find the rootcause or a valid patch against upstream. So proposing a change to patch out the failing test, see pull-request
Comment 10 Larry the Git Cow gentoo-dev 2021-09-25 02:58:11 UTC
The bug has been closed via the following commit(s):

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

commit 7746b3a35179bf129899d5684789d2e668937fc4
Author:     Henning Schild <henning@hennsch.de>
AuthorDate: 2021-08-24 08:41:24 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2021-09-25 02:53:35 +0000

    dev-util/bats: disable failing test
    
    Could not figure out why exactly that test fails, but it has to do with
    the portage environment it runs in. Outside that environment it works
    just fine and upstream will have tested that when they release to us.
    
    Closes: https://bugs.gentoo.org/809755
    Signed-off-by: Henning Schild <henning@hennsch.de>
    Signed-off-by: Sam James <sam@gentoo.org>

 dev-util/bats/bats-1.3.0.ebuild | 6 ++++++
 dev-util/bats/bats-1.4.1.ebuild | 6 ++++++
 2 files changed, 12 insertions(+)