From 279dadd282df52696e0236366eb893360a49bed0 Mon Sep 17 00:00:00 2001 From: Clark Boylan Date: Fri, 8 Jun 2018 08:20:49 -0700 Subject: [PATCH] Improve kata-runsh job Add system package dependencies (build-essential, golang-1.10) and set GOPATH to $HOME for the zuul user which should magically work with the zuul git repo pathing. Additionally use shell with set -x. We switch to xenial so that we can use upstream docker-ce packages which the kata ci seems to expect. Depends-On: Ief0f20c2f1b42a5c23ed05f7185c58700f65b06e Change-Id: Ibb5cee5ba90662e53c39dcf686a52bcafe81c933 --- playbooks/kata-runsh/pre.yaml | 26 +++++++++++++++++++++++++- playbooks/kata-runsh/run.yaml | 8 +++++++- zuul.d/jobs.yaml | 4 ++-- 3 files changed, 34 insertions(+), 4 deletions(-) diff --git a/playbooks/kata-runsh/pre.yaml b/playbooks/kata-runsh/pre.yaml index 67781893..5c64427f 100644 --- a/playbooks/kata-runsh/pre.yaml +++ b/playbooks/kata-runsh/pre.yaml @@ -1,6 +1,30 @@ - hosts: all tasks: + - name: Install build-essential + package: + name: build-essential + state: present + become: yes + - name: Install golang + package: + name: golang-1.10 + state: present + become: yes + - name: Make sure sources.list.d exists + file: + path: /etc/apt/sources.list.d + owner: root + group: root + mode: 0755 + state: directory + become: yes - name: Run kata setup.sh args: + executable: /bin/bash chdir: "{{ zuul.project.src_dir }}" - command: ".ci/setup.sh" + shell: | + set -x + export PATH=$PATH:/usr/lib/go-1.10/bin + export CI=true + export GOPATH=$HOME + .ci/setup.sh diff --git a/playbooks/kata-runsh/run.yaml b/playbooks/kata-runsh/run.yaml index 9eaa4b7b..369afc02 100644 --- a/playbooks/kata-runsh/run.yaml +++ b/playbooks/kata-runsh/run.yaml @@ -2,5 +2,11 @@ tasks: - name: Run kata run.sh args: + executable: /bin/bash chdir: "{{ zuul.project.src_dir }}" - command: ".ci/run.sh" + shell: | + set -x + export PATH=$PATH:/usr/lib/go-1.10/bin + export CI=true + export GOPATH=$HOME + .ci/run.sh diff --git a/zuul.d/jobs.yaml b/zuul.d/jobs.yaml index d26116bf..c00b9f31 100644 --- a/zuul.d/jobs.yaml +++ b/zuul.d/jobs.yaml @@ -1452,5 +1452,5 @@ timeout: 3600 nodeset: nodes: - - name: ubuntu-bionic - label: ubuntu-bionic-vexxhost + - name: ubuntu-xenial + label: ubuntu-xenial-vexxhost