Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 738308 - dev-perl/Archive-Zip-1.680.0 fails tests
Summary: dev-perl/Archive-Zip-1.680.0 fails tests
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Perl team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-08-21 05:14 UTC by Agostino Sarubbo
Modified: 2020-08-21 08:26 UTC (History)
1 user (show)

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


Attachments
build.log (build.log,14.59 KB, text/plain)
2020-08-21 05:14 UTC, Agostino Sarubbo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Agostino Sarubbo gentoo-dev 2020-08-21 05:14:24 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: dev-perl/Archive-Zip-1.680.0 fails tests.
Discovered on: amd64 (internal ref: ci)

NOTE:
This machine uses GLIBC-2.32. If you think that this issue is strictly related to GLIBC please block bug 736174.
Comment 1 Agostino Sarubbo gentoo-dev 2020-08-21 05:14:27 UTC
Created attachment 655858 [details]
build.log

build log and emerge --info
Comment 2 Kent Fredric (IRC: kent\n) (RETIRED) gentoo-dev 2020-08-21 07:30:37 UTC
Hmm, that looks like a race condition in parallel tests.

- Does the problem happen every time you build with the test suite?
- Can you make the problem stop happening reliably by having DIST_TEST_OVERRIDE="do" set in ENV?
Comment 3 Kent Fredric (IRC: kent\n) (RETIRED) gentoo-dev 2020-08-21 07:46:12 UTC
Wow, you should buy a lotto ticket, looks like you got between the "or" condition in here somehow in concurrency :D 

use constant TESTDIR => do {
    -d 'testdir' or mkdir 'testdir' or die $!;
    tempdir(DIR => 'testdir', CLEANUP => 1, EXLOCK => 0);
};

( the directory didn't exist, so it ran mkdir, and mkdir failed because another thread created it )
Comment 4 Larry the Git Cow gentoo-dev 2020-08-21 08:26:58 UTC
The bug has been closed via the following commit(s):

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

commit 98ef7ebb399b2ee5ae2df0dc539ddb9b7da34b8d
Author:     Kent Fredric <kentnl@gentoo.org>
AuthorDate: 2020-08-21 08:26:01 +0000
Commit:     Kent Fredric <kentnl@gentoo.org>
CommitDate: 2020-08-21 08:26:42 +0000

    dev-perl/Archive-Zip: Disable parallel tests re bug #738308
    
    Seems there are a lot of ways concurrency in these tests can collide,
    they share some 'test directory' magic which seems hard to fix without
    being invasive
    
    Closes: https://bugs.gentoo.org/738308
    Bug: https://github.com/redhotpenguin/perl-Archive-Zip/issues/82
    Package-Manager: Portage-2.3.103, Repoman-2.3.22
    Signed-off-by: Kent Fredric <kentnl@gentoo.org>

 dev-perl/Archive-Zip/Archive-Zip-1.680.0.ebuild | 5 +++++
 1 file changed, 5 insertions(+)