bug 1505652: [taskgraph] Download debian packages from latest run of package task; r=dustin
☠☠ backed out by 5ece74940a5f ☠ ☠
authorTom Prince <mozilla@hocat.ca>
Tue, 02 Oct 2018 21:38:23 +0000
changeset 445144 3f71db4aef7361659bd324dd6a9c29933fddf32e
parent 445084 b3da3f53f8042d6e2e8f90cd0086e354d96ba2fc
child 445145 f899fbb4a5d7e0b604af4081d46d7d3e68f42674
push id35011
push userbtara@mozilla.com
push dateThu, 08 Nov 2018 18:49:03 +0000
treeherdermozilla-central@12cc80a0e996 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersdustin
bugs1505652
milestone65.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
bug 1505652: [taskgraph] Download debian packages from latest run of package task; r=dustin If a packaging task ended up being retried for any reason, the downstream docker tasks that depended on them would fail, since they were hard-coding the artifacts from the initial run. Differential Revision: https://phabricator.services.mozilla.com/D7364
taskcluster/docker/debian-base/setup_packages.sh
taskcluster/taskgraph/transforms/job/debian_package.py
--- a/taskcluster/docker/debian-base/setup_packages.sh
+++ b/taskcluster/docker/debian-base/setup_packages.sh
@@ -1,5 +1,5 @@
 #!/bin/sh
 
 for task in "$@"; do
-  echo "deb [trusted=yes] https://queue.taskcluster.net/v1/task/$task/runs/0/artifacts/public/build/ debian/" > "/etc/apt/sources.list.d/99$task.list"
+  echo "deb [trusted=yes] https://queue.taskcluster.net/v1/task/$task/artifacts/public/build/ debian/" > "/etc/apt/sources.list.d/99$task.list"
 done
--- a/taskcluster/taskgraph/transforms/job/debian_package.py
+++ b/taskcluster/taskgraph/transforms/job/debian_package.py
@@ -165,17 +165,17 @@ def docker_worker_debian_package(config,
         '/{snapshot}/ {dist}-backports main" >> /etc/apt/sources.list && '
         'echo "deb http://snapshot.debian.org/archive/debian-security'
         '/{snapshot}/ {dist}/updates main" >> /etc/apt/sources.list && '
         'apt-get update -o Acquire::Check-Valid-Until=false -q && '
         # Add sources for packages coming from other package tasks.
         'apt-get install -yyq apt-transport-https ca-certificates && '
         'for task in $PACKAGES; do '
         '  echo "deb [trusted=yes] https://queue.taskcluster.net/v1/task'
-        '/$task/runs/0/artifacts/public/build/ debian/" '
+        '/$task/artifacts/public/build/ debian/" '
         '>> /etc/apt/sources.list; '
         'done && '
         # Install the base utilities required to build debian packages.
         'apt-get update -o Acquire::Check-Valid-Until=false -q && '
         'apt-get install -yyq {base_deps} && '
         'cd /tmp && '
         # Get, validate and extract the package source.
         'dget -d -u {src_url} && '