← Back to team overview

canonical-ubuntu-qa team mailing list archive

[Bug 2025645] Re: t/local/referer.t blocking forever during autopkgtests

 

Well, indeed that seems kind of infra related, but not as in "specific to the infra".
The good thing is that is reproduces locally quite easily (from the libwww-mechanize-perl sources):

autopkgtest . --env=http_proxy='http://squid.internal:3128' -- qemu
autopkgtest-oracular-amd64.img

For that to "work" and reproduce the issue, you need to have the
Canonical VPN set up, so that `squid.internal` works correctly. You'll
see that setting `http_proxy` to a non-working proxy doesn't work,
because `apt` can't install anything and the testbed cannot be
initialized. I guess setting up a local proxy with proper configuration
could also do the trick.

The interesting part, is that it reproduces with a local build of the
package, like above, but not when the package comes from the archive
itself. This passes successfully without trouble:

autopkgtest libwww-mechanize-perl
--env=http_proxy='http://squid.internal:3128' -- qemu autopkgtest-
oracular-amd64.img

This makes me think that the issue actually lies within autopkgtest
itself. I've reproduced the issue on both the plucky version of
autopkgtest (5.38ubuntu1) and on master (very close to 5.42).

I'll set this bug as also affecting autopkgtest so that we have it on
our radar too.

** Also affects: autopkgtest (Ubuntu)
   Importance: Undecided
       Status: New

** Changed in: autopkgtest (Ubuntu)
       Status: New => Confirmed

-- 
You received this bug notification because you are a member of
Canonical's Ubuntu QA, which is subscribed to autopkgtest in Ubuntu.
Matching subscriptions: ubuntu-qa-bugs
https://bugs.launchpad.net/bugs/2025645

Title:
  t/local/referer.t blocking forever during autopkgtests

Status in autopkgtest package in Ubuntu:
  Confirmed
Status in libwww-mechanize-perl package in Ubuntu:
  New

Bug description:
  The test file t/local/referer.t will block forever on Ubuntu's
  autopkgtest runners.

  There is a similar problem reported upstream a few years ago but I'm
  not sure they are related. I added more details to it
  https://github.com/libwww-perl/WWW-Mechanize/issues/281

  referer.t will start a local webserver implemented in t/local/referer-
  server. Each test will call the webserver and stop it by calling GET
  /quit-server in the last test. Although, in the end, referer.t blocks
  on wait(referer-server), supposedly after calling close(), but
  referer-server is blocked on accept().

  These tests will just work locally and are not blocking on Debian.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/autopkgtest/+bug/2025645/+subscriptions