summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Jaeger <aj@suse.com>2020-06-19 14:38:50 +0200
committerVishal Manchanda <manchandavishal143@gmail.com>2020-06-24 06:33:28 +0000
commit8da0dcd21200cc851e57de4dfa46c3c838c73c3c (patch)
tree0d6b812871e52755e22fb7f9b5477a4d5a4b2e5d
parent32129b3a61f49e9f38f268761a10dae1fc86e7b1 (diff)
downloadhorizon-8da0dcd21200cc851e57de4dfa46c3c838c73c3c.tar.gz
Fix horizon-nodejs jobs15.3.1
Tox is not anymore pre-installed on the OpenDev CI images. The file package.json needs tox, install it to fix the job. Install it via a pre-run playbook so that this is run in addition to all of the playbooks of the parent. Note for the reviewer in stable/stein we run nodejs-4 jobs as runtime. I have cherry-pick this change from master which run nodejs-10 job but simliar changes fixes the nodejs-4 jobs So I have added pre-run playbook for nodejs-4 job as well. Change-Id: Icf82fa96f7d90453f78cf564c847682a286ed575 (cherry picked from commit 7cd0debebe1a300a96f8d0f21626793be0a0bc41)
-rw-r--r--.zuul.yaml4
-rw-r--r--playbooks/horizon-nodejs/pre.yaml6
2 files changed, 10 insertions, 0 deletions
diff --git a/.zuul.yaml b/.zuul.yaml
index d92e040fe..46323313f 100644
--- a/.zuul.yaml
+++ b/.zuul.yaml
@@ -102,6 +102,7 @@
vars:
node_version: 4
nodeset: ubuntu-xenial
+ pre-run: playbooks/horizon-nodejs/pre.yaml
required-projects:
openstack/horizon
@@ -113,6 +114,7 @@
vars:
node_version: 4
nodeset: ubuntu-xenial
+ pre-run: playbooks/horizon-nodejs/pre.yaml
required-projects:
openstack/horizon
@@ -124,6 +126,7 @@
vars:
node_version: 10
nodeset: ubuntu-bionic
+ pre-run: playbooks/horizon-nodejs/pre.yaml
required-projects:
openstack/horizon
@@ -135,6 +138,7 @@
vars:
node_version: 10
nodeset: ubuntu-bionic
+ pre-run: playbooks/horizon-nodejs/pre.yaml
required-projects:
openstack/horizon
diff --git a/playbooks/horizon-nodejs/pre.yaml b/playbooks/horizon-nodejs/pre.yaml
new file mode 100644
index 000000000..b346b0462
--- /dev/null
+++ b/playbooks/horizon-nodejs/pre.yaml
@@ -0,0 +1,6 @@
+- hosts: all
+ roles:
+ # package.json needs to run 'tox' as command, ensure that it's
+ # installed and can be used globally.
+ - role: ensure-tox
+ ensure_global_symlinks: True