From 6ae123b9ba6292a2fc7e91eb5febfd2ac9386da4 Mon Sep 17 00:00:00 2001 From: Andreas Jaeger Date: Tue, 26 Dec 2017 14:36:03 +0100 Subject: [PATCH] Add native Zuul v3 bindep fallback tests For project-config itself, use native Zuul v3 tests for testing that we can install the bindep list for the used distributions. Note that the new job does not run if the local bindep.txt file or other-requirements.txt is changed since those files are irreleant for this test. This test only tests jenkins/data/bindep-fallback.txt. Since project-config is trusted, we cannot directly test that the jobs work. Therefore add them as experimental - and then test that they work. A followup change will then use these jobs by default. Change-Id: Ia95b73aa955a07840ce9b66ba36a6da821e1d34c --- playbooks/bindep-fallback/run.yaml | 5 +++ zuul.d/jobs.yaml | 70 ++++++++++++++++++++++++++++++ zuul.d/projects.yaml | 10 ++++- 3 files changed, 83 insertions(+), 2 deletions(-) create mode 100644 playbooks/bindep-fallback/run.yaml diff --git a/playbooks/bindep-fallback/run.yaml b/playbooks/bindep-fallback/run.yaml new file mode 100644 index 0000000000..f5ae16564b --- /dev/null +++ b/playbooks/bindep-fallback/run.yaml @@ -0,0 +1,5 @@ +- hosts: all + roles: + - role: bindep + bindep_profile: test + bindep_file: jenkins/data/bindep-fallback.txt diff --git a/zuul.d/jobs.yaml b/zuul.d/jobs.yaml index 7472b6858e..37c5841173 100644 --- a/zuul.d/jobs.yaml +++ b/zuul.d/jobs.yaml @@ -1078,3 +1078,73 @@ - openstack/requirements secrets: - zanata_api_credentials + +- job: + name: project-config-bindep-fallback + description: | + Check installation of binary packages for file + jenkins/data/bindep-fallback.txt. + run: playbooks/bindep-fallback/run.yaml + files: + - jenkins/data/bindep-fallback.txt + - playbooks/bindep-fallback/run.yaml + +- job: + name: project-config-bindep-fallback-centos-7 + parent: project-config-bindep-fallback + description: | + Check installation of binary packages for file + jenkins/data/bindep-fallback.txt. + + The testing is done for CentOS 7. + nodeset: centos-7 + +- job: + name: project-config-bindep-fallback-fedora-26 + parent: project-config-bindep-fallback + description: | + Check installation of binary packages for file + jenkins/data/bindep-fallback.txt. + + The testing is done for Fedora 26. + nodeset: fedora-26 + +- job: + name: project-config-bindep-fallback-debian-jessie + parent: project-config-bindep-fallback + description: | + Check installation of binary packages for file + jenkins/data/bindep-fallback.txt. + + The testing is done for Debian Jessie. + nodeset: debian-jessie + +- job: + name: project-config-bindep-fallback-opensuse-423 + parent: project-config-bindep-fallback + description: | + Check installation of binary packages for file + jenkins/data/bindep-fallback.txt. + + The testing is done for openSUSE Leap 42.3. + nodeset: opensuse-423 + +- job: + name: project-config-bindep-fallback-ubuntu-trusty + parent: project-config-bindep-fallback + description: | + Check installation of binary packages for file + jenkins/data/bindep-fallback.txt. + + The testing is done for Ubuntu Trusty. + nodeset: ubuntu-trusty + +- job: + name: project-config-bindep-fallback-ubuntu-xenial + parent: project-config-bindep-fallback + description: | + Check installation of binary packages for file + jenkins/data/bindep-fallback.txt. + + The testing is done for Ubuntu Xenial. + nodeset: ubuntu-xenial diff --git a/zuul.d/projects.yaml b/zuul.d/projects.yaml index 9d38ea728f..cddf37caa6 100644 --- a/zuul.d/projects.yaml +++ b/zuul.d/projects.yaml @@ -934,8 +934,6 @@ name: openstack-infra/project-config templates: - system-required - # This is the only project that use this pipeline so that - # we can iterate quickly on changes. check: jobs: - build-openstack-specs-site @@ -1037,6 +1035,14 @@ jobs: - propose-project-config-update - project-config-build-openafs-centos + experimental: + jobs: + - project-config-bindep-fallback-centos-7 + - project-config-bindep-fallback-debian-jessie + - project-config-bindep-fallback-fedora-26 + - project-config-bindep-fallback-opensuse-423 + - project-config-bindep-fallback-ubuntu-trusty + - project-config-bindep-fallback-ubuntu-xenial - project: name: openstack-infra/project-config-example