Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PPI 1.264 Causes Test Failure in Perl 5.20 & Older #237

Closed
wbraswell opened this issue Apr 27, 2019 · 7 comments
Closed

PPI 1.264 Causes Test Failure in Perl 5.20 & Older #237

wbraswell opened this issue Apr 27, 2019 · 7 comments

Comments

@wbraswell
Copy link
Member

The latest release of PPI 1.252 (and presumably newer releases) are causing installation errors for Perl::Critic on Perl 5.22 and older:

https://travis-ci.org/Perl-Critic/Perl-Critic/builds/525222639

...
Building and testing Perl-Critic-1.132 ... FAIL
! Installing Perl::Critic failed. See /home/travis/.cpanm/work/1556335093.7671/build.log for details. Retry with --force to force install it.
! Installing the dependencies failed: Module 'Perl::Critic' is not installed
! Bailing out the installation for Perl-Critic-More-1.003.
--> Working on Test::Perl::Critic
Fetching http://www.cpan.org/authors/id/P/PE/PETDANCE/Test-Perl-Critic-1.04.tar.gz ... OK
Configuring Test-Perl-Critic-1.04 ... OK
==> Found dependencies: MCE, Perl::Critic, Perl::Critic::Utils, Perl::Critic::Violation
--> Working on MCE
Fetching http://www.cpan.org/authors/id/M/MA/MARIOROY/MCE-1.838.tar.gz ... OK
Configuring MCE-1.838 ... OK
Building and testing MCE-1.838 ... OK
Successfully installed MCE-1.838
! Installing the dependencies failed: Module 'Perl::Critic::Violation' is not installed, Module 'Perl::Critic::Utils' is not installed, Module 'Perl::Critic' is not installed
! Bailing out the installation for Test-Perl-Critic-1.04.
...
@wbraswell
Copy link
Member Author

@wchristian
This is related to #236
They are both causing errors with Perl::Critic which did not exist before.
The difference is this issue is for Perl 5.22 & older, while the other issue is for Perl 5.24 & newer.
Please provide your guidance.

@wchristian
Copy link
Member

According to the Travis link it appears to be failing on all perl versions?

@wbraswell
Copy link
Member Author

@wchristian
You can see it is failing differently on Perl 5.24 and newer because they have an "X" meaning "failure during build/test", whereas Perl 5.22 and newer has an "!" meaning "failure during install". That's why I made 2 different issues, this one and #236.

@wchristian
Copy link
Member

As discussed on IRC, i rereleased PPI without the Test::InDistDir dependency. Did that improve the situation?

@wbraswell wbraswell changed the title PPI 1.252 Causes Installation Failure in Perl 5.22 & Older PPI 1.264 Causes Installation Failure in Perl 5.20 & Older May 1, 2019
@wbraswell wbraswell changed the title PPI 1.264 Causes Installation Failure in Perl 5.20 & Older PPI 1.264 Causes Test Failure in Perl 5.20 & Older May 1, 2019
@wbraswell
Copy link
Member Author

@wchristian
We have now upgraded Perl::Critic dev branch to require PPI 1.264, and now we are down to only 1 error for Perl 5.20 and older.
(Thus, I have renamed this issue.)
https://travis-ci.org/Perl-Critic/Perl-Critic/builds/526963275
https://api.travis-ci.org/v3/job/526963280/log.txt

t/04_options_processor.t ...................... ok
t/05_utils.t .................................. Having more than one /x regexp modifier is deprecated at /home/travis/.cpanm/work/1556733082.6620/Perl-Critic-1.132/blib/lib/Perl/Critic/Policy/ValuesAndExpressions/RequireInterpolationOfMetachars.pm line 110.
t/05_utils.t .................................. 1/156 
#   Failed test 'parse_arg_list: foo( { bar() }, {}, 'blah' )'
#   at t/05_utils.t line 433.
#     Structures begin differing at:
#          $got->[0] = ARRAY(0x51b5620)
#     $expected->[0] = ' { bar() }'
# Looks like you failed 1 test of 156.
t/05_utils.t .................................. Dubious, test returned 1 (wstat 256, 0x100)
Failed 1/156 subtests 

@wchristian
Copy link
Member

Taking a bit of a look at this stuff again. Were the causes for these resolved satisfactorily?

@wbraswell
Copy link
Member Author

@wchristian
Yes Perl::Critic is passing tests now, seems to be good!
https://travis-ci.org/Perl-Critic/Perl-Critic/jobs/617791612

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants