Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the Pod-ProjectDocs CPAN distribution.

Report information
The Basics
Id: 105374
Status: resolved
Priority: 0/
Queue: Pod-ProjectDocs

People
Owner: Nobody in particular
Requestors: KENTNL [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: 0.40
Fixed in: (no value)



Subject: Possible Race condition in parallel testing

Running with 10 harness jobs seems to cause random failures.

 

I'd suspect that the tests in question are doing IO in some common path not expecting that the other will write over them, but I haven't looked into it.

 

* Test::Harness Jobs=4
PERL_DL_NONLAZY=1 "/usr/bin/perl" "-MExtUtils::Command::MM" "-MTest::Harness" "-e" "undef *Test::Harness::Switches; test_harness(0, 'inc', 'blib/lib', 'blib/arch')" t/*.t
make --jobs=4 --load-average=1.0 test TEST_VERBOSE=0
t/00_compile.t .. ok                                                    
t/02_module.t ... ok                                                    
Can't open /tmp/portage/dev-perl-Pod-ProjectDocs-0.400.0-r2/work/Pod-ProjectDocs-0.40/t/output/Sample/Module.pm.html. at /tmp/portage/dev-perl-Pod-ProjectDocs-0.400.0-r2/wo
rk/Pod-ProjectDocs-0.40/blib/lib/Pod/ProjectDocs.pm line 133.
# Looks like your test exited with 2 before it could output anything.

---

PERL_DL_NONLAZY=1 "/usr/bin/perl" "-MExtUtils::Command::MM" "-MTest::Harness" "-e" "undef *Test::Harness::Switches; test_harness(0, 'inc', 'blib/lib', 'blib/arch')" t/*.t
t/00_compile.t .. ok                                                    
t/01_project.t .. ok                                                    
t/02_module.t ... Dubious, test returned 2 (wstat 512, 0x200)
No subtests run

Test Summary Report
-------------------
t/02_module.t (Wstat: 512 Tests: 0 Failed: 0)
  Non-zero exit status: 2
  Parse errors: No plan found in TAP output
Files=3, Tests=11,  1 wallclock secs ( 0.06 usr  0.01 sys +  0.91 cusr  0.09 csys =  1.07 CPU)
Result: FAIL
Makefile:797: recipe for target 'test_dynamic' failed
Can't open /tmp/portage/dev-perl-Pod-ProjectDocs-0.400.0-r2/work/Pod-ProjectDocs-0.40/t/output/Module.pm.html. at /tmp/portage/dev-perl-Pod-ProjectDocs-0.400.0-r2/work/Pod-
ProjectDocs-0.40/blib/lib/Pod/ProjectDocs.pm line 133.
# Looks like your test exited with 2 before it could output anything.


 

Fixed in https://github.com/mgruner/p5-pod-projectdocs/commit/8f13b357b8817abcada24ed0b0e0d3474006ccc2. Will be in upcoming 0.42. Am Fr 19. Jun 2015, 05:57:56, KENTNL schrieb: Show quoted text
> Running with 10 harness jobs seems to cause random failures. > > I'd suspect that the tests in question are doing IO in some common > path not > expecting that the other will write over them, but I haven't looked > into it. > > * Test::Harness Jobs=4 > PERL_DL_NONLAZY=1 "/usr/bin/perl" "-MExtUtils::Command::MM" "- > MTest::Harness" > "-e" "undef *Test::Harness::Switches; test_harness(0, 'inc', > 'blib/lib', > 'blib/arch')" t/*.t > make --jobs=4 --load-average=1.0 test TEST_VERBOSE=0 > t/00_compile.t .. ok > t/02_module.t ... ok > Can't open > /tmp/portage/dev-perl-Pod-ProjectDocs-0.400.0-r2/work/Pod-ProjectDocs- > 0.40/t/output/Sample/Module.pm.html. > at /tmp/portage/dev-perl-Pod-ProjectDocs-0.400.0-r2/wo > rk/Pod-ProjectDocs-0.40/blib/lib/Pod/ProjectDocs.pm line 133. > # Looks like your test exited with 2 before it could output anything. > > --- > > PERL_DL_NONLAZY=1 "/usr/bin/perl" "-MExtUtils::Command::MM" "- > MTest::Harness" > "-e" "undef *Test::Harness::Switches; test_harness(0, 'inc', > 'blib/lib', > 'blib/arch')" t/*.t > t/00_compile.t .. ok > t/01_project.t .. ok > t/02_module.t ... Dubious, test returned 2 (wstat 512, 0x200) > No subtests run > > Test Summary Report > ------------------- > t/02_module.t (Wstat: 512 Tests: 0 Failed: 0) > Non-zero exit status: 2 > Parse errors: No plan found in TAP output > Files=3, Tests=11, 1 wallclock secs ( 0.06 usr 0.01 sys + 0.91 cusr > 0.09 csys = > 1.07 CPU) > Result: FAIL > Makefile:797: recipe for target 'test_dynamic' failed > Can't open > /tmp/portage/dev-perl-Pod-ProjectDocs-0.400.0-r2/work/Pod-ProjectDocs- > 0.40/t/output/Module.pm.html. > at /tmp/portage/dev-perl-Pod-ProjectDocs-0.400.0-r2/work/Pod- > ProjectDocs-0.40/blib/lib/Pod/ProjectDocs.pm line 133. > # Looks like your test exited with 2 before it could output anything.