Skip to content

Commit b1a0fdc

Browse files
committed
DNM Add molecule jobs from edpm-ansible
The edpm-ansible folks would like to run own job also when our changes are related to molecule job. Let's trigger some of they jobs here. Signed-off-by: Daniel Pawlik <[email protected]>
1 parent a57402f commit b1a0fdc

File tree

4 files changed

+18
-0
lines changed

4 files changed

+18
-0
lines changed

ci/playbooks/molecule-test.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,5 +49,6 @@
4949
chdir: "{{ roles_dir }}"
5050
cmd: >-
5151
set -o pipefail;
52+
mkdir -p {{ roles_dir }}/../../group_vars ;
5253
molecule -c {{ mol_config_dir }} test --all |
5354
tee {{ ansible_user_dir }}/ci-framework-data/logs/molecule-execution.log

scripts/create_role_molecule.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,12 @@
2020
import logging
2121
from 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+
]
28+
2329

2430
def get_project_paths(project_dir=None):
2531
"""
@@ -90,6 +96,12 @@ def regenerate_projects_zuul_jobs_yaml(generated_paths):
9096
f"cifmw-molecule-{role_directory.name}"
9197
)
9298

99+
if additional_molecule_jobs:
100+
for additional_job in additional_molecule_jobs:
101+
projects_jobs_info[0]["project"]["github-check"]["jobs"].append(
102+
additional_job
103+
)
104+
93105
with open(generated_paths["zuul_job_dir"] / "projects.yaml", "w") as projects_file:
94106
yaml.dump(projects_jobs_info, projects_file)
95107

zuul.d/molecule-base.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
- ci/playbooks/collect-logs.yml
1616
required-projects:
1717
- github.com/openstack-k8s-operators/install_yamls
18+
- github.com/openstack-k8s-operators/edpm-ansible
1819
vars:
1920
roles_dir: "{{ ansible_user_dir }}/{{ zuul.projects['github.com/openstack-k8s-operators/ci-framework'].src_dir }}/roles/{{ TEST_RUN }}"
2021
mol_config_dir: "{{ ansible_user_dir }}/{{ zuul.projects['github.com/openstack-k8s-operators/ci-framework'].src_dir }}/.config/molecule/config_local.yml"
@@ -33,6 +34,7 @@
3334
- ci/playbooks/collect-logs.yml
3435
required-projects:
3536
- github.com/openstack-k8s-operators/install_yamls
37+
- github.com/openstack-k8s-operators/edpm-ansible
3638
vars:
3739
roles_dir: "{{ ansible_user_dir }}/{{ zuul.projects['github.com/openstack-k8s-operators/ci-framework'].src_dir }}/roles/{{ TEST_RUN }}"
3840
mol_config_dir: "{{ ansible_user_dir }}/{{ zuul.projects['github.com/openstack-k8s-operators/ci-framework'].src_dir }}/.config/molecule/config_local.yml"

zuul.d/projects.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,9 @@
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

0 commit comments

Comments
 (0)