From 3f2adabf16e78ea1f7dbbec0c45bd10235d89339 Mon Sep 17 00:00:00 2001 From: manchandavishal Date: Wed, 31 Mar 2021 15:28:43 +0530 Subject: [PATCH] Setup project-template for nodejs14 jobs Nodejs10 is going to EOL by April 2021 [1]. So this patch defines a template for nodejs14 jobs which is next LTS vesrion of nodejs. Once we migrate to nodejs14 version we can drop nodejs10 support. [1] https://nodejs.org/en/about/releases/ Change-Id: I423e8bbec21ab1d52a0a840d779723aa92678735 --- .zuul.d/nodejs-jobs.yaml | 51 +++++++++++++++++++++++++++++++++++++ .zuul.d/project.yaml | 3 +++ .zuul.d/xstatic-master.yaml | 6 +++++ 3 files changed, 60 insertions(+) diff --git a/.zuul.d/nodejs-jobs.yaml b/.zuul.d/nodejs-jobs.yaml index 4273829d93..a05d110be1 100644 --- a/.zuul.d/nodejs-jobs.yaml +++ b/.zuul.d/nodejs-jobs.yaml @@ -25,6 +25,33 @@ required-projects: - openstack/horizon - openstack/requirements +- 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 - project-template: name: horizon-nodejs10-jobs @@ -49,3 +76,27 @@ voting: false - horizon-nodejs10-run-test: voting: false + +- 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 diff --git a/.zuul.d/project.yaml b/.zuul.d/project.yaml index 05578fc059..d12bb9f96e 100644 --- a/.zuul.d/project.yaml +++ b/.zuul.d/project.yaml @@ -3,6 +3,7 @@ - check-requirements - horizon-cross-jobs - horizon-nodejs10-jobs + - horizon-nodejs14-jobs - horizon-non-primary-django-jobs - openstack-lower-constraints-jobs - openstack-python3-wallaby-jobs @@ -28,7 +29,9 @@ - horizon-integration-tests-xstatic-master - horizon-tox-py36-xstatic-master - horizon-nodejs10-run-test-xstatic-master + - horizon-nodejs14-run-test-xstatic-master periodic: jobs: - horizon-nodejs10-run-test + - horizon-nodejs14-run-test - horizon-integration-tests diff --git a/.zuul.d/xstatic-master.yaml b/.zuul.d/xstatic-master.yaml index 47c366ea65..38fcedecb1 100644 --- a/.zuul.d/xstatic-master.yaml +++ b/.zuul.d/xstatic-master.yaml @@ -35,3 +35,9 @@ parent: horizon-nodejs10-run-test required-projects: *xstatic-projects pre-run: playbooks/npm-test-xstatic-master/pre.yaml + +- job: + name: horizon-nodejs14-run-test-xstatic-master + parent: horizon-nodejs14-run-test + required-projects: *xstatic-projects + pre-run: playbooks/npm-test-xstatic-master/pre.yaml