From 16488779cd204af0ac9c75d5caa198cd4d05636f Mon Sep 17 00:00:00 2001 From: "Dustin J. Mitchell" Date: Wed, 30 Aug 2017 15:55:35 +0000 Subject: [PATCH] Bug 1394883: use /builds/worker in decision images; r=wcosta MozReview-Commit-ID: 29cnSAr3zCW --HG-- extra : rebase_source : dab573ee114729822c5ad9bd2674062f7ee24502 --- .taskcluster.yml | 18 +++++++++--------- taskcluster/docker/decision/Dockerfile | 11 ++++++----- taskcluster/docker/decision/HASH | 2 +- taskcluster/docker/decision/VERSION | 2 +- taskcluster/taskgraph/action.yml | 2 +- 5 files changed, 18 insertions(+), 17 deletions(-) diff --git a/.taskcluster.yml b/.taskcluster.yml index 705057a2951f..d66160ef7dad 100644 --- a/.taskcluster.yml +++ b/.taskcluster.yml @@ -72,11 +72,11 @@ tasks: GECKO_HEAD_REF: '${push.revision}' GECKO_HEAD_REV: '${push.revision}' GECKO_COMMIT_MSG: '${push.comment}' - HG_STORE_PATH: /home/worker/checkouts/hg-store - TASKCLUSTER_CACHES: /home/worker/checkouts + HG_STORE_PATH: /builds/worker/checkouts/hg-store + TASKCLUSTER_CACHES: /builds/worker/checkouts cache: - level-${repository.level}-checkouts-sparse-v1: /home/worker/checkouts + level-${repository.level}-checkouts-sparse-v1: /builds/worker/checkouts features: taskclusterProxy: true @@ -86,15 +86,15 @@ tasks: # exist in tree so we must hard code the hash # XXX Changing this will break Chain of Trust without an associated puppet and # scriptworker patch! - image: 'taskcluster/decision:0.1.10@sha256:c5451ee6c655b3d97d4baa3b0e29a5115f23e0991d4f7f36d2a8f793076d6854' + image: 'taskcluster/decision:2.0.0@sha256:4039fd878e5700b326d4a636e28c595c053fbcb53909c1db84ad1f513cf644ef' maxRunTime: 1800 # TODO use mozilla-unified for the base repository once the tc-vcs # tar.gz archives are created or tc-vcs isn't being used. command: - - /home/worker/bin/run-task - - '--vcs-checkout=/home/worker/checkouts/gecko' + - /builds/worker/bin/run-task + - '--vcs-checkout=/builds/worker/checkouts/gecko' - '--sparse-profile=build/sparse-profiles/taskgraph' - '--' - bash @@ -105,8 +105,8 @@ tasks: # still uses tc-vcs, which does not support mozilla-unified # https://bugzilla.mozilla.org/show_bug.cgi?id=1383973 in: > - cd /home/worker/checkouts/gecko && - ln -s /home/worker/artifacts artifacts && + cd /builds/worker/checkouts/gecko && + ln -s /builds/worker/artifacts artifacts && ./mach --log-no-times taskgraph decision --pushlog-id='${push.pushlog_id}' --pushdate='${push.pushdate}' @@ -123,7 +123,7 @@ tasks: artifacts: 'public': type: 'directory' - path: '/home/worker/artifacts' + path: '/builds/worker/artifacts' expires: {$fromNow: '1 year'} extra: diff --git a/taskcluster/docker/decision/Dockerfile b/taskcluster/docker/decision/Dockerfile index 196b3f8973db..599771268f3f 100644 --- a/taskcluster/docker/decision/Dockerfile +++ b/taskcluster/docker/decision/Dockerfile @@ -2,8 +2,9 @@ FROM ubuntu:16.04 MAINTAINER Greg Arndt # Add worker user -RUN useradd -d /home/worker -s /bin/bash -m worker -RUN mkdir /home/worker/artifacts && chown worker:worker /home/worker/artifacts +RUN mkdir /builds +RUN useradd -d /builds/worker -s /bin/bash -m worker +RUN mkdir /builds/worker/artifacts && chown worker:worker /builds/worker/artifacts # %include python/mozbuild/mozbuild/action/tooltool.py ADD topsrcdir/python/mozbuild/mozbuild/action/tooltool.py /tmp/tooltool.py @@ -18,11 +19,11 @@ ADD system-setup.sh /tmp/system-setup.sh RUN bash /tmp/system-setup.sh # %include taskcluster/docker/recipes/run-task -ADD topsrcdir/taskcluster/docker/recipes/run-task /home/worker/bin/run-task +ADD topsrcdir/taskcluster/docker/recipes/run-task /builds/worker/bin/run-task -ENV PATH /home/worker/bin:$PATH +ENV PATH /builds/worker/bin:$PATH ENV SHELL /bin/bash -ENV HOME /home/worker +ENV HOME /builds/worker # Set a default command useful for debugging CMD ["/bin/bash", "--login"] diff --git a/taskcluster/docker/decision/HASH b/taskcluster/docker/decision/HASH index b25cbc0704d8..8729f9625dc8 100644 --- a/taskcluster/docker/decision/HASH +++ b/taskcluster/docker/decision/HASH @@ -1 +1 @@ -sha256:c5451ee6c655b3d97d4baa3b0e29a5115f23e0991d4f7f36d2a8f793076d6854 +sha256:4039fd878e5700b326d4a636e28c595c053fbcb53909c1db84ad1f513cf644ef diff --git a/taskcluster/docker/decision/VERSION b/taskcluster/docker/decision/VERSION index 9767cc98e703..227cea215648 100644 --- a/taskcluster/docker/decision/VERSION +++ b/taskcluster/docker/decision/VERSION @@ -1 +1 @@ -0.1.10 +2.0.0 diff --git a/taskcluster/taskgraph/action.yml b/taskcluster/taskgraph/action.yml index 126b77d58ae0..95da58678f89 100644 --- a/taskcluster/taskgraph/action.yml +++ b/taskcluster/taskgraph/action.yml @@ -38,7 +38,7 @@ payload: # Note: This task is built server side without the context or tooling that # exist in tree so we must hard code the version - image: 'taskcluster/decision:0.1.7' + image: 'taskcluster/decision:2.0.0@sha256:4039fd878e5700b326d4a636e28c595c053fbcb53909c1db84ad1f513cf644ef' # Virtually no network or other potentially risky operations happen as part # of the task timeout aside from the initial clone. We intentionally have