summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormanchandavishal <manchandavishal143@gmail.com>2023-01-06 11:54:54 +0530
committermanchandavishal <manchandavishal143@gmail.com>2023-01-10 17:43:59 +0530
commit4cc580d94b1e579c307583d2f8eb2a5cb699b14f (patch)
treea392dd66a232be34dac9727cbfbbefd908aea88c
parentc579279e26babcc6e5b9b453f60af64823c446b2 (diff)
downloadhorizon-4cc580d94b1e579c307583d2f8eb2a5cb699b14f.tar.gz
Pin tox<4 for stable branches testing
horizon npm jobs start failing due to some recent changes in tox4. As discussed on open-discuss ML, it is decided to keep testing the stable branch with the tox version that they release with and not with the tox 4. This patch set the 'ensure_tox_version' to use 4, which will tell zuul to install tox<4 if it's not present. For more info. please refer [1]. [1] https://lists.openstack.org/pipermail/openstack-discuss/2023-January/031668.html Change-Id: I3652d87d817030bcd3855d26bfa41b8b7061d08e
-rw-r--r--.zuul.d/nodejs-jobs.yaml8
1 files changed, 8 insertions, 0 deletions
diff --git a/.zuul.d/nodejs-jobs.yaml b/.zuul.d/nodejs-jobs.yaml
index 25e7a3f2a..3da5272f1 100644
--- a/.zuul.d/nodejs-jobs.yaml
+++ b/.zuul.d/nodejs-jobs.yaml
@@ -6,6 +6,10 @@
vars:
node_version: 16
tox_constraints_file: "{{ ansible_user_dir }}/{{ zuul.projects['opendev.org/openstack/requirements'].src_dir }}/upper-constraints.txt"
+ # NOTE: This is stable branch (<=stable/zed) job and new tox 4
+ # require some changes in tox.ini to be compatible with it. Let's
+ # pin tox <4 for stable branches testing (<=stable/zed).
+ ensure_tox_version: '<4'
nodeset: ubuntu-focal
pre-run: playbooks/horizon-nodejs/pre.yaml
required-projects:
@@ -20,6 +24,10 @@
vars:
node_version: 16
tox_constraints_file: "{{ ansible_user_dir }}/{{ zuul.projects['opendev.org/openstack/requirements'].src_dir }}/upper-constraints.txt"
+ # NOTE: This is stable branch (<=stable/zed) job and new tox 4
+ # require some changes in tox.ini to be compatible with it. Let's
+ # pin tox <4 for stable branches testing (<=stable/zed).
+ ensure_tox_version: '<4'
pre-run: playbooks/horizon-nodejs/pre.yaml
nodeset: ubuntu-focal
required-projects: