File tree Expand file tree Collapse file tree 5 files changed +27
-2
lines changed
roles/cifmw_cephadm/molecule/default Expand file tree Collapse file tree 5 files changed +27
-2
lines changed Original file line number Diff line number Diff line change 22- name : " Run ci/playbooks/molecule-test.yml"
33 hosts : " {{ cifmw_zuul_target_host | default('controller') }}"
44 gather_facts : false
5+ vars :
6+ zuul :
7+ branch : main
8+ items :
9+ - project :
10+ short_name : ci-framework
11+ name : openstack-k8s-operators/ci-framework
12+ src_dir : src/github.com/openstack-k8s-operators/ci-framework
513 tasks :
614 - name : Gather required facts
715 ansible.builtin.setup :
Original file line number Diff line number Diff line change 11---
22# Mainly used to override the defaults set in .config/molecule/
33# By default, it uses the "config_podman.yml" - in CI, it will use
4- # "config_local.yml".
4+ # "config_local.yml"
5+ #
56log : true
67
78provisioner :
Original file line number Diff line number Diff line change 2020import logging
2121from jinja2 import Environment , FileSystemLoader
2222
23+ additional_molecule_jobs = [
24+ "edpm-ansible-molecule-edpm_kernel" ,
25+ "edpm-ansible-molecule-edpm_podman" ,
26+ "edpm-ansible-molecule-edpm_ovs" ,
27+ ]
2328
2429def get_project_paths (project_dir = None ):
2530 """
@@ -90,7 +95,13 @@ def regenerate_projects_zuul_jobs_yaml(generated_paths):
9095 f"cifmw-molecule-{ role_directory .name } "
9196 )
9297
93- with open (generated_paths ["zuul_job_dir" ] / "projects.yaml" , "w" ) as projects_file :
98+ if additional_molecule_jobs :
99+ for additional_job in additional_molecule_jobs :
100+ projects_jobs_info [0 ]["project" ]["github-check" ]["jobs" ].append (
101+ additional_job )
102+
103+ with open (generated_paths ["zuul_job_dir" ] / "projects.yaml" ,
104+ "w" ) as projects_file :
94105 yaml .dump (projects_jobs_info , projects_file )
95106
96107
Original file line number Diff line number Diff line change 1414 - ci/playbooks/collect-logs.yml
1515 required-projects :
1616 - github.com/openstack-k8s-operators/install_yamls
17+ - github.com/openstack-k8s-operators/edpm-ansible
1718 vars :
1819 roles_dir : " {{ ansible_user_dir }}/{{ zuul.projects['github.com/openstack-k8s-operators/ci-framework'].src_dir }}/roles/{{ TEST_RUN }}"
1920 mol_config_dir : " {{ ansible_user_dir }}/{{ zuul.projects['github.com/openstack-k8s-operators/ci-framework'].src_dir }}/.config/molecule/config_local.yml"
3233 - ci/playbooks/collect-logs.yml
3334 required-projects :
3435 - github.com/openstack-k8s-operators/install_yamls
36+ - github.com/openstack-k8s-operators/edpm-ansible
3537 vars :
3638 roles_dir : " {{ ansible_user_dir }}/{{ zuul.projects['github.com/openstack-k8s-operators/ci-framework'].src_dir }}/roles/{{ TEST_RUN }}"
3739 mol_config_dir : " {{ ansible_user_dir }}/{{ zuul.projects['github.com/openstack-k8s-operators/ci-framework'].src_dir }}/.config/molecule/config_local.yml"
Original file line number Diff line number Diff line change 104104 - cifmw-molecule-update_containers
105105 - cifmw-molecule-validations
106106 - cifmw-molecule-virtualbmc
107+ - edpm-ansible-molecule-edpm_kernel
108+ - edpm-ansible-molecule-edpm_podman
109+ - edpm-ansible-molecule-edpm_ovs
107110 github-post :
108111 jobs :
109112 - build-push-container-cifmw-client-post
You can’t perform that action at this time.
0 commit comments