diff options
author | manchandavishal <manchandavishal143@gmail.com> | 2022-10-19 16:56:40 +0530 |
---|---|---|
committer | Vishal Manchanda <manchandavishal143@gmail.com> | 2022-11-03 07:24:48 +0000 |
commit | eaed7513ced3c10626169ab735e4d2bf3ba6201f (patch) | |
tree | a5ead1f5ae3f3aaf60476870b51fe9a2fe041b01 | |
parent | 28349ee91bb5443224281b4b02dac30922184aff (diff) | |
download | horizon-eaed7513ced3c10626169ab735e4d2bf3ba6201f.tar.gz |
Setup project template for nodejs v18 jobs
This patch defines job for for nodejs v18 which is the
next LTS version of nodejs[1] and also, the runtime for
the 2023.1 cycle[2]. The next step is to remove nodejs v16
jobs once nodejs v18 job passes for the horizon and its plugins.
[1] https://nodejs.org/en/about/releases/
[2] https://governance.openstack.org/tc/reference/runtimes/2023.1.html#node-js-runtime-for-2023-1
Depends-On: https://review.opendev.org/c/openstack/openstack-zuul-jobs/+/861876
Change-Id: I8caabe248b4a454f245aa2eedf36b2d63fd90e92
-rw-r--r-- | .zuul.d/nodejs-jobs.yaml | 32 | ||||
-rw-r--r-- | .zuul.d/project.yaml | 2 | ||||
-rw-r--r-- | .zuul.d/xstatic-master.yaml | 6 |
3 files changed, 40 insertions, 0 deletions
diff --git a/.zuul.d/nodejs-jobs.yaml b/.zuul.d/nodejs-jobs.yaml index 25e7a3f2a..9841454bc 100644 --- a/.zuul.d/nodejs-jobs.yaml +++ b/.zuul.d/nodejs-jobs.yaml @@ -13,6 +13,20 @@ - openstack/requirements - job: + name: horizon-nodejs18-run-lint + parent: nodejs-run-lint + description: | + Run lint using Node 18 for horizon plugins. + vars: + node_version: 18 + 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: | @@ -26,6 +40,20 @@ - openstack/horizon - openstack/requirements +- job: + name: horizon-nodejs18-run-test + parent: nodejs-run-test-browser + description: | + Run test using Node 18 for horizon plugins. + vars: + node_version: 18 + 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-nodejs-jobs description: | @@ -39,7 +67,11 @@ jobs: - horizon-nodejs16-run-lint - horizon-nodejs16-run-test + - horizon-nodejs18-run-lint + - horizon-nodejs18-run-test gate: jobs: - horizon-nodejs16-run-lint - horizon-nodejs16-run-test + - horizon-nodejs18-run-lint + - horizon-nodejs18-run-test diff --git a/.zuul.d/project.yaml b/.zuul.d/project.yaml index 409829018..d5bcedf22 100644 --- a/.zuul.d/project.yaml +++ b/.zuul.d/project.yaml @@ -27,7 +27,9 @@ - horizon-integration-tests-xstatic-master - horizon-tox-py36-xstatic-master - horizon-nodejs16-run-test-xstatic-master + - horizon-nodejs18-run-test-xstatic-master periodic: jobs: - horizon-nodejs16-run-test + - horizon-nodejs18-run-test - horizon-integration-tests diff --git a/.zuul.d/xstatic-master.yaml b/.zuul.d/xstatic-master.yaml index b638ab6f0..501343590 100644 --- a/.zuul.d/xstatic-master.yaml +++ b/.zuul.d/xstatic-master.yaml @@ -35,3 +35,9 @@ parent: horizon-nodejs16-run-test required-projects: *xstatic-projects pre-run: playbooks/npm-test-xstatic-master/pre.yaml + +- job: + name: horizon-nodejs18-run-test-xstatic-master + parent: horizon-nodejs18-run-test + required-projects: *xstatic-projects + pre-run: playbooks/npm-test-xstatic-master/pre.yaml |