From decb90bf6ec1cb17279eaf11692d41b49daa3855 Mon Sep 17 00:00:00 2001 From: Akihiro Motoki Date: Mon, 27 Jan 2020 07:20:49 +0900 Subject: [PATCH] Experimental tests with xstatic reviews This commit adds experimental jobs to run horizon with the master branches of xstatic repositories. It allows us to test xstatic packages before merging/releasing them. The existing npm jobs do not support sibling installation into the tox env "npm" which is used by the npm jobs. In a new experimental npm job with xstatic master repos, sibling installation is now supported. Note that this change is proposed only to the horizon repo to avoid sending the similar change to many xstatic repos. Change-Id: I5fa29c3af9c896561d1738471b7464a2ea81b7a0 --- .zuul.yaml | 43 ++++++++++++++++++++++ playbooks/npm-test-xstatic-master/pre.yaml | 9 +++++ 2 files changed, 52 insertions(+) create mode 100644 playbooks/npm-test-xstatic-master/pre.yaml diff --git a/.zuul.yaml b/.zuul.yaml index 977ed06908..a5cb6c064d 100644 --- a/.zuul.yaml +++ b/.zuul.yaml @@ -147,6 +147,44 @@ - nodejs10-npm-run-lint - nodejs10-npm-run-test +- job: + name: horizon-integration-tests-xstatic-master + parent: horizon-integration-tests + required-projects: &xstatic-projects + - openstack/horizon + - openstack/xstatic-angular + - openstack/xstatic-angular-bootstrap + - openstack/xstatic-angular-gettext + - openstack/xstatic-angular-lrdragndrop + - openstack/xstatic-angular-smart-table + - openstack/xstatic-bootstrap-datepicker + - openstack/xstatic-bootstrap-scss + - openstack/xstatic-bootswatch + - openstack/xstatic-d3 + - openstack/xstatic-font-awesome + - openstack/xstatic-hogan + - openstack/xstatic-jasmine + - openstack/xstatic-jquery-migrate + - openstack/xstatic-jquery.quicksearch + - openstack/xstatic-jquery.tablesorter + - openstack/xstatic-jsencrypt + - openstack/xstatic-mdi + - openstack/xstatic-rickshaw + - openstack/xstatic-roboto-fontface + - openstack/xstatic-spin + - x/xstatic-angular-fileupload + +- job: + name: horizon-tox-py36-xstatic-master + parent: openstack-tox-py36 + required-projects: *xstatic-projects + +- job: + name: horizon-nodejs10-npm-run-test-xstatic-master + parent: nodejs10-npm-run-test + required-projects: *xstatic-projects + pre-run: playbooks/npm-test-xstatic-master/pre.yaml + - project-template: name: horizon-nodejs10-jobs-nonvoting description: | @@ -193,3 +231,8 @@ - horizon-selenium-headless - horizon-integration-tests - horizon-tempest-plugin-ipv6 + experimental: + jobs: + - horizon-integration-tests-xstatic-master + - horizon-tox-py36-xstatic-master + - horizon-nodejs10-npm-run-test-xstatic-master diff --git a/playbooks/npm-test-xstatic-master/pre.yaml b/playbooks/npm-test-xstatic-master/pre.yaml new file mode 100644 index 0000000000..2adf0abf38 --- /dev/null +++ b/playbooks/npm-test-xstatic-master/pre.yaml @@ -0,0 +1,9 @@ +- hosts: all + roles: + # Ensure sibling packages are installed into "npm" tox env. + # "tox" role installs sibling packages based on required-projects + # configuration in zuul.yaml. + - role: tox + vars: + tox_envlist: npm + tox_extra_args: "-vv --notest"