Skip Menu |

This queue is for tickets about the CPAN CPAN distribution.

Report information
The Basics
Id: 131602
Status: patched
Priority: 0/
Queue: CPAN

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

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



CC: TINITA [...] cpan.org
Subject: t/12cpan.t fails (with newest YAML?)
t/12cpan.t started to fail: ... # Failed test 'A reference of type 'CODE' isa 'CPAN::DeferredCode'' # at t/12cpan.t line 165. # The reference of type 'CODE' isn't a 'CPAN::DeferredCode' # Failed test 'A reference of type 'CODE' isa 'CPAN::DeferredCode'' # at t/12cpan.t line 184. # The reference of type 'CODE' isn't a 'CPAN::DeferredCode' # Failed test 'stringifying the obj ran the code' # at t/12cpan.t line 186. # got: '1' # expected: '2' # Looks like you failed 3 tests of 28. t/12cpan.t .................... Dubious, test returned 3 (wstat 768, 0x300) Failed 3/28 subtests ... Without looking thoroughly into the problem, this smells like the recent LoadBlessed change in all YAML modules (for example https://metacpan.org/source/TINITA/YAML-1.30/Changes#L2 ) It also seems that t/31sessions.t started to fail, which might be related.
Dne St 29.led.2020 10:28:50, SREZIC napsal(a): Show quoted text
> t/12cpan.t started to fail: > > ... > # Failed test 'A reference of type 'CODE' isa 'CPAN::DeferredCode'' > # at t/12cpan.t line 165. > # The reference of type 'CODE' isn't a 'CPAN::DeferredCode' > > # Failed test 'A reference of type 'CODE' isa 'CPAN::DeferredCode'' > # at t/12cpan.t line 184. > # The reference of type 'CODE' isn't a 'CPAN::DeferredCode' > > # Failed test 'stringifying the obj ran the code' > # at t/12cpan.t line 186. > # got: '1' > # expected: '2' > # Looks like you failed 3 tests of 28. > t/12cpan.t .................... > Dubious, test returned 3 (wstat 768, 0x300) > Failed 3/28 subtests > ... > > Without looking thoroughly into the problem, this smells like the > recent LoadBlessed change in all YAML modules (for example > https://metacpan.org/source/TINITA/YAML-1.30/Changes#L2 ) >
I don't think so. It fails for me with YAML-1.29 as well as with YAML-1.30. Show quoted text
> It also seems that t/31sessions.t started to fail, which might be > related.
t/31sessions.t only fails with YAML-1.30 for me. I will file a new bug for the t/31sessions.t failures.
On Thu Jan 30 07:05:20 2020, ppisar wrote: Show quoted text
> Dne St 29.led.2020 10:28:50, SREZIC napsal(a):
> > t/12cpan.t started to fail: > > > > ... > > # Failed test 'A reference of type 'CODE' isa 'CPAN::DeferredCode'' > > # at t/12cpan.t line 165. > > # The reference of type 'CODE' isn't a 'CPAN::DeferredCode' > > > > # Failed test 'A reference of type 'CODE' isa 'CPAN::DeferredCode'' > > # at t/12cpan.t line 184. > > # The reference of type 'CODE' isn't a 'CPAN::DeferredCode' > > > > # Failed test 'stringifying the obj ran the code' > > # at t/12cpan.t line 186. > > # got: '1' > > # expected: '2' > > # Looks like you failed 3 tests of 28. > > t/12cpan.t .................... > > Dubious, test returned 3 (wstat 768, 0x300) > > Failed 3/28 subtests > > ... > > > > Without looking thoroughly into the problem, this smells like the > > recent LoadBlessed change in all YAML modules (for example > > https://metacpan.org/source/TINITA/YAML-1.30/Changes#L2 ) > >
> I don't think so. It fails for me with YAML-1.29 as well as with YAML- > 1.30. >
> > It also seems that t/31sessions.t started to fail, which might be > > related.
> > t/31sessions.t only fails with YAML-1.30 for me. I will file a new bug > for the t/31sessions.t failures.
My own investigation suggests that with perl-5.30.1 and YAML-1.30 installed, t/12cpan.t PASSes. It is when I install YAML::Syck-1.32 *in addition to* YAML-1.30 that t/12cpan.t starts to FAIL. ##### ok 1 - AUTOLOAD rejects CPAN: YAML loaded ok (v1.30) Reading '/home/jkeenan/gitwork/zzzothers/cpanpm/t/CPAN/authors/01mailrc.txt' ............................................................................DONE Reading '/home/jkeenan/gitwork/zzzothers/cpanpm/t/CPAN/modules/02packages.details.txt' Database was generated on Tue, 03 Feb 1970 03:17:06 GMT HTTP::Date not available Warning: This index file is 18258 days old. Please check the host you chose as your CPAN mirror for staleness. I'll continue but problems seem likely to happen. ............................................................................DONE Reading '/home/jkeenan/gitwork/zzzothers/cpanpm/t/CPAN/modules/03modlist.data' ............................................................................DONE ok 2 - not a recursive/circular dependency ok 3 - circular dependency ok 4 - found Andreas in CPAN::Test::Dummy::Perl5::Make ok 5 - $_ is properly localized ok 6 - s[0] ok 7 - s[1] ok 8 - s[2] ok 9 - s[3] ok 10 - s[4] ok 11 - dummy Kwalify/YAML 1 ok 12 - dummy Kwalify/YAML 2 ok 13 - deserialisation returned CODE ok 14 - running the code did the right thing not ok 15 - A reference of type 'CODE' isa 'CPAN::DeferredCode' # Failed test 'A reference of type 'CODE' isa 'CPAN::DeferredCode'' # at t/12cpan.t line 165. # The reference of type 'CODE' isn't a 'CPAN::DeferredCode' ok 16 - stringifying the obj does nothing ok 17 - deserialisation returned CODE ok 18 - running the code did the right thing not ok 19 - A reference of type 'CODE' isa 'CPAN::DeferredCode' # Failed test 'A reference of type 'CODE' isa 'CPAN::DeferredCode'' # at t/12cpan.t line 184. # The reference of type 'CODE' isn't a 'CPAN::DeferredCode' not ok 20 - stringifying the obj ran the code # Failed test 'stringifying the obj ran the code' # at t/12cpan.t line 186. # got: '1' # expected: '2' ok 21 - found http_proxy[http://myproxy.local/] on domain[at] ok 22 - found proxy_user[myproxyuser] on domain[at] ok 23 - found proxy_pass[myproxypass] on domain[at] ok 24 - found http_proxy[UNDEF] on domain[kh] ok 25 - found proxy_user[UNDEF] on domain[kh] ok 26 - found proxy_pass[UNDEF] on domain[kh] ok 27 - found keys[129] prompts ok 28 - found length[25323] prompts # Looks like you failed 3 tests of 28. Dubious, test returned 3 (wstat 768, 0x300) Failed 3/28 subtests Test Summary Report ------------------- t/12cpan.t (Wstat: 768 Tests: 28 Failed: 3) Failed tests: 15, 19-20 Non-zero exit status: 3 Files=1, Tests=28, 1 wallclock secs ( 0.02 usr 0.00 sys + 0.29 cusr 0.03 csys = 0.34 CPU) Result: FAIL ##### When I uninstall YAML, leaving YAML::Syck installed, I get the same 3 test failures reported above. (I will now try the same with t31sessions.t.) Thank you very much. Jim Keenan
On Thu Jan 30 11:00:49 2020, JKEENAN wrote: Show quoted text
> On Thu Jan 30 07:05:20 2020, ppisar wrote:
> > Dne St 29.led.2020 10:28:50, SREZIC napsal(a):
> > > t/12cpan.t started to fail: > > > > > > ... > > > # Failed test 'A reference of type 'CODE' isa > > > 'CPAN::DeferredCode'' > > > # at t/12cpan.t line 165. > > > # The reference of type 'CODE' isn't a 'CPAN::DeferredCode' > > > > > > # Failed test 'A reference of type 'CODE' isa > > > 'CPAN::DeferredCode'' > > > # at t/12cpan.t line 184. > > > # The reference of type 'CODE' isn't a 'CPAN::DeferredCode' > > > > > > # Failed test 'stringifying the obj ran the code' > > > # at t/12cpan.t line 186. > > > # got: '1' > > > # expected: '2' > > > # Looks like you failed 3 tests of 28. > > > t/12cpan.t .................... > > > Dubious, test returned 3 (wstat 768, 0x300) > > > Failed 3/28 subtests > > > ... > > > > > > Without looking thoroughly into the problem, this smells like the > > > recent LoadBlessed change in all YAML modules (for example > > > https://metacpan.org/source/TINITA/YAML-1.30/Changes#L2 ) > > >
> > I don't think so. It fails for me with YAML-1.29 as well as with > > YAML- > > 1.30. > >
> > > It also seems that t/31sessions.t started to fail, which might be > > > related.
> > > > t/31sessions.t only fails with YAML-1.30 for me. I will file a new > > bug > > for the t/31sessions.t failures.
> > My own investigation suggests that with perl-5.30.1 and YAML-1.30 > installed, t/12cpan.t PASSes. It is when I install YAML::Syck-1.32 > *in addition to* YAML-1.30 that t/12cpan.t starts to FAIL. > > ##### > ok 1 - AUTOLOAD rejects > CPAN: YAML loaded ok (v1.30) > Reading > '/home/jkeenan/gitwork/zzzothers/cpanpm/t/CPAN/authors/01mailrc.txt' > ............................................................................DONE > Reading > '/home/jkeenan/gitwork/zzzothers/cpanpm/t/CPAN/modules/02packages.details.txt' > Database was generated on Tue, 03 Feb 1970 03:17:06 GMT > HTTP::Date not available > Warning: This index file is 18258 days old. > Please check the host you chose as your CPAN mirror for staleness. > I'll continue but problems seem likely to happen. > ............................................................................DONE > Reading > '/home/jkeenan/gitwork/zzzothers/cpanpm/t/CPAN/modules/03modlist.data' > ............................................................................DONE > ok 2 - not a recursive/circular dependency > ok 3 - circular dependency > ok 4 - found Andreas in CPAN::Test::Dummy::Perl5::Make > ok 5 - $_ is properly localized > ok 6 - s[0] > ok 7 - s[1] > ok 8 - s[2] > ok 9 - s[3] > ok 10 - s[4] > ok 11 - dummy Kwalify/YAML 1 > ok 12 - dummy Kwalify/YAML 2 > ok 13 - deserialisation returned CODE > ok 14 - running the code did the right thing > not ok 15 - A reference of type 'CODE' isa 'CPAN::DeferredCode' > > # Failed test 'A reference of type 'CODE' isa 'CPAN::DeferredCode'' > # at t/12cpan.t line 165. > # The reference of type 'CODE' isn't a 'CPAN::DeferredCode' > ok 16 - stringifying the obj does nothing > ok 17 - deserialisation returned CODE > ok 18 - running the code did the right thing > not ok 19 - A reference of type 'CODE' isa 'CPAN::DeferredCode' > > # Failed test 'A reference of type 'CODE' isa 'CPAN::DeferredCode'' > # at t/12cpan.t line 184. > # The reference of type 'CODE' isn't a 'CPAN::DeferredCode' > not ok 20 - stringifying the obj ran the code > > # Failed test 'stringifying the obj ran the code' > # at t/12cpan.t line 186. > # got: '1' > # expected: '2' > ok 21 - found http_proxy[http://myproxy.local/] on domain[at] > ok 22 - found proxy_user[myproxyuser] on domain[at] > ok 23 - found proxy_pass[myproxypass] on domain[at] > ok 24 - found http_proxy[UNDEF] on domain[kh] > ok 25 - found proxy_user[UNDEF] on domain[kh] > ok 26 - found proxy_pass[UNDEF] on domain[kh] > ok 27 - found keys[129] prompts > ok 28 - found length[25323] prompts > # Looks like you failed 3 tests of 28. > Dubious, test returned 3 (wstat 768, 0x300) > Failed 3/28 subtests > > Test Summary Report > ------------------- > t/12cpan.t (Wstat: 768 Tests: 28 Failed: 3) > Failed tests: 15, 19-20 > Non-zero exit status: 3 > Files=1, Tests=28, 1 wallclock secs ( 0.02 usr 0.00 sys + 0.29 cusr > 0.03 csys = 0.34 CPU) > Result: FAIL > ##### > > When I uninstall YAML, leaving YAML::Syck installed, I get the same 3 > test failures reported above. > > (I will now try the same with t31sessions.t.) > > Thank you very much. > Jim Keenan
Please review this p.r.: https://github.com/andk/cpanpm/pull/132 Thank you very much. Jim Keenan
Show quoted text
> Please review this p.r.: > https://github.com/andk/cpanpm/pull/132
thanks, I think this one is a more general solution though: https://github.com/andk/cpanpm/pull/133
I can confirm that this PR fixes this issue. On Thu Jan 30 14:05:57 2020, TINITA wrote: Show quoted text
>
> > Please review this p.r.: > > https://github.com/andk/cpanpm/pull/132
> > thanks, I think this one is a more general solution though: > > https://github.com/andk/cpanpm/pull/133 >
Patch is applied and released as ANDK/CPAN-2.28-TRIAL.tar.gz
On Tue May 26 02:35:23 2020, ANDK wrote: Show quoted text
> Patch is applied and released as ANDK/CPAN-2.28-TRIAL.tar.gz
Finally had a moment to test this properly. It passes every check in my intricate setup: ship it! :)