4cc580d94b
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
54 lines
2.0 KiB
YAML
54 lines
2.0 KiB
YAML
- job:
|
|
name: horizon-nodejs16-run-lint
|
|
parent: nodejs-run-lint
|
|
description: |
|
|
Run lint using Node 16 for horizon plugins.
|
|
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:
|
|
- openstack/horizon
|
|
- openstack/requirements
|
|
|
|
- job:
|
|
name: horizon-nodejs16-run-test
|
|
parent: nodejs-run-test-browser
|
|
description: |
|
|
Run test using Node 16 for horizon plugins.
|
|
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:
|
|
- openstack/horizon
|
|
- openstack/requirements
|
|
|
|
- project-template:
|
|
name: horizon-nodejs-jobs
|
|
description: |
|
|
This project template is defined to run lint and test jobs using
|
|
Node LTS version (i.e. 16 now) for horizon plugins. horizon plugins
|
|
can use this template to run nodejs jobs. So if we want to update
|
|
nodejs version in horizon plugins we can update this template to use
|
|
the job with the latest node version and not many changes are required
|
|
in the horizon plugins side.
|
|
check:
|
|
jobs:
|
|
- horizon-nodejs16-run-lint
|
|
- horizon-nodejs16-run-test
|
|
gate:
|
|
jobs:
|
|
- horizon-nodejs16-run-lint
|
|
- horizon-nodejs16-run-test
|