Skip to content
This repository has been archived by the owner on Mar 25, 2024. It is now read-only.

v2.03 tests fail with HARNESS_OPTIONS=j5 #3

Open
kentfredric opened this issue May 18, 2013 · 2 comments
Open

v2.03 tests fail with HARNESS_OPTIONS=j5 #3

kentfredric opened this issue May 18, 2013 · 2 comments

Comments

@kentfredric
Copy link

at its simplest, it appears presently, 2 tests in the dist can't be run concurrently, because they might create/delete the same paths.

The simplest case can be exhibited by doing

prove -lvr t/test-kwalitee.t & prove -lvr t/deprecated.t

And enough repeating of that command will eventually trigger the bug.

 ok 2 - Test ran , and failed, as intended
not ok 3 - Test dist was extractable

#   Failed test 'Test dist was extractable'
#   at t/test-kwalitee.t line 46.
#                   '1..13
# '
#     doesn't match '(?^m:ok.*extractable)'
not ok 4 - Test dist lacked symlinks

#   Failed test 'Test dist lacked symlinks'
#   at t/test-kwalitee.t line 47.
#                   '1..13
# '
#     doesn't match '(?^m:ok.*no_symlinks)'
not ok 5 - Test dist has proper libs

#   Failed test 'Test dist has proper libs'
#   at t/test-kwalitee.t line 48.
#                   '1..13
# '
#     doesn't match '(?^m:ok.*proper_libs)'
not ok 6 - Test dist has no pod errors

#   Failed test 'Test dist has no pod errors'
#   at t/test-kwalitee.t line 49.
#                   '1..13
# '
#     doesn't match '(?^m:ok.*no_pod_errors)'
# {
#   'flags' => {
#     '!' => '',
#     '?' => 512,
#     '@' => undef
#   },
#   'result' => 512,
#   'stderr' => '/bin/pwd: couldn\'t find directory entry in ‘..’ with matching i-node
# You tried to plan twice at /home/kent/.cpanm/work/1368908922.529488/Dist-Zilla-Plugin-Test-Kwalitee-2.03/tmp/J7gt2ArMzb/build/xt/release/kwalitee.t line 9.
# # Looks like your test exited with 2 before it could output anything.
# ',
#   'stdout' => '1..13
# '
# }
1..6
# Looks like you failed 4 tests of 6.
Dubious, test returned 4 (wstat 1024, 0x400)
Failed 4/6 subtests 

Test Summary Report
-------------------
t/test-kwalitee.t (Wstat: 1024 Tests: 6 Failed: 4)
  Failed tests:  3-6
  Non-zero exit status: 4
@karenetheridge
Copy link

This looks like a Module::CPANTS::Analyse problem -- it should be using a globally unique temp dir to do its work in, so parallel processes don't stomp on each other.

@karenetheridge
Copy link

Already reported in https://rt.cpan.org/Ticket/Display.html?id=85421

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants