tobyink / p5-datetimex-format-ago

0 stars 1 forks source link

Test suite fails sometimes (date related?) #4

Open tobyink opened 3 years ago

tobyink commented 3 years ago

Migrated from rt.cpan.org #102423 (status was 'new')

Requestors:

From srezic@cpan.org (@eserte) on 2015-02-28 15:22:53 :

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.

tobyink commented 3 years ago

From srezic@cpan.org (@eserte) on 2015-02-28 15:36:13 :

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.

tobyink commented 3 years ago

From srezic@cpan.org (@eserte) on 2018-09-30 17:37:52 :

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.

tobyink commented 3 years ago

From srezic@cpan.org (@eserte) on 2020-02-29 10:22:48 :

On 2018-09-30 13:37:52, SREZIC wrote:

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).