libwww-perl / WWW-Mechanize

Handy web browsing in a Perl object
https://metacpan.org/pod/WWW::Mechanize
Other
68 stars 52 forks source link

Test failure for 2.13 on 5.16.3 #345

Open simbabque opened 2 years ago

simbabque commented 2 years ago

http://matrix.cpantesters.org/?dist=WWW-Mechanize%202.13;os=linux;perl=5.16.3;reports=1

There is no form named "post_form" at t/history.t line 132.
make: *** [test_dynamic] Terminated
simbabque commented 1 year ago

I've done a clean install of 5.16.3 with perlbrew and WWW::Mechanize on both 2.13 and 2.14 install cleanly. I don't know what happened here. That test and the HTML file it uses have not been touched in years.

I'm tempted to close this.

oalders commented 1 year ago

Maybe @eserte has some insight into how to reproduce this?

eserte commented 1 year ago

This test seems to regularly hang on this smoker system (CentOS 7 with system perl), and I have to kill it.

eserte commented 1 year ago

I can produce the problem with the following Dockerfile

FROM centos:7
RUN yum install -y perl-CPAN perl-Test perl-Test-Simple perl-CPAN-Meta perl-ExtUtils-Config perl-Module-Build \
    which \
    perl-libwww-perl
# XXX FirstTime configuration may fail first time
RUN cpan -t WWW::Mechanize || true
CMD cpan -t WWW::Mechanize

Run it using something like docker build -t perl-test . && docker run perl-test --- once it hangs it cannot be killed with Ctrl-C, but use docker ps and docker kill instead.