Skip Menu |

This queue is for tickets about the Prty CPAN distribution.

Report information
The Basics
Id: 122354
Status: resolved
Priority: 0/
Queue: Prty

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

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



Subject: Timezone, locale and OS related problems
The test suite fails on all of my smokers. I see the following problems: # Failed test at t/bin/Prty/Epoch.t line 47. # got: '2016-05-27 09:50:21' # expected: '2016-05-27 11:50:21' # Looks like you failed 1 test of 6. t/bin/Prty/Epoch.t .............................. Dubious, test returned 1 (wstat 256, 0x100) Failed 1/6 subtests # Failed test at t/bin/Prty/Converter.t line 83. # got: '2014-11-18 13:05:06,690' # expected: '2014-11-18 14:05:06,690' This looks like CET or CEST is expected, but most of my smokers have the timezone set to UTC. # Failed test at t/bin/Prty/Http/Cookie.t line 36. # got: 'sid=4711; expires=Do, 01-Jan-1970 00:00:01 GMT' # expected: 'sid=4711; expires=Thu, 01-Jan-1970 00:00:01 GMT' # Looks like you failed 1 test of 4. This looks like the test suite expects an English locale, but here a German locale is active. Can't exec "/bin/true": No such file or directory at t/bin/Prty/Shell.t line 47. # Failed test 'checkError: Kommando erfolgreich ausgef�hrt' # at t/bin/Prty/Shell.t line 49. Can't exec "/bin/false": No such file or directory at t/bin/Prty/Shell.t line 51. # Failed test 'checkError: Kommando endete mit Fehler' # at t/bin/Prty/Shell.t line 53. On non-Linux systems (here: FreeBSD) true & false are often in /usr/bin, not in /bin. # Failed test at t/bin/Prty/Timeseries/Synchronizer.t line 225. # Structures begin differing at: # $got->[0][7] = '1.58113883008418967' # $expected->[0][7] = '1.58113883008419' This probably fails on systems where perl is compiled with -Duselongdouble.
Subject: Re: [rt.cpan.org #122354] Timezone, locale and OS related problems
Date: Fri, 7 Jul 2017 17:04:41 +0200
To: bug-Prty [...] rt.cpan.org
From: Frank Seitz <fs [...] fseitz.de>
Hallo Slaven, vielen Dank für den Test und die Tipps. Ich habe die Fehler gefixt (jedenfalls versucht). Ob erfolgreich, wird sich nach dem nächsten Upload zeigen. Grüße Frank On 07/04/2017 07:31 AM, Slaven_Rezic via RT wrote: Show quoted text
> Tue Jul 04 01:31:03 2017: Request 122354 was acted upon. > Transaction: Ticket created by SREZIC > Queue: Prty > Subject: Timezone, locale and OS related problems > Broken in: 1.113 > Severity: (no value) > Owner: Nobody > Requestors: SREZIC@cpan.org > Status: new > Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=122354 > > > > The test suite fails on all of my smokers. I see the following problems: > > # Failed test at t/bin/Prty/Epoch.t line 47. > # got: '2016-05-27 09:50:21' > # expected: '2016-05-27 11:50:21' > # Looks like you failed 1 test of 6. > t/bin/Prty/Epoch.t .............................. > Dubious, test returned 1 (wstat 256, 0x100) > Failed 1/6 subtests > > # Failed test at t/bin/Prty/Converter.t line 83. > # got: '2014-11-18 13:05:06,690' > # expected: '2014-11-18 14:05:06,690' > > This looks like CET or CEST is expected, but most of my smokers have the timezone set to UTC. > > # Failed test at t/bin/Prty/Http/Cookie.t line 36. > # got: 'sid=4711; expires=Do, 01-Jan-1970 00:00:01 GMT' > # expected: 'sid=4711; expires=Thu, 01-Jan-1970 00:00:01 GMT' > # Looks like you failed 1 test of 4. > > This looks like the test suite expects an English locale, but here a German locale is active. > > Can't exec "/bin/true": No such file or directory at t/bin/Prty/Shell.t line 47. > > # Failed test 'checkError: Kommando erfolgreich ausgef�hrt' > # at t/bin/Prty/Shell.t line 49. > Can't exec "/bin/false": No such file or directory at t/bin/Prty/Shell.t line 51. > > # Failed test 'checkError: Kommando endete mit Fehler' > # at t/bin/Prty/Shell.t line 53. > > On non-Linux systems (here: FreeBSD) true & false are often in /usr/bin, not in /bin. > > # Failed test at t/bin/Prty/Timeseries/Synchronizer.t line 225. > # Structures begin differing at: > # $got->[0][7] = '1.58113883008418967' > # $expected->[0][7] = '1.58113883008419' > > This probably fails on systems where perl is compiled with -Duselongdouble.
-- Dipl.-Inform. Frank Seitz IT Consultant / {Web, Database, Linux} Developer Tel: +49-176-78243503, Hauptstr. 32-34, D-25462 Rellingen Blog: http://fseitz.de/blog
RT-Send-CC: fs [...] fseitz.de
Ich sehe in 1.114 noch einen Aufruf von /bin/false, der unter FreeBSD fehlschlägt: ... # Failed test 'Kommando schlägt fehl' # at t/bin/Prty/Ipc.t line 26. # 'open3: exec of /bin/false failed at /home/cpansand/.cpan/build/2017070715/Prty-1.114-1/blib/lib/Prty/Ipc.pm line 71. # ' # doesn't match '(?^:ExitCode:\s+1\s+)' # Looks like you failed 1 test of 4. t/bin/Prty/Ipc.t ................................ Dubious, test returned 1 (wstat 256, 0x100) Failed 1/4 subtests ... Weiterhin gibt es kein /proc/cpuinfo bei FreeBSD: ... # Failed test 'Exception: # FH-00001: Kann Datei nicht öffnen # Path: # /proc/cpuinfo # Errstr: # Datei oder Verzeichnis nicht gefunden # Stacktrace: # Prty::Test::Class::runTests() [+32 t/bin/Prty/Parallel.t] # (eval) [+568 /home/cpansand/.cpan/build/2017070715/Prty-1.114-1/blib/lib/Prty/Test/Class.pm] # Prty::Parallel::Test::test_runArray() [+568 /home/cpansand/.cpan/build/2017070715/Prty-1.114-1/blib/lib/Prty/Test/Class.pm] # Prty::Parallel::runArray() [+25 t/bin/Prty/Parallel.t] # Prty::Parallel::runFetch() [+116 /home/cpansand/.cpan/build/2017070715/Prty-1.114-1/blib/lib/Prty/Parallel.pm] # Prty::System::numberOfCpus() [+203 /home/cpansand/.cpan/build/2017070715/Prty-1.114-1/blib/lib/Prty/Parallel.pm] # Prty::FileHandle::new() [+49 /home/cpansand/.cpan/build/2017070715/Prty-1.114-1/blib/lib/Prty/System.pm] # Prty::Object::throw() [+152 /home/cpansand/.cpan/build/2017070715/Prty-1.114-1/blib/lib/Prty/FileHandle.pm] # Prty::Stacktrace::asString() [+252 /home/cpansand/.cpan/build/2017070715/Prty-1.114-1/blib/lib/Prty/Object.pm] # ' # at t/bin/Prty/Parallel.t line 32. # Looks like you failed 1 test of 2. t/bin/Prty/Parallel.t ........................... Dubious, test returned 1 (wstat 256, 0x100) Failed 1/2 subtests ... Eine mögliche Alternative hier: die Verwendung von sysctl: $ sysctl -n hw.ncpu 4 Außerdem sehe ich noch zeitzonen-abhängige Fehler. Hier ein System mit TZ=UTC: ... # Failed test at t/bin/Prty/Converter.t line 65. # got: '1416319506.690' # expected: '1416315906.690' # Failed test at t/bin/Prty/Converter.t line 69. # got: '1416319506' # expected: '1416315906' # Failed test at t/bin/Prty/Converter.t line 73. # got: '1416268800' # expected: '1416265200' # Looks like you failed 3 tests of 16. t/bin/Prty/Converter.t .......................... Dubious, test returned 3 (wstat 768, 0x300) Failed 3/16 subtests ... Und auf Systemen ohne ffprobe: ... # Failed test 'Exception: # CMD-00002: Kommando endete mit Fehler # ExitCode: # 127 # Command: # ffprobe -loglevel error -print_format xml -show_streams -select_streams v:0 't/data/video/fluch-von-novgorod.mp4' # Cwd: # /home/cpansand/.cpan/build/2017070715/Prty-1.114-b23pwR # ErrorMessage: # sh: ffprobe: command not found # Stacktrace: # Prty::Test::Class::runTests() [+55 t/bin/Prty/File/Video.t] # (eval) [+568 /home/cpansand/.cpan/build/2017070715/Prty-1.114-b23pwR/blib/lib/Prty/Test/Class.pm] # Prty::File::Video::Test::test_unitTest() [+568 /home/cpansand/.cpan/build/2017070715/Prty-1.114-b23pwR/blib/lib/Prty/Test/Class.pm] # Prty::File::Video::width() [+26 t/bin/Prty/File/Video.t] # Prty::Hash::memoize() [+115 /home/cpansand/.cpan/build/2017070715/Prty-1.114-b23pwR/blib/lib/Prty/File/Video.pm] # Prty::File::Video::__ANON__() [+503 /home/cpansand/.cpan/build/2017070715/Prty-1.114-b23pwR/blib/lib/Prty/Hash.pm] # Prty::File::Video::analyzeFile() [+113 /home/cpansand/.cpan/build/2017070715/Prty-1.114-b23pwR/blib/lib/Prty/File/Video.pm] # Prty::Ipc::filter() [+311 /home/cpansand/.cpan/build/2017070715/Prty-1.114-b23pwR/blib/lib/Prty/File/Video.pm] # Prty::Shell::checkError() [+94 /home/cpansand/.cpan/build/2017070715/Prty-1.114-b23pwR/blib/lib/Prty/Ipc.pm] # Prty::Object::throw() [+518 /home/cpansand/.cpan/build/2017070715/Prty-1.114-b23pwR/blib/lib/Prty/Shell.pm] # Prty::Stacktrace::asString() [+252 /home/cpansand/.cpan/build/2017070715/Prty-1.114-b23pwR/blib/lib/Prty/Object.pm] # # ' # at t/bin/Prty/File/Video.t line 55. # Looks like you failed 1 test of 11. t/bin/Prty/File/Video.t ......................... Dubious, test returned 1 (wstat 256, 0x100) Failed 1/11 subtests (less 8 skipped subtests: 2 okay) ... Gruß, Slaven On 2017-07-07 11:08:33, fs@fseitz.de wrote: Show quoted text
> Hallo Slaven, > > vielen Dank für den Test und die Tipps. Ich habe die Fehler gefixt > (jedenfalls versucht). > Ob erfolgreich, wird sich nach dem nächsten Upload zeigen. > > Grüße > Frank > > On 07/04/2017 07:31 AM, Slaven_Rezic via RT wrote:
> > Tue Jul 04 01:31:03 2017: Request 122354 was acted upon. > > Transaction: Ticket created by SREZIC > > Queue: Prty > > Subject: Timezone, locale and OS related problems > > Broken in: 1.113 > > Severity: (no value) > > Owner: Nobody > > Requestors: SREZIC@cpan.org > > Status: new > > Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=122354 > > > > > > > The test suite fails on all of my smokers. I see the following > > problems: > > > > # Failed test at t/bin/Prty/Epoch.t line 47. > > # got: '2016-05-27 09:50:21' > > # expected: '2016-05-27 11:50:21' > > # Looks like you failed 1 test of 6. > > t/bin/Prty/Epoch.t .............................. > > Dubious, test returned 1 (wstat 256, 0x100) > > Failed 1/6 subtests > > > > # Failed test at t/bin/Prty/Converter.t line 83. > > # got: '2014-11-18 13:05:06,690' > > # expected: '2014-11-18 14:05:06,690' > > > > This looks like CET or CEST is expected, but most of my smokers have > > the timezone set to UTC. > > > > # Failed test at t/bin/Prty/Http/Cookie.t line 36. > > # got: 'sid=4711; expires=Do, 01-Jan-1970 00:00:01 GMT' > > # expected: 'sid=4711; expires=Thu, 01-Jan-1970 00:00:01 GMT' > > # Looks like you failed 1 test of 4. > > > > This looks like the test suite expects an English locale, but here a > > German locale is active. > > > > Can't exec "/bin/true": No such file or directory at > > t/bin/Prty/Shell.t line 47. > > > > # Failed test 'checkError: Kommando erfolgreich ausgef�hrt' > > # at t/bin/Prty/Shell.t line 49. > > Can't exec "/bin/false": No such file or directory at > > t/bin/Prty/Shell.t line 51. > > > > # Failed test 'checkError: Kommando endete mit Fehler' > > # at t/bin/Prty/Shell.t line 53. > > > > On non-Linux systems (here: FreeBSD) true & false are often in > > /usr/bin, not in /bin. > > > > # Failed test at t/bin/Prty/Timeseries/Synchronizer.t line 225. > > # Structures begin differing at: > > # $got->[0][7] = '1.58113883008418967' > > # $expected->[0][7] = '1.58113883008419' > > > > This probably fails on systems where perl is compiled with > > -Duselongdouble.
Most of the problems are fixed in 1.115, but there are still test failures. I'll resolve this ticket and create separate ones for the remaining issues. On 2017-07-07 15:53:43, SREZIC wrote: Show quoted text
> Ich sehe in 1.114 noch einen Aufruf von /bin/false, der unter FreeBSD > fehlschlägt: > > ... > # Failed test 'Kommando schlägt fehl' > # at t/bin/Prty/Ipc.t line 26. > # 'open3: exec of /bin/false failed at > /home/cpansand/.cpan/build/2017070715/Prty-1.114- > 1/blib/lib/Prty/Ipc.pm line 71. > # ' > # doesn't match '(?^:ExitCode:\s+1\s+)' > # Looks like you failed 1 test of 4. > t/bin/Prty/Ipc.t ................................ > Dubious, test returned 1 (wstat 256, 0x100) > Failed 1/4 subtests > ... > > Weiterhin gibt es kein /proc/cpuinfo bei FreeBSD: > > ... > # Failed test 'Exception: > # FH-00001: Kann Datei nicht öffnen > # Path: > # /proc/cpuinfo > # Errstr: > # Datei oder Verzeichnis nicht gefunden > # Stacktrace: > # Prty::Test::Class::runTests() [+32 t/bin/Prty/Parallel.t] > # (eval) [+568 /home/cpansand/.cpan/build/2017070715/Prty-1.114- > 1/blib/lib/Prty/Test/Class.pm] > # Prty::Parallel::Test::test_runArray() [+568 > /home/cpansand/.cpan/build/2017070715/Prty-1.114- > 1/blib/lib/Prty/Test/Class.pm] > # Prty::Parallel::runArray() [+25 t/bin/Prty/Parallel.t] > # Prty::Parallel::runFetch() [+116 > /home/cpansand/.cpan/build/2017070715/Prty-1.114- > 1/blib/lib/Prty/Parallel.pm] > # Prty::System::numberOfCpus() [+203 > /home/cpansand/.cpan/build/2017070715/Prty-1.114- > 1/blib/lib/Prty/Parallel.pm] > # Prty::FileHandle::new() [+49 > /home/cpansand/.cpan/build/2017070715/Prty-1.114- > 1/blib/lib/Prty/System.pm] > # Prty::Object::throw() [+152 > /home/cpansand/.cpan/build/2017070715/Prty-1.114- > 1/blib/lib/Prty/FileHandle.pm] > # Prty::Stacktrace::asString() [+252 > /home/cpansand/.cpan/build/2017070715/Prty-1.114- > 1/blib/lib/Prty/Object.pm] > # ' > # at t/bin/Prty/Parallel.t line 32. > # Looks like you failed 1 test of 2. > t/bin/Prty/Parallel.t ........................... > Dubious, test returned 1 (wstat 256, 0x100) > Failed 1/2 subtests > ... > > Eine mögliche Alternative hier: die Verwendung von sysctl: > > $ sysctl -n hw.ncpu > 4 > > Außerdem sehe ich noch zeitzonen-abhängige Fehler. Hier ein System mit > TZ=UTC: > > ... > # Failed test at t/bin/Prty/Converter.t line 65. > # got: '1416319506.690' > # expected: '1416315906.690' > > # Failed test at t/bin/Prty/Converter.t line 69. > # got: '1416319506' > # expected: '1416315906' > > # Failed test at t/bin/Prty/Converter.t line 73. > # got: '1416268800' > # expected: '1416265200' > # Looks like you failed 3 tests of 16. > t/bin/Prty/Converter.t .......................... > Dubious, test returned 3 (wstat 768, 0x300) > Failed 3/16 subtests > ... > > > Und auf Systemen ohne ffprobe: > > ... > # Failed test 'Exception: > # CMD-00002: Kommando endete mit Fehler > # ExitCode: > # 127 > # Command: > # ffprobe -loglevel error -print_format xml -show_streams > -select_streams v:0 't/data/video/fluch-von-novgorod.mp4' > # Cwd: > # /home/cpansand/.cpan/build/2017070715/Prty-1.114-b23pwR > # ErrorMessage: > # sh: ffprobe: command not found > # Stacktrace: > # Prty::Test::Class::runTests() [+55 t/bin/Prty/File/Video.t] > # (eval) [+568 /home/cpansand/.cpan/build/2017070715/Prty-1.114- > b23pwR/blib/lib/Prty/Test/Class.pm] > # Prty::File::Video::Test::test_unitTest() [+568 > /home/cpansand/.cpan/build/2017070715/Prty-1.114- > b23pwR/blib/lib/Prty/Test/Class.pm] > # Prty::File::Video::width() [+26 t/bin/Prty/File/Video.t] > # Prty::Hash::memoize() [+115 > /home/cpansand/.cpan/build/2017070715/Prty-1.114- > b23pwR/blib/lib/Prty/File/Video.pm] > # Prty::File::Video::__ANON__() [+503 > /home/cpansand/.cpan/build/2017070715/Prty-1.114- > b23pwR/blib/lib/Prty/Hash.pm] > # Prty::File::Video::analyzeFile() [+113 > /home/cpansand/.cpan/build/2017070715/Prty-1.114- > b23pwR/blib/lib/Prty/File/Video.pm] > # Prty::Ipc::filter() [+311 > /home/cpansand/.cpan/build/2017070715/Prty-1.114- > b23pwR/blib/lib/Prty/File/Video.pm] > # Prty::Shell::checkError() [+94 > /home/cpansand/.cpan/build/2017070715/Prty-1.114- > b23pwR/blib/lib/Prty/Ipc.pm] > # Prty::Object::throw() [+518 > /home/cpansand/.cpan/build/2017070715/Prty-1.114- > b23pwR/blib/lib/Prty/Shell.pm] > # Prty::Stacktrace::asString() [+252 > /home/cpansand/.cpan/build/2017070715/Prty-1.114- > b23pwR/blib/lib/Prty/Object.pm] > # > # ' > # at t/bin/Prty/File/Video.t line 55. > # Looks like you failed 1 test of 11. > t/bin/Prty/File/Video.t ......................... > Dubious, test returned 1 (wstat 256, 0x100) > Failed 1/11 subtests > (less 8 skipped subtests: 2 okay) > ... > > Gruß, > Slaven > > On 2017-07-07 11:08:33, fs@fseitz.de wrote:
> > Hallo Slaven, > > > > vielen Dank für den Test und die Tipps. Ich habe die Fehler gefixt > > (jedenfalls versucht). > > Ob erfolgreich, wird sich nach dem nächsten Upload zeigen. > > > > Grüße > > Frank > > > > On 07/04/2017 07:31 AM, Slaven_Rezic via RT wrote:
> > > Tue Jul 04 01:31:03 2017: Request 122354 was acted upon. > > > Transaction: Ticket created by SREZIC > > > Queue: Prty > > > Subject: Timezone, locale and OS related problems > > > Broken in: 1.113 > > > Severity: (no value) > > > Owner: Nobody > > > Requestors: SREZIC@cpan.org > > > Status: new > > > Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=122354 > > > > > > > > > > The test suite fails on all of my smokers. I see the following > > > problems: > > > > > > # Failed test at t/bin/Prty/Epoch.t line 47. > > > # got: '2016-05-27 09:50:21' > > > # expected: '2016-05-27 11:50:21' > > > # Looks like you failed 1 test of 6. > > > t/bin/Prty/Epoch.t .............................. > > > Dubious, test returned 1 (wstat 256, 0x100) > > > Failed 1/6 subtests > > > > > > # Failed test at t/bin/Prty/Converter.t line 83. > > > # got: '2014-11-18 13:05:06,690' > > > # expected: '2014-11-18 14:05:06,690' > > > > > > This looks like CET or CEST is expected, but most of my smokers > > > have > > > the timezone set to UTC. > > > > > > # Failed test at t/bin/Prty/Http/Cookie.t line 36. > > > # got: 'sid=4711; expires=Do, 01-Jan-1970 00:00:01 GMT' > > > # expected: 'sid=4711; expires=Thu, 01-Jan-1970 00:00:01 GMT' > > > # Looks like you failed 1 test of 4. > > > > > > This looks like the test suite expects an English locale, but here > > > a > > > German locale is active. > > > > > > Can't exec "/bin/true": No such file or directory at > > > t/bin/Prty/Shell.t line 47. > > > > > > # Failed test 'checkError: Kommando erfolgreich ausgef�hrt' > > > # at t/bin/Prty/Shell.t line 49. > > > Can't exec "/bin/false": No such file or directory at > > > t/bin/Prty/Shell.t line 51. > > > > > > # Failed test 'checkError: Kommando endete mit Fehler' > > > # at t/bin/Prty/Shell.t line 53. > > > > > > On non-Linux systems (here: FreeBSD) true & false are often in > > > /usr/bin, not in /bin. > > > > > > # Failed test at t/bin/Prty/Timeseries/Synchronizer.t line 225. > > > # Structures begin differing at: > > > # $got->[0][7] = '1.58113883008418967' > > > # $expected->[0][7] = '1.58113883008419' > > > > > > This probably fails on systems where perl is compiled with > > > -Duselongdouble.