example autopkgtests fail with fatal: unable to connect to github.com:

Bug #1539139 reported by Leo Arias on 2016-01-28
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Leo Arias

Bug Description

Four tests fail with something like:
Cloning into '/tmp/adt-run.mBipu5/build.EBQ/snapcraft-2.0.1/examples/py3-project/parts/spongeshaker/src'...
fatal: unable to connect to github.com:
github.com[0:]: errno=Connection timed out

Command '['git', 'clone', '--depth', '1', '--recursive', 'git://github.com/markokr/spongeshaker.git', '/tmp/adt-run.mBipu5/build.EBQ/snapcraft-2.0.1/examples/py3-project/parts/spongeshaker/src']' returned non-zero exit status 128

Failed log:

Leo Arias (elopio) wrote :

<pitti> elopio: they can all access the internet, as long as they respect the $*_proxy env vars
<pitti> elopio: and a lot of them actually do
<elopio> pitti: I see. Our tests are timing out doing a git clone, so I could fix them with something like
<elopio> git config --global http.proxy $...
<elopio> right?
<pitti> elopio: no, the env vars should already be set in /etc/environment
<pitti> elopio: didrocks' ubuntu-make tests use git clone as well and that works
<elopio> great, I'll check there.
<didrocks> elopio: confirming, I don't need to export any env variable (only for docker config, but that's different)
<elopio> didrocks: and do you clone git http: or with git: ?
<didrocks> elopio: the https:// scheme
<didrocks> the git one (ssh) isn't opened
<elopio> I can change the tests to use https instead of ssh, as sergiusens suggested.
<elopio> I wanted to keep at least a test using the git protocol, but that's alright.

Changed in snapcraft:
status: New → In Progress
importance: Undecided → High
assignee: nobody → Leo Arias (elopio)
milestone: none → 2.1
Changed in snapcraft:
status: In Progress → Fix Committed
Changed in snapcraft:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers