Skip Menu |
 

This queue is for tickets about the Socialtext-Resting CPAN distribution.

Report information
The Basics
Id: 81439
Status: open
Priority: 0/
Queue: Socialtext-Resting

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

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



Subject: Test failures due to hash randomisation in perl 5.17.6
Download (untitled) / with headers
text/plain 992b
Since bleadperl v5.17.5-518-g7dc8663 your tests are failing frequently. That commit introduced hash key randomization and it seems at least the test t/resting-mocked.t is hit by that. The fails of my smoker have not yet arrived at cpantesters.org, so I copy the relevant part of the diagnostics: # Failed test 'content req - {"signal":"O HAI","group_ids":[42],"account_ids":[2,3,4]}' # at t/resting-mocked.t line 394. # Structures begin differing at: # $got->[1][1] = '{"group_ids":[42],"signal":"O HAI","account_ids":[2,3,4]}' # $expected->[1][1] = '{"signal":"O HAI","group_ids":[42],"account_ids":[2,3,4]}' # Looks like you failed 1 test of 177. t/resting-mocked.t .. Dubious, test returned 1 (wstat 256, 0x100) Failed 1/177 subtests You can read more about the commit at http://perl5.git.perl.org/perl.git/commit/7dc8663964c66a698d31bbdc8e8abed69bddeec3 You may have to run the test several times until the randomization causes a fail. HTH&&Thanks&&Regards,
Download (untitled) / with headers
text/plain 3.1k
On Sun Nov 25 07:31:08 2012, ANDK wrote: Show quoted text
> Since bleadperl v5.17.5-518-g7dc8663 your tests are failing > frequently. > That commit introduced hash key randomization and it seems at least > the test > > t/resting-mocked.t > > is hit by that. The fails of my smoker have not yet arrived at > cpantesters.org, so I copy the relevant part of the diagnostics: > > # Failed test 'content req - {"signal":"O > HAI","group_ids":[42],"account_ids":[2,3,4]}' > # at t/resting-mocked.t line 394. > # Structures begin differing at: > # $got->[1][1] = '{"group_ids":[42],"signal":"O > HAI","account_ids":[2,3,4]}' > # $expected->[1][1] = '{"signal":"O > HAI","group_ids":[42],"account_ids":[2,3,4]}' > # Looks like you failed 1 test of 177. > t/resting-mocked.t .. > Dubious, test returned 1 (wstat 256, 0x100) > Failed 1/177 subtests > > > You can read more about the commit at > http://perl5.git.perl.org/perl.git/commit/7dc8663964c66a698d31bbdc8e8abed69bddeec3 > > You may have to run the test several times until the randomization > causes a fail. > > HTH&&Thanks&&Regards,
I can confirm Andreas' report of nearly six years ago. Today I attempted to install this module against perl-5.29.1 on FreeBSD-11.1 using cpanm as the installer. Here is data from the cpanm build.log: ##### { author => "KEVINJ", dist => "Socialtext-Resting", distname => "Socialtext-Resting-0.38", distversion => 0.38, grade => "FAIL", prereqs => undef, test_output => [ "Building and testing Socialtext-Resting-0.38", "cp lib/Socialtext/Resting.pm blib/lib/Socialtext/Resting.pm", "cp bin/st-webhook blib/script/st-webhook", "\"/usr/home/jkeenan/var/tad/testing/perl-5.29.1/bin/perl\" -MExtUtils::MY -e 'MY->fixin(shift)' -- blib/script/st-webhook", "cp bin/strut blib/script/strut", "\"/usr/home/jkeenan/var/tad/testing/perl-5.29.1/bin/perl\" -MExtUtils::MY -e 'MY->fixin(shift)' -- blib/script/strut", "PERL_DL_NONLAZY=1 \"/usr/home/jkeenan/var/tad/testing/perl-5.29.1/bin/perl\" \"-MExtUtils::Command::MM\" \"-MTest::Harness\" \"-e\" \"undef *Test::Harness::Switches; test_harness(0, 'blib/lib', 'blib/arch')\" t/*.t", "t/compile.t ......... ok", "", "# Failed test 'content req - {\"signal\":\"O HAI\",\"group_ids\":[42],\"account_ids\":[2,3,4]}'", "# at t/resting-mocked.t line 404.", "# Structures begin differing at:", "# \$got->[1][1] = '{\"group_ids\":[42],\"signal\":\"O HAI\",\"account_ids\":[2,3,4]}'", "# \$expected->[1][1] = '{\"signal\":\"O HAI\",\"group_ids\":[42],\"account_ids\":[2,3,4]}'", "# Looks like you failed 1 test of 177.", "t/resting-mocked.t .. ", "Dubious, test returned 1 (wstat 256, 0x100)", "Failed 1/177 subtests ", "t/resting.t ......... skipped: No Socialtext::Resting::Getopt", "", "Test Summary Report", "-------------------", "t/resting-mocked.t (Wstat: 256 Tests: 177 Failed: 1)", " Failed test: 155", " Non-zero exit status: 1", "Files=3, Tests=178, 1 wallclock secs ( 0.01 usr 0.04 sys + 0.31 cusr 0.06 csys = 0.42 CPU)", "Result: FAIL", ], via => "App::cpanminus::reporter 0.17 (1.7044)", } ##### Thank you very much. Jim Keenan


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.