Skip Menu |

This queue is for tickets about the DateTimeX-Format-Ago CPAN distribution.

Report information
The Basics
Id: 102423
Status: new
Priority: 0/
Queue: DateTimeX-Format-Ago

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

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



Subject: Test suite fails sometimes (date related?)
Looking at http://matrix.cpantesters.org/?dist=DateTimeX-Format-Ago%200.005;reports=1#sl=7,1 it seems that tests are failing every last day of month: it is failing today (2015-02-28), it happened in the past also on 2014-11-30 and 2014-09-30, but not on 2014-10-31, which spoils the theory somewhat.
On 2015-02-28 10:22:53, SREZIC wrote: Show quoted text
> Looking at http://matrix.cpantesters.org/?dist=DateTimeX-Format- > Ago%200.005;reports=1#sl=7,1 it seems that tests are failing every > last day of month: it is failing today (2015-02-28), it happened in > the past also on 2014-11-30 and 2014-09-30, but not on 2014-10-31, > which spoils the theory somewhat.
A systematic test for all days in 2014 for one of the failing test scripts: $ perl -MIPC::Run=run -MTime::Local -e '$t=timelocal(0,0,0,1,1-0,2014); for (1..365) { $result = run [$^X, "-MTime::Fake=$t", "-Mblib", "t/02roundtrip-natural.t"], ">", "/dev/null", "2>", \$error; if (!$result) { print STDERR scalar(localtime $t) . " $error\n"; } $t+=86400 }' Fri Feb 28 00:00:00 2014 # Failed test 'Roundtrip for '3 months ago'' # at t/02roundtrip-natural.t line 37. # got: '2 months ago' # expected: '3 months ago' # Looks like you failed 1 test of 13. Wed Apr 30 00:00:00 2014 # Failed test 'Roundtrip for '3 months ago'' # at t/02roundtrip-natural.t line 37. # got: '2 months ago' # expected: '3 months ago' # Looks like you failed 1 test of 13. Mon Jun 30 00:00:00 2014 # Failed test 'Roundtrip for '3 months ago'' # at t/02roundtrip-natural.t line 37. # got: '2 months ago' # expected: '3 months ago' # Looks like you failed 1 test of 13. Sun Nov 30 00:00:00 2014 # Failed test 'Roundtrip for '3 months ago'' # at t/02roundtrip-natural.t line 37. # got: '2 months ago' # expected: '3 months ago' # Looks like you failed 1 test of 13.
On 2015-02-28 10:36:13, SREZIC wrote: Show quoted text
> On 2015-02-28 10:22:53, SREZIC wrote:
> > Looking at http://matrix.cpantesters.org/?dist=DateTimeX-Format- > > Ago%200.005;reports=1#sl=7,1 it seems that tests are failing every > > last day of month: it is failing today (2015-02-28), it happened in > > the past also on 2014-11-30 and 2014-09-30, but not on 2014-10-31, > > which spoils the theory somewhat.
> > A systematic test for all days in 2014 for one of the failing test > scripts: > > $ perl -MIPC::Run=run -MTime::Local -e '$t=timelocal(0,0,0,1,1- > 0,2014); for (1..365) { $result = run [$^X, "-MTime::Fake=$t", "- > Mblib", "t/02roundtrip-natural.t"], ">", "/dev/null", "2>", \$error; > if (!$result) { print STDERR scalar(localtime $t) . " $error\n"; } > $t+=86400 }' > Fri Feb 28 00:00:00 2014 # Failed test 'Roundtrip for '3 months > ago'' > # at t/02roundtrip-natural.t line 37. > # got: '2 months ago' > # expected: '3 months ago' > # Looks like you failed 1 test of 13. > > Wed Apr 30 00:00:00 2014 # Failed test 'Roundtrip for '3 months > ago'' > # at t/02roundtrip-natural.t line 37. > # got: '2 months ago' > # expected: '3 months ago' > # Looks like you failed 1 test of 13. > > Mon Jun 30 00:00:00 2014 # Failed test 'Roundtrip for '3 months > ago'' > # at t/02roundtrip-natural.t line 37. > # got: '2 months ago' > # expected: '3 months ago' > # Looks like you failed 1 test of 13. > > Sun Nov 30 00:00:00 2014 # Failed test 'Roundtrip for '3 months > ago'' > # at t/02roundtrip-natural.t line 37. > # got: '2 months ago' > # expected: '3 months ago' > # Looks like you failed 1 test of 13.
Today (2018-09-30) I see the problem again.
On 2018-09-30 13:37:52, SREZIC wrote: Show quoted text
> On 2015-02-28 10:36:13, SREZIC wrote:
> > On 2015-02-28 10:22:53, SREZIC wrote:
> > > Looking at http://matrix.cpantesters.org/?dist=DateTimeX-Format- > > > Ago%200.005;reports=1#sl=7,1 it seems that tests are failing every > > > last day of month: it is failing today (2015-02-28), it happened in > > > the past also on 2014-11-30 and 2014-09-30, but not on 2014-10-31, > > > which spoils the theory somewhat.
> > > > A systematic test for all days in 2014 for one of the failing test > > scripts: > > > > $ perl -MIPC::Run=run -MTime::Local -e '$t=timelocal(0,0,0,1,1- > > 0,2014); for (1..365) { $result = run [$^X, "-MTime::Fake=$t", "- > > Mblib", "t/02roundtrip-natural.t"], ">", "/dev/null", "2>", \$error; > > if (!$result) { print STDERR scalar(localtime $t) . " $error\n"; } > > $t+=86400 }' > > Fri Feb 28 00:00:00 2014 # Failed test 'Roundtrip for '3 months > > ago'' > > # at t/02roundtrip-natural.t line 37. > > # got: '2 months ago' > > # expected: '3 months ago' > > # Looks like you failed 1 test of 13. > > > > Wed Apr 30 00:00:00 2014 # Failed test 'Roundtrip for '3 months > > ago'' > > # at t/02roundtrip-natural.t line 37. > > # got: '2 months ago' > > # expected: '3 months ago' > > # Looks like you failed 1 test of 13. > > > > Mon Jun 30 00:00:00 2014 # Failed test 'Roundtrip for '3 months > > ago'' > > # at t/02roundtrip-natural.t line 37. > > # got: '2 months ago' > > # expected: '3 months ago' > > # Looks like you failed 1 test of 13. > > > > Sun Nov 30 00:00:00 2014 # Failed test 'Roundtrip for '3 months > > ago'' > > # at t/02roundtrip-natural.t line 37. > > # got: '2 months ago' > > # expected: '3 months ago' > > # Looks like you failed 1 test of 13.
> > Today (2018-09-30) I see the problem again.
And today (2020-02-29).