Skip Menu |

This queue is for tickets about the WWW-Mechanize-PhantomJS CPAN distribution.

Report information
The Basics
Id: 125559
Status: open
Priority: 0/
Queue: WWW-Mechanize-PhantomJS

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

Bug Information
Severity: (no value)
Broken in:
  • 0.18
  • 0.19
Fixed in: (no value)



Subject: t/53-mech-capture-js-error.t may fail
The following failure happens on some of my smokers (e.g. debian/stretch or Ubuntu 16.04): ... # Testing with /usr/bin/phantomjs Qt: XKEYBOARD extension not present on the X server. Qt: XKEYBOARD extension not present on the X server. # PhantomJS version '2.1.1', ghostdriver version '1.1.0' # File loaded # Failed test 'Errors on page' # at t/53-mech-capture-js-error.t line 97. # Failed test 'One error message found' # at t/53-mech-capture-js-error.t line 102. # got: '0' # expected: '1' # Failed test 'Errors message' # at t/53-mech-capture-js-error.t line 104. # undef # doesn't match '(?^:^ReferenceError: Can't find variable: nonexisting_function)' # Failed test 'File name' # at t/53-mech-capture-js-error.t line 105. # undef # doesn't match '(?^:53\-mech\-capture\-js\-error\.html)' # Failed test 'Line number' # at t/53-mech-capture-js-error.t line 106. # got: undef # expected: '6' # Looks like you failed 5 tests of 25. t/53-mech-capture-js-error.t .. Dubious, test returned 5 (wstat 1280, 0x500) Failed 5/25 subtests ...
On 2018-06-12 01:20:28, SREZIC wrote: Show quoted text
> The following failure happens on some of my smokers (e.g. > debian/stretch or Ubuntu 16.04): > > ... > # Testing with /usr/bin/phantomjs > Qt: XKEYBOARD extension not present on the X server. > Qt: XKEYBOARD extension not present on the X server. > # PhantomJS version '2.1.1', ghostdriver version '1.1.0' > # File loaded > > # Failed test 'Errors on page' > # at t/53-mech-capture-js-error.t line 97. > > # Failed test 'One error message found' > # at t/53-mech-capture-js-error.t line 102. > # got: '0' > # expected: '1' > > # Failed test 'Errors message' > # at t/53-mech-capture-js-error.t line 104. > # undef > # doesn't match '(?^:^ReferenceError: Can't find variable: > nonexisting_function)' > > # Failed test 'File name' > # at t/53-mech-capture-js-error.t line 105. > # undef > # doesn't match '(?^:53\-mech\-capture\-js\-error\.html)' > > # Failed test 'Line number' > # at t/53-mech-capture-js-error.t line 106. > # got: undef > # expected: '6' > # Looks like you failed 5 tests of 25. > t/53-mech-capture-js-error.t .. > Dubious, test returned 5 (wstat 1280, 0x500) > Failed 5/25 subtests > ...
Happens also with 0.19.
On 2018-10-26 14:03:02, SREZIC wrote: Show quoted text
> On 2018-06-12 01:20:28, SREZIC wrote:
> > The following failure happens on some of my smokers (e.g. > > debian/stretch or Ubuntu 16.04): > > > > ... > > # Testing with /usr/bin/phantomjs > > Qt: XKEYBOARD extension not present on the X server. > > Qt: XKEYBOARD extension not present on the X server. > > # PhantomJS version '2.1.1', ghostdriver version '1.1.0' > > # File loaded > > > > # Failed test 'Errors on page' > > # at t/53-mech-capture-js-error.t line 97. > > > > # Failed test 'One error message found' > > # at t/53-mech-capture-js-error.t line 102. > > # got: '0' > > # expected: '1' > > > > # Failed test 'Errors message' > > # at t/53-mech-capture-js-error.t line 104. > > # undef > > # doesn't match '(?^:^ReferenceError: Can't find variable: > > nonexisting_function)' > > > > # Failed test 'File name' > > # at t/53-mech-capture-js-error.t line 105. > > # undef > > # doesn't match '(?^:53\-mech\-capture\-js\-error\.html)' > > > > # Failed test 'Line number' > > # at t/53-mech-capture-js-error.t line 106. > > # got: undef > > # expected: '6' > > # Looks like you failed 5 tests of 25. > > t/53-mech-capture-js-error.t .. > > Dubious, test returned 5 (wstat 1280, 0x500) > > Failed 5/25 subtests > > ...
> > Happens also with 0.19. >
And with 0.20.
Subject: Re: [rt.cpan.org #125559] t/53-mech-capture-js-error.t may fail
Date: Sun, 28 Oct 2018 11:09:22 +0100
To: bug-WWW-Mechanize-PhantomJS [...] rt.cpan.org
From: Max Maischein <corion [...] corion.net>
Show quoted text
>> Happens also with 0.19. >>
> > And with 0.20. >
I'm sorry, I can't replicate this error anywhere local. I am also running PhantomJS 2.1.1 and it works. It also works on Travis CI , which is also Ubuntu, so it must be something with your setup. https://travis-ci.org/Corion/www-mechanize-phantomjs -max
RT-Send-CC: corion [...] corion.net
On 2018-10-28 06:09:45, corion@corion.net wrote: Show quoted text
> >> Happens also with 0.19. > >>
> > > > And with 0.20. > >
> > I'm sorry, I can't replicate this error anywhere local. I am also > running PhantomJS 2.1.1 and it works. It also works on Travis CI , which > is also Ubuntu, so it must be something with your setup. > > https://travis-ci.org/Corion/www-mechanize-phantomjs
travis uses only Ubuntu 14.04, which is older. Here's a Dockerfile (based on debian/stretch) for reproducing the problem. Just save the following lines as "Dockerfile" and run commands from the first comment in this directory: # docker build -t perl-test . && docker run perl-test FROM debian:stretch RUN echo "cache invalidation #20181028" RUN apt-get -y update RUN apt-get -y install perl-modules RUN apt-get -y install make RUN apt-get -y install phantomjs xvfb # Speed up installation RUN apt-get -y install libwww-mechanize-perl RUN apt-get -y install libcapture-tiny-perl libtest-mockrandom-perl libtest-warn-perl libtest-warnings-perl libunicode-utf8-perl libnamespace-clean-perl libsub-identify-perl libarchive-zip-perl RUN apt-get -y install libxml-parser-perl libjson-xs-perl libclass-xsaccessor-perl libmoo-perl RUN apt-get -y install libclone-perl libpath-tiny-perl RUN apt-get -y install libxml-simple-perl libmro-compat-perl libalgorithm-diff-perl # Install without tests: RT #106769 RUN cpan -T Object::Import ENV DISPLAY :123 CMD (Xvfb :123 &) && cpan -t CORION/WWW-Mechanize-PhantomJS-0.20.tar.gz