Page MenuHomePhabricator

jenkins debian-glue job should use Wikimedia debian mirror
Closed, DeclinedPublic

Description

e.g. in https://integration.wikimedia.org/ci/job/debian-glue-non-voting/233/console I see:

11:48:39 * Using mirror http://http.debian.net/debian *

Instead we should use the https://mirrors.wikimedia.org/debian/ mirror which'll be faster

Event Timeline

Legoktm created this task.Sep 13 2016, 11:51 AM
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptSep 13 2016, 11:51 AM
hashar added a subscriber: hashar.Sep 13 2016, 12:28 PM

That is hardcoded in the Jenkins debian glue script piuparts_wrapper:

if [ -n "${MIRROR:-}" ] ; then
  echo "*** MIRROR variable is set [$MIRROR], using it ***"
else
  if lsb_release --id 2>/dev/null | grep -q Ubuntu ; then
    MIRROR='http://archive.ubuntu.com/ubuntu'
  else
    MIRROR='http://http.debian.net/debian'
  fi
  echo "*** Using mirror $MIRROR ***"
fi

The whole wrapper is a bit crappy for us though. It runs out of a pbuilder tar.gz that is not updated and does not run the pbuilder hooks that inject -wikimedia or backports :(

In theory we could have the job or Zuul to inject MIRROR, update the sudo policy to pass that env variable and that would do it.

hashar triaged this task as Low priority.Sep 26 2016, 10:40 AM
hashar closed this task as Declined.Apr 17 2019, 1:28 PM

We are no more running piuparts.