gecko-dev/taskcluster
Mike Hommey 951d78513a Bug 1486071 - Retry docker-image and packages tasks that fail during apt-get. r=dustin
When apt-get fails, it has a distinctive error code (100). Most of the
time, when apt-get fails, it's because of some network error, or
possibly some problem unpacking archives. When that happens, retrying
the task usually "fixes" the issue.

One of the (currently) most common causes of problems is
snapshot.debian.org not being available to some of the EC2 instances.

It would be possible to only set things up so that we only retry when we
detect such setup (checking the public IP of the instance is not in the
known list of problematic IPs), but that would require possibly wrapping
apt-get, or something along those line, which is not entirely trivial to
do for the packages tasks, because they don't rely on docker images.

However, since there aren't many apt-get failures other than these,
and since there have been, historically, some intermittent apt-get
failures of a different nature that were solved by re-running the tasks,
it seems fair to just retry wheneven apt-get fails.

One downside of the approach is that if for some reason a change to a
Dockerfile ends up mentioning a package that doesn't exist, that too
will result in multiple retries ; which might be inconvenient, but
that's not something that's going to happen often.

Differential Revision: https://phabricator.services.mozilla.com/D11420

--HG--
extra : moz-landing-system : lando
2018-11-13 22:17:14 +00:00
..
ci Bug 1505167 - run raptor tests on reference laptops for mozilla-central and try. r=rwood 2018-11-13 19:21:18 +00:00
docker No Bug, taskcluster/docker/funsize-update-generator pipfile-update. r=sfraser 2018-11-12 11:46:12 +00:00
docs Bug 1475510 - Add repackage-msi signing. r=aki 2018-11-07 17:44:27 +00:00
scripts No bug - Remove stale reference from a comment. 2018-11-04 13:49:09 +01:00
taskgraph Bug 1486071 - Retry docker-image and packages tasks that fail during apt-get. r=dustin 2018-11-13 22:17:14 +00:00
.yamllint
mach_commands.py
moz.build