From eaed7513ced3c10626169ab735e4d2bf3ba6201f Mon Sep 17 00:00:00 2001 From: manchandavishal Date: Wed, 19 Oct 2022 16:56:40 +0530 Subject: [PATCH] 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 --- .zuul.d/nodejs-jobs.yaml | 32 ++++++++++++++++++++++++++++++++ .zuul.d/project.yaml | 2 ++ .zuul.d/xstatic-master.yaml | 6 ++++++ 3 files changed, 40 insertions(+) diff --git a/.zuul.d/nodejs-jobs.yaml b/.zuul.d/nodejs-jobs.yaml index 25e7a3f2ae..9841454bc9 100644 --- a/.zuul.d/nodejs-jobs.yaml +++ b/.zuul.d/nodejs-jobs.yaml @@ -12,6 +12,20 @@ - openstack/horizon - 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 @@ -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 4098290186..d5bcedf22b 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 b638ab6f06..5013435900 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