60692f56d2
This patch defines a project template "horizon-nodejs-jobs" for nodejs v16 jobs which is the next LTS version of nodejs[1] and also, the runtime for the Zed cycle[2]. Next step is to the horizon plugins use this template to run nodejs v16 jobs and once it's pass in all horizon plugins we can remove nodejs v14 jobs completely. This patch also do few cleaups: • remove nodejs v14 job to run on horizon gate because we don't need to run both nodejs v14 and nodejs v16 jobs for horizon. • replace nodejs v14 experimental xstatic job with nodejs v16 job. • replace horizon-nodejs14-run-test periodic job with nodejs v16. [1] https://nodejs.org/en/about/releases/ [2] https://governance.openstack.org/tc/reference/runtimes/zed.html#node-js-runtime-for-zed Depends-On: https://review.opendev.org/c/openstack/openstack-zuul-jobs/+/831912 Change-Id: Ic11f2c3bd7a6a09c8fa6fb7a457e83e889deed6b
98 lines
3.1 KiB
YAML
98 lines
3.1 KiB
YAML
- job:
|
|
name: horizon-nodejs14-run-lint
|
|
parent: nodejs-run-lint
|
|
description: |
|
|
Run lint using Node 14 for horizon plugins.
|
|
vars:
|
|
node_version: 14
|
|
tox_constraints_file: "{{ ansible_user_dir }}/{{ zuul.projects['opendev.org/openstack/requirements'].src_dir }}/upper-constraints.txt"
|
|
nodeset: ubuntu-focal
|
|
pre-run: playbooks/horizon-nodejs/pre.yaml
|
|
required-projects:
|
|
- openstack/horizon
|
|
- openstack/requirements
|
|
|
|
- job:
|
|
name: horizon-nodejs14-run-test
|
|
parent: nodejs-run-test-browser
|
|
description: |
|
|
Run test using Node 14 for horizon plugins.
|
|
vars:
|
|
node_version: 14
|
|
tox_constraints_file: "{{ ansible_user_dir }}/{{ zuul.projects['opendev.org/openstack/requirements'].src_dir }}/upper-constraints.txt"
|
|
pre-run: playbooks/horizon-nodejs/pre.yaml
|
|
nodeset: ubuntu-focal
|
|
required-projects:
|
|
- openstack/horizon
|
|
- openstack/requirements
|
|
|
|
- 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"
|
|
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"
|
|
pre-run: playbooks/horizon-nodejs/pre.yaml
|
|
nodeset: ubuntu-focal
|
|
required-projects:
|
|
- openstack/horizon
|
|
- openstack/requirements
|
|
|
|
- project-template:
|
|
name: horizon-nodejs14-jobs
|
|
description: |
|
|
Run lint and test jobs using Node 14 (LTS) for horizon plugins.
|
|
check:
|
|
jobs:
|
|
- horizon-nodejs14-run-lint
|
|
- horizon-nodejs14-run-test
|
|
gate:
|
|
jobs:
|
|
- horizon-nodejs14-run-lint
|
|
- horizon-nodejs14-run-test
|
|
|
|
- project-template:
|
|
name: horizon-nodejs14-jobs-nonvoting
|
|
description: |
|
|
Run lint and test jobs using Node 14 (LTS) for horizon plugins.
|
|
check:
|
|
jobs:
|
|
- horizon-nodejs14-run-lint:
|
|
voting: false
|
|
- horizon-nodejs14-run-test:
|
|
voting: false
|
|
|
|
- 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
|