This queue is for tickets about the Parallel-Prefork CPAN distribution.

Report information
The Basics
Id:
113449
Status:
open
Priority:
Low/Low

People
Owner:
Nobody in particular
Requestors:
SREZIC [...] cpan.org
ppisar [...] redhat.com
Cc:
gregoa [...] cpan.org
AdminCc:

BugTracker
Severity:
(no value)
Broken in:
  • 0.18
  • 0.17
Fixed in:
(no value)



Subject: Time races in tests
MIME-Version: 1.0
X-Mailer: MIME-tools 5.504 (Entity 5.504)
Content-Disposition: inline
X-RT-Interface: Web
Message-ID: <rt-4.0.18-12677-1459335090-1925.0-0-0@rt.cpan.org>
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
X-RT-Encrypt: 0
X-RT-Sign: 0
Content-Length: 751
Many tests, like t/04-interval.t relies on precise timing that cannot be guaranteed. E.g. I encountered this failure on an overloaded machine: t/03-spareworkers.t ...................... ok # Failed test 'workers at 6 sec' # at t/04-interval.t line 30. # got: '0' # expected: '1' # Looks like you failed 1 test of 6. t/04-interval.t .......................... Dubious, test returned 1 (wstat 256, 0x100) Failed 1/6 subtests The reason is a CPU scheduler may delay process execution more then the various "sleep" calls specify and then the test will fail. CPAN test matrix <http://matrix.cpantesters.org/?dist=Parallel-Prefork+0.18> displays many failures in other tests. Can the tests be improved to eliminate the inherent races?
MIME-Version: 1.0
In-Reply-To: <rt-4.0.18-12677-1459335090-1925.0-0-0@rt.cpan.org>
X-Mailer: MIME-tools 5.504 (Entity 5.504)
Content-Disposition: inline
X-RT-Interface: Web
References: <rt-4.0.18-12677-1459335090-1925.0-0-0@rt.cpan.org>
Content-Type: text/plain; charset="utf-8"
Message-ID: <rt-4.0.18-2123-1480172496-1517.113449-0-0@rt.cpan.org>
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
X-RT-Encrypt: 0
X-RT-Sign: 0
Content-Length: 104
We're also seeing intermittent test failures in Debian: https://bugs.debian.org/786592 Cheers, gregor
MIME-Version: 1.0
In-Reply-To: <rt-4.0.18-2123-1480172496-1517.113449-0-0@rt.cpan.org>
X-Mailer: MIME-tools 5.504 (Entity 5.504)
Content-Disposition: inline
X-RT-Interface: Web
References: <rt-4.0.18-12677-1459335090-1925.0-0-0@rt.cpan.org> <rt-4.0.18-2123-1480172496-1517.113449-0-0@rt.cpan.org>
Content-Type: text/plain; charset="utf-8"
Message-ID: <rt-4.0.18-14005-1511011370-1121.113449-0-0@rt.cpan.org>
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
X-RT-Encrypt: 0
X-RT-Sign: 0
Content-Length: 588
On 2016-11-26 10:01:36, GREGOA wrote:
Show quoted text
> We're also seeing intermittent test failures in Debian: > > https://bugs.debian.org/786592 >
I tried to find out the reason for very frequent test failures of t/01-base.t on my FreeBSD smokers. The problem seems to be that the TERM signal handler may not be installed in all workers at the time of sending SIGTERM to the parent. Here's a simple patch which moves the unlocking after setup of the TERM handler. It seems to be effective on my smokers: http://cpan.metacpan.org/authors/id/S/SR/SREZIC/patches/Parallel-Prefork-0.18-RT113449.patch


This service runs on Request Tracker, is sponsored by The Perl Foundation, and maintained by Best Practical Solutions.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.