Skip Menu |

This queue is for tickets about the Cstools CPAN distribution.

Report information
The Basics
Id: 117730
Status: open
Priority: 0/
Queue: Cstools

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

Bug Information
Severity: (no value)
Broken in: 3.42
Fixed in:
  • 3.42
  • 3.43



Subject: Random test failures
See subject. Overview of test reports: http://matrix.cpantesters.org/?dist=Cstools%203.42
On 2016-09-10 05:07:05, SREZIC wrote: Show quoted text
> See subject. Overview of test reports: > http://matrix.cpantesters.org/?dist=Cstools%203.42
The situation does not look better with 3.43: http://matrix.cpantesters.org/?dist=Cstools%203.43
On Tue, 9 Apr 2019 19:25:51 GMT, SREZIC wrote: Show quoted text
> > The situation does not look better with 3.43: > http://matrix.cpantesters.org/?dist=Cstools%203.43
Well, some things have improved. But there is still a lot of t/cssort.t ..... ok t/cstocs.t ..... Failed 1/31 subtests situations where I currently have no idea why the t/cstocs.t fails, without any error message or other indication of the cause of the problem. Sadly, on my Fedora, things pass ...
On 2019-04-09 15:39:37, JANPAZ wrote: Show quoted text
> On Tue, 9 Apr 2019 19:25:51 GMT, SREZIC wrote:
> > > > The situation does not look better with 3.43: > > http://matrix.cpantesters.org/?dist=Cstools%203.43
> > Well, some things have improved. > > But there is still a lot of > > t/cssort.t ..... ok > t/cstocs.t ..... > Failed 1/31 subtests > > situations where I currently have no idea why the t/cstocs.t fails, > without any error message or other indication of the cause of the > problem. Sadly, on my Fedora, things pass ...
It seems that the optional module MIME::Words has to be installed to reproduce the failures. Regards, Slaven
On Tue, 9 Apr 2019 20:21:23 GMT, SREZIC wrote: Show quoted text
> > It seems that the optional module MIME::Words has to be installed to > reproduce the failures.
I've fixed this in Cstools 3.44. The other big group of issues (on Windows, on FreeBSD, even on Linux) is the failure Can't open t/out.tst: No such file or directory at blib/script/cstocs line 152. The code before that test 27 is open OUT, "> $TSTFILE"; print OUT $il2_to_utf8->conv('malièký je¾eèek'), "\n"; close OUT; print "Running: $^X @libs blib/script/cstocs -i.bak utf8 ascii $TSTFILE\n"; system "$^X @libs blib/script/cstocs -i.bak utf8 ascii $TSTFILE"; so it's not clear to me why that $TSTFILE cannot be found when we just finished writing to it and closed it the line before.
RT-Send-CC: NHORNE [...] cpan.org
On 2019-05-22 05:15:11, JANPAZ wrote: Show quoted text
> On Tue, 9 Apr 2019 20:21:23 GMT, SREZIC wrote:
> > > > It seems that the optional module MIME::Words has to be installed to > > reproduce the failures.
> > I've fixed this in Cstools 3.44. > > The other big group of issues (on Windows, on FreeBSD, even on Linux) > is the failure > > Can't open t/out.tst: No such file or directory at blib/script/cstocs > line 152. > > The code before that test 27 is > > open OUT, "> $TSTFILE"; > print OUT $il2_to_utf8->conv('malièký je¾eèek'), "\n"; > close OUT; > > print "Running: $^X @libs blib/script/cstocs -i.bak utf8 ascii > $TSTFILE\n"; > system "$^X @libs blib/script/cstocs -i.bak utf8 ascii $TSTFILE"; > > so it's not clear to me why that $TSTFILE cannot be found when we just > finished writing to it and closed it the line before.
http://matrix.cpantesters.org/?dist=Cstools%203.44;reports=1 -> all failures on linux & freebsd happen on Nigel Horne's systems. Put him on Cc, maybe he has an idea...
Subject: Random test failures of Cstools on your systems
RT-Send-CC: NHORNE [...] cpan.org
On Wed, 22 May 2019 19:35:48 GMT, SREZIC wrote: Show quoted text
> > http://matrix.cpantesters.org/?dist=Cstools%203.44;reports=1 -> all > failures on linux & freebsd happen on Nigel Horne's systems. Put him > on Cc, maybe he has an idea...
Hello Nigel, could you perhaps look more closely at the test results on your systems and check why things are failing there? Thank you, Jan
Subject: Re: [rt.cpan.org #117730] Random test failures
Date: Thu, 23 May 2019 16:59:42 +0000
To: "bug-Cstools [...] rt.cpan.org" <bug-Cstools [...] rt.cpan.org>
From: Nigel Horne <nigel_horne [...] hotmail.com>
I'm confused. I looked at https://metacpan.org/source/JANPAZ/Cstools-3.44/bin/cstocs.PL - line 152 has "exec" not a check for out.tst. -Nigel On 5/22/19, 3:36 PM, "Slaven_Rezic via RT" <bug-Cstools@rt.cpan.org> wrote: <URL: https://rt.cpan.org/Ticket/Display.html?id=117730 > On 2019-05-22 05:15:11, JANPAZ wrote: Show quoted text
> On Tue, 9 Apr 2019 20:21:23 GMT, SREZIC wrote:
> > > > It seems that the optional module MIME::Words has to be installed to > > reproduce the failures.
> > I've fixed this in Cstools 3.44. > > The other big group of issues (on Windows, on FreeBSD, even on Linux) > is the failure > > Can't open t/out.tst: No such file or directory at blib/script/cstocs > line 152. > > The code before that test 27 is > > open OUT, "> $TSTFILE"; > print OUT $il2_to_utf8->conv('malièký je¾eèek'), "\n"; > close OUT; > > print "Running: $^X @libs blib/script/cstocs -i.bak utf8 ascii > $TSTFILE\n"; > system "$^X @libs blib/script/cstocs -i.bak utf8 ascii $TSTFILE"; > > so it's not clear to me why that $TSTFILE cannot be found when we just > finished writing to it and closed it the line before.
http://matrix.cpantesters.org/?dist=Cstools%203.44;reports=1 -> all failures on linux & freebsd happen on Nigel Horne's systems. Put him on Cc, maybe he has an idea...
RT-Send-CC: NHORNE [...] cpan.org
On Thu, 23 May 2019 17:00:02 GMT, nigel_horne@hotmail.com wrote: Show quoted text
> I'm confused. I looked at https://metacpan.org/source/JANPAZ/Cstools- > 3.44/bin/cstocs.PL - line 152 has "exec" not a check for out.tst.
The bin/cstocs.PL turns into blib/script/cstocs and line 152 of blib/script/cstocs is actually line 167 in bin/cstocs.PL: while (<>) { ... In that line 152 of bin/cstocs.PL we reexec the same perl interpreter with -i option to run the in-place replacement. And then in line 167 of bin/cstocs.PL the <> mechanism tries to read from @ARGV, and the test gives it t/out.tst to run. If you could turn that system "$^X @libs blib/script/cstocs -i.bak utf8 ascii $TSTFILE"; line in t/cstocs.t to say system "ls -l $TSTFILE"; or system "$^X -ne 'print' $TSTFILE"; and rerun make test -- that would allow us to determine where things call apart. Thanks, Jan Show quoted text
> > -Nigel > > On 5/22/19, 3:36 PM, "Slaven_Rezic via RT" <bug-Cstools@rt.cpan.org> > wrote: > > <URL: https://rt.cpan.org/Ticket/Display.html?id=117730 > > > On 2019-05-22 05:15:11, JANPAZ wrote:
> > On Tue, 9 Apr 2019 20:21:23 GMT, SREZIC wrote:
> > > > > > It seems that the optional module MIME::Words has to be installed > > > to > > > reproduce the failures.
> > > > I've fixed this in Cstools 3.44. > > > > The other big group of issues (on Windows, on FreeBSD, even on Linux) > > is the failure > > > > Can't open t/out.tst: No such file or directory at blib/script/cstocs > > line 152. > > > > The code before that test 27 is > > > > open OUT, "> $TSTFILE"; > > print OUT $il2_to_utf8->conv('malièký je¾eèek'), "\n"; > > close OUT; > > > > print "Running: $^X @libs blib/script/cstocs -i.bak utf8 ascii > > $TSTFILE\n"; > > system "$^X @libs blib/script/cstocs -i.bak utf8 ascii $TSTFILE"; > > > > so it's not clear to me why that $TSTFILE cannot be found when we > > just > > finished writing to it and closed it the line before.
> > http://matrix.cpantesters.org/?dist=Cstools%203.44;reports=1 -> all > failures on linux & freebsd happen on Nigel Horne's systems. Put him > on Cc, maybe he has an idea... > > >
Subject: Re: [rt.cpan.org #117730] Random test failures
Date: Thu, 23 May 2019 20:32:30 +0000
To: "bug-Cstools [...] rt.cpan.org" <bug-Cstools [...] rt.cpan.org>
From: Nigel Horne <nigel_horne [...] hotmail.com>
The test doesn't support parallel testing, thus: PARALLEL TESTING: njh@microcenter:/tmp/user/1000/build/Cstools-3.44-0$ echo $HARNESS_OPTIONS j10:c njh@microcenter:/tmp/user/1000/build/Cstools-3.44-0$ echo $TEST_JOBS 10 njh@microcenter:/tmp/user/1000/build/Cstools-3.44-0$ make test PERL_DL_NONLAZY=1 "/home/njh/perl5/perlbrew/perls/perl-5.28.1/bin/perl5.28.1" "-MExtUtils::Command::MM" "-MTest::Harness" "-e" "undef *Test::Harness::Switches; test_harness(0, 'blib/lib', 'blib/arch')" t/*.t t/dbfcstocs.t .. skipped: (no reason given) t/cssort.t ..... Failed 3/13 subtests t/cstocs.t ..... Failed 2/31 subtests (less 4 skipped subtests: 25 okay) Test Summary Report ------------------- t/cssort.t (Wstat: 0 Tests: 11 Failed: 1) Failed test: 8 Parse errors: Bad plan. You planned 13 tests but ran 11. t/cstocs.t (Wstat: 0 Tests: 31 Failed: 2) Failed tests: 5-6 Files=3, Tests=42, 0 wallclock secs ( 0.02 usr 0.00 sys + 0.10 cusr 0.01 csys = 0.13 CPU) Result: FAIL Failed 2/3 test programs. 3/42 subtests failed. make: *** [Makefile:921: test_dynamic] Error 255 SERIAL TESTING: njh@microcenter:/tmp/user/1000/build/Cstools-3.44-0$ TEST_JOBS= HARNESS_OPTIONS= make test PERL_DL_NONLAZY=1 "/home/njh/perl5/perlbrew/perls/perl-5.28.1/bin/perl5.28.1" "-MExtUtils::Command::MM" "-MTest::Harness" "-e" "undef *Test::Harness::Switches; test_harness(0, 'blib/lib', 'blib/arch')" t/*.t t/cssort.t ..... ok t/cstocs.t ..... ok t/dbfcstocs.t .. skipped: (no reason given) All tests successful. Files=3, Tests=44, 0 wallclock secs ( 0.01 usr 0.01 sys + 0.10 cusr 0.02 csys = 0.14 CPU) Result: PASS