[Bug 1372903] Re: Ubuntu dep8 CI environment sets http_proxy causing http://127.0.0.1 to fail

Robie Basak 1372903 at bugs.launchpad.net
Tue Sep 23 12:18:53 UTC 2014


Some thoughts on this:

Setting no_proxy=127.0.0.1 in the lab environment might be a quick
workaround.

Longer term thoughts:

It makes sense to use a caching proxy, since tests that require external
resources (not just apt, but cloud images, etc) will run much quicker in
an environment that has one, and the point of dep8 CI involves running a
high volume of tests.

However, this creates an implicit requirement in the dep8 specification
that tests must be prepared to handle the proxy. Since using a proxy can
change local behaviour, this is problematic.

I wonder if there should be a new Restriction "internet-access" or
something? Without it, a test should expect no interference (eg. no
setting of http_proxy), but also no access to external resources. With
it, a test can expect access to external resources but must also
understand, obey and deal with http_proxy et al. as appropriate.

None of this should affect apt. I think it's reasonable for a test to
assume that apt works, but also that it's configured appropriately,
including a Acquire::http::Proxy setting if required, and to require
that tests can deal with this.

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to autopkgtest in Ubuntu.
https://bugs.launchpad.net/bugs/1372903

Title:
  Ubuntu dep8 CI environment sets http_proxy causing http://127.0.0.1 to
  fail

Status in “autopkgtest” package in Ubuntu:
  New

Bug description:
  Not strictly an autopkgtest issue, but filing here so it doesn't get
  lost. Is there a more appropriate place for this?

  The nginx dep8 test hits http://127.0.0.1. In Ubuntu's CI environment
  this fails because http_proxy is set and so the IP is resolved from
  the point of view of the proxy. The test's expectation was that this
  query would be local with no proxy involved.

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



More information about the foundations-bugs mailing list