Skip Menu |

This queue is for tickets about the Thread-Pipeline CPAN distribution.

Report information
The Basics
Id: 82280
Status: resolved
Priority: 0/
Queue: Thread-Pipeline

People
Owner: Nobody in particular
Requestors: gabor [...] szabgab.com
Cc:
AdminCc:

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



Subject: Thread-Pipeline-0.002 test stuck on Windows
Date: Thu, 27 Dec 2012 12:24:38 +0200
To: bug-Thread-Pipeline [...] rt.cpan.org
From: Gabor Szabo <gabor [...] szabgab.com>
On Strawberry 5.12.3 (32 bit) it is stuck, (on 5.16.2, see below, it "just" fails). C:\Documents and Settings\Gabor Szabo>cpan Thread::Pipeline CPAN: CPAN::SQLite loaded ok (v0.202) Database was generated on Thu, 27 Dec 2012 05:12:48 GMT Running install for module 'Thread::Pipeline' CPAN: YAML loaded ok (v0.84) CPAN: CPAN::Kwalify loaded ok (v5.50) CPAN: Kwalify loaded ok (v1.21) Running make for L/LI/LIOSHA/Thread-Pipeline-0.002.tar.gz CPAN: Digest::SHA loaded ok (v5.80) CPAN: Compress::Zlib loaded ok (v2.059) Checksum for C:\strawberry\cpan\sources\authors\id\L\LI\LIOSHA\Thread-Pipeline-0.002.tar.gz ok CPAN: Archive::Tar loaded ok (v1.90) CPAN: File::Temp loaded ok (v0.22) CPAN: Parse::CPAN::Meta loaded ok (v1.4404) CPAN: CPAN::Meta loaded ok (v2.120921) CPAN: Module::CoreList loaded ok (v2.79) CPAN.pm: Building L/LI/LIOSHA/Thread-Pipeline-0.002.tar.gz CPAN: CPAN::Reporter loaded ok (v1.2009) Checking if your kit is complete... Looks good Writing Makefile for Thread::Pipeline Writing MYMETA.yml and MYMETA.json (C:\strawberry\perl\bin\perl.exe Makefile.PL exited with 0) CPAN::Reporter: Makefile.PL result is 'pass', No errors. cp lib/Thread/Pipeline.pm blib\lib\Thread\Pipeline.pm (C:\strawberry\c\bin\dmake.EXE exited with 0) CPAN::Reporter: dmake result is 'pass', No errors. LIOSHA/Thread-Pipeline-0.002.tar.gz C:\strawberry\c\bin\dmake.EXE -- OK Running make test C:\strawberry\perl\bin\perl.exe "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib\lib', 'blib\arch')" t/*.t Thread 1 terminated abnormally: Can't use string ("1") as an ARRAY ref while "strict refs" in use at t/need_finalize.t line 13. ------------------------------ Strawberry 5.16.2: (report also sent to CPANTesters) CPAN.pm: Building L/LI/LIOSHA/Thread-Pipeline-0.002.tar.gz Checking if your kit is complete... Looks good Writing Makefile for Thread::Pipeline Writing MYMETA.yml and MYMETA.json (C:\strawberry_5_16_2_1\perl\bin\perl.exe Makefile.PL exited with 0) CPAN::Reporter: Makefile.PL result is 'pass', No errors. cp lib/Thread/Pipeline.pm blib\lib\Thread\Pipeline.pm (C:\strawberry_5_16_2_1\c\bin\dmake.exe exited with 0) CPAN::Reporter: dmake result is 'pass', No errors. LIOSHA/Thread-Pipeline-0.002.tar.gz C:\strawberry_5_16_2_1\c\bin\dmake.exe -- OK Running make test C:\strawberry_5_16_2_1\perl\bin\perl.exe "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib\lib', 'blib\arch')" t/*.t t/need_finalize.t ......... ok # Failed test 'threads count' # at t/num_threads.t line 31. # got: '1' # expected: '2' # Looks like you failed 1 test of 2. t/num_threads.t ........... Dubious, test returned 1 (wstat 256, 0x100) Failed 1/2 subtests t/release-pod-coverage.t .. skipped: these tests are for release candidate testing Test Summary Report ------------------- t/num_threads.t (Wstat: 256 Tests: 2 Failed: 1) Failed test: 2 Non-zero exit status: 1 Files=3, Tests=4, 1 wallclock secs ( 0.03 usr + 0.11 sys = 0.14 CPU) Result: FAIL Failed 1/3 test programs. 1/4 subtests failed. dmake.exe: Error code 255, while making 'test_dynamic' (C:\strawberry_5_16_2_1\c\bin\dmake.exe test exited with 65280) CPAN::Reporter: Test result is 'fail', One or more tests failed. CPAN::Reporter: preparing a CPAN Testers report for Thread-Pipeline-0.002 Do you want to review or edit the test report? (yes/no) [no] Do you want to send the report? (yes/no) [yes] CPAN::Reporter: sending test report with 'fail' via Metabase LIOSHA/Thread-Pipeline-0.002.tar.gz C:\strawberry_5_16_2_1\c\bin\dmake.exe test -- NOT OK //hint// to see the cpan-testers results for installing this module, try: reports LIOSHA/Thread-Pipeline-0.002.tar.gz Stopping: 'test' failed for 'Thread::Pipeline'. Failed during this command: LIOSHA/Thread-Pipeline-0.002.tar.gz : make_test NO
Thanks. On 5.16.2 it looks like just a race contition in test, adding sleep should be enough. On 5.12.3 seems Thread::Queue::Any doesn't work as expected. Which module version do you have there? Anyway dying threads is a bad situation, i'll fix it. Чтв Дек 27 05:24:51 2012, gabor@szabgab.com писал: Show quoted text
> On Strawberry 5.12.3 (32 bit) it is stuck, (on 5.16.2, see below, it > "just" fails). > > C:\Documents and Settings\Gabor Szabo>cpan Thread::Pipeline > CPAN: CPAN::SQLite loaded ok (v0.202) > Database was generated on Thu, 27 Dec 2012 05:12:48 GMT > Running install for module 'Thread::Pipeline' > CPAN: YAML loaded ok (v0.84) > CPAN: CPAN::Kwalify loaded ok (v5.50) > CPAN: Kwalify loaded ok (v1.21) > Running make for L/LI/LIOSHA/Thread-Pipeline-0.002.tar.gz > CPAN: Digest::SHA loaded ok (v5.80) > CPAN: Compress::Zlib loaded ok (v2.059) > Checksum for C:\strawberry\cpan\sources\authors\id\L\LI\LIOSHA\Thread- > Pipeline-0.002.tar.gz > ok > CPAN: Archive::Tar loaded ok (v1.90) > CPAN: File::Temp loaded ok (v0.22) > CPAN: Parse::CPAN::Meta loaded ok (v1.4404) > CPAN: CPAN::Meta loaded ok (v2.120921) > CPAN: Module::CoreList loaded ok (v2.79) > > CPAN.pm: Building L/LI/LIOSHA/Thread-Pipeline-0.002.tar.gz > > CPAN: CPAN::Reporter loaded ok (v1.2009) > Checking if your kit is complete... > Looks good > Writing Makefile for Thread::Pipeline > Writing MYMETA.yml and MYMETA.json > (C:\strawberry\perl\bin\perl.exe Makefile.PL exited with 0) > CPAN::Reporter: Makefile.PL result is 'pass', No errors. > cp lib/Thread/Pipeline.pm blib\lib\Thread\Pipeline.pm > (C:\strawberry\c\bin\dmake.EXE exited with 0) > CPAN::Reporter: dmake result is 'pass', No errors. > LIOSHA/Thread-Pipeline-0.002.tar.gz > C:\strawberry\c\bin\dmake.EXE -- OK > Running make test > C:\strawberry\perl\bin\perl.exe "-MExtUtils::Command::MM" "-e" > "test_harness(0, 'blib\lib', 'blib\arch')" t/*.t > Thread 1 terminated abnormally: Can't use string ("1") as an ARRAY ref > while "strict refs" in use at t/need_finalize.t line 13. > > > > > ------------------------------ > Strawberry 5.16.2: (report also sent to CPANTesters) > > CPAN.pm: Building L/LI/LIOSHA/Thread-Pipeline-0.002.tar.gz > > Checking if your kit is complete... > Looks good > Writing Makefile for Thread::Pipeline > Writing MYMETA.yml and MYMETA.json > (C:\strawberry_5_16_2_1\perl\bin\perl.exe Makefile.PL exited with 0) > CPAN::Reporter: Makefile.PL result is 'pass', No errors. > cp lib/Thread/Pipeline.pm blib\lib\Thread\Pipeline.pm > (C:\strawberry_5_16_2_1\c\bin\dmake.exe exited with 0) > CPAN::Reporter: dmake result is 'pass', No errors. > LIOSHA/Thread-Pipeline-0.002.tar.gz > C:\strawberry_5_16_2_1\c\bin\dmake.exe -- OK > Running make test > C:\strawberry_5_16_2_1\perl\bin\perl.exe "-MExtUtils::Command::MM" > "-e" "test_harness(0, 'blib\lib', 'blib\arch')" t/*.t > t/need_finalize.t ......... ok > > # Failed test 'threads count' > # at t/num_threads.t line 31. > # got: '1' > # expected: '2' > # Looks like you failed 1 test of 2. > t/num_threads.t ........... > Dubious, test returned 1 (wstat 256, 0x100) > Failed 1/2 subtests > t/release-pod-coverage.t .. skipped: these tests are for release > candidate testing > > Test Summary Report > ------------------- > t/num_threads.t (Wstat: 256 Tests: 2 Failed: 1) > Failed test: 2 > Non-zero exit status: 1 > Files=3, Tests=4, 1 wallclock secs ( 0.03 usr + 0.11 sys = 0.14 > CPU) > Result: FAIL > Failed 1/3 test programs. 1/4 subtests failed. > dmake.exe: Error code 255, while making 'test_dynamic' > (C:\strawberry_5_16_2_1\c\bin\dmake.exe test exited with 65280) > CPAN::Reporter: Test result is 'fail', One or more tests failed. > CPAN::Reporter: preparing a CPAN Testers report for Thread-Pipeline- > 0.002 > Do you want to review or edit the test report? (yes/no) [no] > Do you want to send the report? (yes/no) [yes] > CPAN::Reporter: sending test report with 'fail' via Metabase > LIOSHA/Thread-Pipeline-0.002.tar.gz > C:\strawberry_5_16_2_1\c\bin\dmake.exe test -- NOT OK > //hint// to see the cpan-testers results for installing this module, > try: > reports LIOSHA/Thread-Pipeline-0.002.tar.gz > Stopping: 'test' failed for 'Thread::Pipeline'. > Failed during this command: > LIOSHA/Thread-Pipeline-0.002.tar.gz : make_test NO
fixed in 0.003
Subject: Re: [rt.cpan.org #82280] Thread-Pipeline-0.002 test stuck on Windows
Date: Thu, 27 Dec 2012 21:42:38 +0200
To: bug-Thread-Pipeline [...] rt.cpan.org
From: Gabor Szabo <gabor [...] szabgab.com>
Thanks for your quick fix!. I tried 0.003 on Windows: 5.12.3: tests passed but I saw this: CPAN::Reporter: dmake result is 'pass', No errors. LIOSHA/Thread-Pipeline-0.003.tar.gz C:\strawberry\c\bin\dmake.EXE -- OK Running make test C:\strawberry\perl\bin\perl.exe "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib\lib', 'blib\arch')" t/*.t t/data_types.t ............ ok Worker 'die_on_3' died in thread tid=1: Died at t/dying_worker.t line 16. at C:\strawberry\cpan\build\Thread-Pipeline-0.003-OCQdWh\blib\lib/Thread/Pipeline.pm line 71 thread 1. Thread::Pipeline::__ANON__() called at C:\strawberry\cpan\build\Thread-Pipeline-0.003-OCQdWh\blib\lib/Thread/Pipeline.pm line 101 th read 1 eval {...} called at C:\strawberry\cpan\build\Thread-Pipeline-0.003-OCQdWh\blib\lib/Thread/Pipeline.pm line 101 thread 1 t/dying_worker.t .......... ok t/multi_return.t .......... ok t/need_finalize.t ......... ok t/num_threads.t ........... ok t/release-pod-coverage.t .. skipped: these tests are for release candidate testing All tests successful. Files=6, Tests=10, 3 wallclock secs ( 0.02 usr + 0.09 sys = 0.11 CPU) Result: PASS Thread::Queue::Any 0.09 ------------------------ On 5.16.2 it also PASS-es with this output: (C:\strawberry_5_16_2_1\c\bin\dmake.exe exited with 0) CPAN::Reporter: dmake result is 'pass', No errors. LIOSHA/Thread-Pipeline-0.003.tar.gz C:\strawberry_5_16_2_1\c\bin\dmake.exe -- OK Running make test C:\strawberry_5_16_2_1\perl\bin\perl.exe "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib\lib', 'blib\arch')" t/*.t t/data_types.t ............ ok Worker 'die_on_3' died in thread tid=1: Died at t/dying_worker.t line 16. at C:\strawberry_5_16_2_1\cpan\build\Thread-Pipeline-0.003-OBOCIU\blib\lib/Thread/Pipeline.pm line 71 thread 1. Thread::Pipeline::__ANON__() called at C:\strawberry_5_16_2_1\cpan\build\Thread-Pipeline-0.003-OBOCIU\blib\lib/Thread/Pipeline.pm li ne 101 thread 1 eval {...} called at C:\strawberry_5_16_2_1\cpan\build\Thread-Pipeline-0.003-OBOCIU\blib\lib/Thread/Pipeline.pm line 101 thread 1 t/dying_worker.t .......... ok t/multi_return.t .......... ok t/need_finalize.t ......... ok t/num_threads.t ........... ok t/release-pod-coverage.t .. skipped: these tests are for release candidate testing All tests successful. Files=6, Tests=10, 4 wallclock secs ( 0.04 usr + 0.07 sys = 0.11 CPU) Result: PASS Thread::Queue::Any is at 1.13
That's all ok, it's not a bug. This warning is expected to be emitted :) I'll suppress its output in next version, but will not release it asap. Чтв Дек 27 14:42:48 2012, gabor@szabgab.com писал: Show quoted text
> Thanks for your quick fix!. I tried 0.003 on Windows: > > 5.12.3: tests passed but I saw this: > > CPAN::Reporter: dmake result is 'pass', No errors. > LIOSHA/Thread-Pipeline-0.003.tar.gz > C:\strawberry\c\bin\dmake.EXE -- OK > Running make test > C:\strawberry\perl\bin\perl.exe "-MExtUtils::Command::MM" "-e" > "test_harness(0, 'blib\lib', 'blib\arch')" t/*.t > t/data_types.t ............ ok > Worker 'die_on_3' died in thread tid=1: Died at t/dying_worker.t line > 16. > at C:\strawberry\cpan\build\Thread-Pipeline-0.003- > OCQdWh\blib\lib/Thread/Pipeline.pm > line 71 thread 1. > Thread::Pipeline::__ANON__() called at > C:\strawberry\cpan\build\Thread-Pipeline-0.003- > OCQdWh\blib\lib/Thread/Pipeline.pm > line 101 th > read 1 > eval {...} called at > C:\strawberry\cpan\build\Thread-Pipeline-0.003- > OCQdWh\blib\lib/Thread/Pipeline.pm > line 101 thread 1 > t/dying_worker.t .......... ok