pkg-perl-maintainers team mailing list archive
-
pkg-perl-maintainers team
-
Mailing list archive
-
Message #04285
[Bug 1953344] [NEW] Autopkgtest failure with HTTP proxy
Public bug reported:
Hello,
Autopktest is failing for libwww-machanize-shell-perl.
Since it is a reverse dependency of libwww-perl, the latter is blocked on proposed migration (jammy).
https://autopkgtest.ubuntu.com/results/autopkgtest-jammy/jammy/amd64/libw/libwww-mechanize-shell-perl/20211206_012815_4c3bd@/log.gz
The tests that fail are meant to execute HTTP queries to the loopback
interface, for instance:
# get http://[::1]:49619/basic_auth/foo/bar
[...]
not ok 1 - Request without credentials gives 401
# Failed test 'Request without credentials gives 401'
# at t/13-command-au.t line 39.
# got: '503'
# expected: '401'
# Page location : http://[::1]:49619/basic_auth/foo/bar
# get http://[::1]:49619/basic_auth/foo/bar
not ok 2 - Wrong password still results in a 401
The issue seems to be caused by the HTTP proxy that is passed in the
environment when running autopkgtest. Although we define a no_proxy
variable that includes some of the addresses/hostnames of the loopback
interface, it does not contain the IPv6 loopback address i.e., ::1 being
used here.
no_proxy=127.0.0.1,127.0.1.1,localhost,localdomain[...]
Debian does not have the issue. They seem to run autopkgtest without a
proxy.
Some of the tests from the upstream include the following directive,
which unsets the HTTP proxy variables when running the tests:
delete @ENV{qw(HTTP_PROXY http_proxy CGI_HTTP_PROXY)};
The tests that fail don't have this directive. I suggest to add the
directive for all tests that query a local HTTP server.
Thanks,
Olivier
** Affects: libwww-mechanize-shell-perl (Ubuntu)
Importance: Undecided
Status: In Progress
** Attachment added: "Autopkgtest failure log"
https://bugs.launchpad.net/bugs/1953344/+attachment/5545712/+files/libwww-mechanize-shell-perl_autopkgtest-failure.log
** Changed in: libwww-mechanize-shell-perl (Ubuntu)
Status: New => In Progress
--
You received this bug notification because you are a member of Debian
Perl Group, which is subscribed to libwww-mechanize-shell-perl in
Ubuntu.
https://bugs.launchpad.net/bugs/1953344
Title:
Autopkgtest failure with HTTP proxy
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/libwww-mechanize-shell-perl/+bug/1953344/+subscriptions
Follow ups