Trigger molecule tests when modifying CI scripts

Signed-off-by: Gael Chamoulaud (Strider) <gchamoul@redhat.com>
Change-Id: I585d03ad42fc0435c711a02717b2b17c1ec8275b
(cherry picked from commit 7db15e5fe2)
This commit is contained in:
Gael Chamoulaud (Strider) 2021-03-05 15:28:07 +01:00
parent 8bd52a2fba
commit f755757d55
No known key found for this signature in database
GPG Key ID: 4119D0305C651D66
2 changed files with 160 additions and 48 deletions

View File

@ -92,7 +92,10 @@
"name": new_job_name,
"parent": "tripleo-validations-centos-8-base",
"files": [
"^roles/validation_" ~ _role_name ~ "/.*"
"^roles/validation_" ~ _role_name ~ "/.*",
"^tests/prepare-test-host.yml",
"^ci/playbooks/pre.yml",
"^ci/playbooks/run.yml"
],
"vars": {
"tripleo_validations_role_name": "validation_" ~ _role_name

View File

@ -50,7 +50,10 @@
name: tripleo-validations-molecule-jobs
- job:
files:
- ^roles/collect_flavors_and_verify_profiles/.*
- ^roles/collect_flavors_and_verify_profiles/.*
- ^tests/prepare-test-host.yml
- ^ci/playbooks/pre.yml
- ^ci/playbooks/run.yml
name: tripleo-validations-centos-8-molecule-collect_flavors_and_verify_profiles
parent: tripleo-validations-centos-8-base
vars:
@ -58,15 +61,10 @@
voting: false
- job:
files:
- ^roles/ceilometerdb_size/.*
name: tripleo-validations-centos-8-molecule-ceilometerdb_size
parent: tripleo-validations-centos-8-base
vars:
tripleo_validations_role_name: ceilometerdb_size
voting: false
- job:
files:
- ^roles/neutron_sanity_check/.*
- ^roles/neutron_sanity_check/.*
- ^tests/prepare-test-host.yml
- ^ci/playbooks/pre.yml
- ^ci/playbooks/run.yml
name: tripleo-validations-centos-8-molecule-neutron_sanity_check
parent: tripleo-validations-centos-8-base
vars:
@ -74,7 +72,10 @@
voting: false
- job:
files:
- ^roles/node_health/.*
- ^roles/node_health/.*
- ^tests/prepare-test-host.yml
- ^ci/playbooks/pre.yml
- ^ci/playbooks/run.yml
name: tripleo-validations-centos-8-molecule-node_health
parent: tripleo-validations-centos-8-base
vars:
@ -82,7 +83,10 @@
voting: false
- job:
files:
- ^roles/nova_event_callback/.*
- ^roles/nova_event_callback/.*
- ^tests/prepare-test-host.yml
- ^ci/playbooks/pre.yml
- ^ci/playbooks/run.yml
name: tripleo-validations-centos-8-molecule-nova_event_callback
parent: tripleo-validations-centos-8-base
vars:
@ -90,7 +94,10 @@
voting: false
- job:
files:
- ^roles/ovs_dpdk_pmd/.*
- ^roles/ovs_dpdk_pmd/.*
- ^tests/prepare-test-host.yml
- ^ci/playbooks/pre.yml
- ^ci/playbooks/run.yml
name: tripleo-validations-centos-8-molecule-ovs_dpdk_pmd
parent: tripleo-validations-centos-8-base
vars:
@ -98,7 +105,10 @@
voting: false
- job:
files:
- ^roles/pacemaker_status/.*
- ^roles/pacemaker_status/.*
- ^tests/prepare-test-host.yml
- ^ci/playbooks/pre.yml
- ^ci/playbooks/run.yml
name: tripleo-validations-centos-8-molecule-pacemaker_status
parent: tripleo-validations-centos-8-base
vars:
@ -106,7 +116,10 @@
voting: false
- job:
files:
- ^roles/stack_health/.*
- ^roles/stack_health/.*
- ^tests/prepare-test-host.yml
- ^ci/playbooks/pre.yml
- ^ci/playbooks/run.yml
name: tripleo-validations-centos-8-molecule-stack_health
parent: tripleo-validations-centos-8-base
vars:
@ -114,7 +127,10 @@
voting: false
- job:
files:
- ^roles/switch_vlans/.*
- ^roles/switch_vlans/.*
- ^tests/prepare-test-host.yml
- ^ci/playbooks/pre.yml
- ^ci/playbooks/run.yml
name: tripleo-validations-centos-8-molecule-switch_vlans
parent: tripleo-validations-centos-8-base
vars:
@ -122,7 +138,10 @@
voting: false
- job:
files:
- ^roles/tls_everywhere/.*
- ^roles/tls_everywhere/.*
- ^tests/prepare-test-host.yml
- ^ci/playbooks/pre.yml
- ^ci/playbooks/run.yml
name: tripleo-validations-centos-8-molecule-tls_everywhere
parent: tripleo-validations-centos-8-base
vars:
@ -130,7 +149,10 @@
voting: true
- job:
files:
- ^roles/undercloud_process_count/.*
- ^roles/undercloud_process_count/.*
- ^tests/prepare-test-host.yml
- ^ci/playbooks/pre.yml
- ^ci/playbooks/run.yml
name: tripleo-validations-centos-8-molecule-undercloud_process_count
parent: tripleo-validations-centos-8-base
vars:
@ -138,7 +160,10 @@
voting: false
- job:
files:
- ^roles/openstack_endpoints/.*
- ^roles/openstack_endpoints/.*
- ^tests/prepare-test-host.yml
- ^ci/playbooks/pre.yml
- ^ci/playbooks/run.yml
name: tripleo-validations-centos-8-molecule-openstack_endpoints
parent: tripleo-validations-centos-8-base
vars:
@ -146,7 +171,10 @@
voting: false
- job:
files:
- ^roles/openshift_on_openstack/.*
- ^roles/openshift_on_openstack/.*
- ^tests/prepare-test-host.yml
- ^ci/playbooks/pre.yml
- ^ci/playbooks/run.yml
name: tripleo-validations-centos-8-molecule-openshift_on_openstack
parent: tripleo-validations-centos-8-base
vars:
@ -154,7 +182,10 @@
voting: false
- job:
files:
- ^roles/node_disks/.*
- ^roles/node_disks/.*
- ^tests/prepare-test-host.yml
- ^ci/playbooks/pre.yml
- ^ci/playbooks/run.yml
name: tripleo-validations-centos-8-molecule-node_disks
parent: tripleo-validations-centos-8-base
vars:
@ -162,7 +193,10 @@
voting: false
- job:
files:
- ^roles/container_status/.*
- ^roles/container_status/.*
- ^tests/prepare-test-host.yml
- ^ci/playbooks/pre.yml
- ^ci/playbooks/run.yml
name: tripleo-validations-centos-8-molecule-container_status
parent: tripleo-validations-centos-8-base
vars:
@ -170,7 +204,10 @@
voting: false
- job:
files:
- ^roles/healthcheck_service_status/.*
- ^roles/healthcheck_service_status/.*
- ^tests/prepare-test-host.yml
- ^ci/playbooks/pre.yml
- ^ci/playbooks/run.yml
name: tripleo-validations-centos-8-molecule-healthcheck_service_status
parent: tripleo-validations-centos-8-base
vars:
@ -178,7 +215,10 @@
voting: false
- job:
files:
- ^roles/ironic_boot_configuration/.*
- ^roles/ironic_boot_configuration/.*
- ^tests/prepare-test-host.yml
- ^ci/playbooks/pre.yml
- ^ci/playbooks/run.yml
name: tripleo-validations-centos-8-molecule-ironic_boot_configuration
parent: tripleo-validations-centos-8-base
vars:
@ -186,7 +226,10 @@
voting: false
- job:
files:
- ^roles/mysql_open_files_limit/.*
- ^roles/mysql_open_files_limit/.*
- ^tests/prepare-test-host.yml
- ^ci/playbooks/pre.yml
- ^ci/playbooks/run.yml
name: tripleo-validations-centos-8-molecule-mysql_open_files_limit
parent: tripleo-validations-centos-8-base
vars:
@ -194,7 +237,10 @@
voting: false
- job:
files:
- ^roles/network_environment/.*
- ^roles/network_environment/.*
- ^tests/prepare-test-host.yml
- ^ci/playbooks/pre.yml
- ^ci/playbooks/run.yml
name: tripleo-validations-centos-8-molecule-network_environment
parent: tripleo-validations-centos-8-base
vars:
@ -202,7 +248,10 @@
voting: false
- job:
files:
- ^roles/dhcp_validations/.*
- ^roles/dhcp_validations/.*
- ^tests/prepare-test-host.yml
- ^ci/playbooks/pre.yml
- ^ci/playbooks/run.yml
name: tripleo-validations-centos-8-molecule-dhcp_validations
parent: tripleo-validations-centos-8-base
vars:
@ -210,49 +259,70 @@
voting: false
- job:
files:
- ^roles/controller_token/.*
- ^roles/controller_token/.*
- ^tests/prepare-test-host.yml
- ^ci/playbooks/pre.yml
- ^ci/playbooks/run.yml
name: tripleo-validations-centos-8-molecule-controller_token
parent: tripleo-validations-centos-8-base
vars:
tripleo_validations_role_name: controller_token
- job:
files:
- ^roles/controller_ulimits/.*
- ^roles/controller_ulimits/.*
- ^tests/prepare-test-host.yml
- ^ci/playbooks/pre.yml
- ^ci/playbooks/run.yml
name: tripleo-validations-centos-8-molecule-controller_ulimits
parent: tripleo-validations-centos-8-base
vars:
tripleo_validations_role_name: controller_ulimits
- job:
files:
- ^roles/ctlplane_ip_range/.*
- ^roles/ctlplane_ip_range/.*
- ^tests/prepare-test-host.yml
- ^ci/playbooks/pre.yml
- ^ci/playbooks/run.yml
name: tripleo-validations-centos-8-molecule-ctlplane_ip_range
parent: tripleo-validations-centos-8-base
vars:
tripleo_validations_role_name: ctlplane_ip_range
- job:
files:
- ^roles/repos/.*
- ^roles/repos/.*
- ^tests/prepare-test-host.yml
- ^ci/playbooks/pre.yml
- ^ci/playbooks/run.yml
name: tripleo-validations-centos-8-molecule-repos
parent: tripleo-validations-centos-8-base
vars:
tripleo_validations_role_name: repos
- job:
files:
- ^roles/undercloud_debug/.*
- ^roles/undercloud_debug/.*
- ^tests/prepare-test-host.yml
- ^ci/playbooks/pre.yml
- ^ci/playbooks/run.yml
name: tripleo-validations-centos-8-molecule-undercloud_debug
parent: tripleo-validations-centos-8-base
vars:
tripleo_validations_role_name: undercloud_debug
- job:
files:
- ^roles/nova_status/.*
- ^roles/nova_status/.*
- ^tests/prepare-test-host.yml
- ^ci/playbooks/pre.yml
- ^ci/playbooks/run.yml
name: tripleo-validations-centos-8-molecule-nova_status
parent: tripleo-validations-centos-8-base
vars:
tripleo_validations_role_name: nova_status
- job:
files:
- ^roles/image_serve/.*
- ^roles/image_serve/.*
- ^tests/prepare-test-host.yml
- ^ci/playbooks/pre.yml
- ^ci/playbooks/run.yml
name: tripleo-validations-centos-8-molecule-image_serve
parent: tripleo-validations-centos-8-base
vars:
@ -260,91 +330,130 @@
voting: false
- job:
files:
- ^roles/check_network_gateway/.*
- ^roles/check_network_gateway/.*
- ^tests/prepare-test-host.yml
- ^ci/playbooks/pre.yml
- ^ci/playbooks/run.yml
name: tripleo-validations-centos-8-molecule-check_network_gateway
parent: tripleo-validations-centos-8-base
vars:
tripleo_validations_role_name: check_network_gateway
- job:
files:
- ^roles/undercloud_heat_purge_deleted/.*
- ^roles/undercloud_heat_purge_deleted/.*
- ^tests/prepare-test-host.yml
- ^ci/playbooks/pre.yml
- ^ci/playbooks/run.yml
name: tripleo-validations-centos-8-molecule-undercloud_heat_purge_deleted
parent: tripleo-validations-centos-8-base
vars:
tripleo_validations_role_name: undercloud_heat_purge_deleted
- job:
files:
- ^roles/undercloud_tokenflush/.*
- ^roles/undercloud_tokenflush/.*
- ^tests/prepare-test-host.yml
- ^ci/playbooks/pre.yml
- ^ci/playbooks/run.yml
name: tripleo-validations-centos-8-molecule-undercloud_tokenflush
parent: tripleo-validations-centos-8-base
vars:
tripleo_validations_role_name: undercloud_tokenflush
- job:
files:
- ^roles/rabbitmq_limits/.*
- ^roles/rabbitmq_limits/.*
- ^tests/prepare-test-host.yml
- ^ci/playbooks/pre.yml
- ^ci/playbooks/run.yml
name: tripleo-validations-centos-8-molecule-rabbitmq_limits
parent: tripleo-validations-centos-8-base
vars:
tripleo_validations_role_name: rabbitmq_limits
- job:
files:
- ^roles/stonith_exists/.*
- ^roles/stonith_exists/.*
- ^tests/prepare-test-host.yml
- ^ci/playbooks/pre.yml
- ^ci/playbooks/run.yml
name: tripleo-validations-centos-8-molecule-stonith_exists
parent: tripleo-validations-centos-8-base
vars:
tripleo_validations_role_name: stonith_exists
- job:
files:
- ^roles/ceph/.*
- ^roles/ceph/.*
- ^tests/prepare-test-host.yml
- ^ci/playbooks/pre.yml
- ^ci/playbooks/run.yml
name: tripleo-validations-centos-8-molecule-ceph
parent: tripleo-validations-centos-8-base
vars:
tripleo_validations_role_name: ceph
- job:
files:
- ^roles/system_encoding/.*
- ^roles/system_encoding/.*
- ^tests/prepare-test-host.yml
- ^ci/playbooks/pre.yml
- ^ci/playbooks/run.yml
name: tripleo-validations-centos-8-molecule-system_encoding
parent: tripleo-validations-centos-8-base
vars:
tripleo_validations_role_name: system_encoding
- job:
files:
- ^roles/nova_svirt/.*
- ^roles/nova_svirt/.*
- ^tests/prepare-test-host.yml
- ^ci/playbooks/pre.yml
- ^ci/playbooks/run.yml
name: tripleo-validations-centos-8-molecule-nova_svirt
parent: tripleo-validations-centos-8-base
vars:
tripleo_validations_role_name: nova_svirt
- job:
files:
- ^roles/package_version/.*
- ^roles/package_version/.*
- ^tests/prepare-test-host.yml
- ^ci/playbooks/pre.yml
- ^ci/playbooks/run.yml
name: tripleo-validations-centos-8-molecule-package_version
parent: tripleo-validations-centos-8-base
vars:
tripleo_validations_role_name: package_version
- job:
files:
- ^roles/check_kernel_version/.*
- ^roles/check_kernel_version/.*
- ^tests/prepare-test-host.yml
- ^ci/playbooks/pre.yml
- ^ci/playbooks/run.yml
name: tripleo-validations-centos-8-molecule-check_kernel_version
parent: tripleo-validations-centos-8-base
vars:
tripleo_validations_role_name: check_kernel_version
- job:
files:
- ^roles/check_rhsm_version/.*
- ^roles/check_rhsm_version/.*
- ^tests/prepare-test-host.yml
- ^ci/playbooks/pre.yml
- ^ci/playbooks/run.yml
name: tripleo-validations-centos-8-molecule-check_rhsm_version
parent: tripleo-validations-centos-8-base
vars:
tripleo_validations_role_name: check_rhsm_version
- job:
files:
- ^roles/check_undercloud_conf/.*
- ^roles/check_undercloud_conf/.*
- ^tests/prepare-test-host.yml
- ^ci/playbooks/pre.yml
- ^ci/playbooks/run.yml
name: tripleo-validations-centos-8-molecule-check_undercloud_conf
parent: tripleo-validations-centos-8-base
vars:
tripleo_validations_role_name: check_undercloud_conf
- job:
files:
- ^roles/overcloud_service_status/.*
- ^roles/overcloud_service_status/.*
- ^tests/prepare-test-host.yml
- ^ci/playbooks/pre.yml
- ^ci/playbooks/run.yml
name: tripleo-validations-centos-8-molecule-overcloud_service_status
parent: tripleo-validations-centos-8-base
vars: