From 8fba65e2989a8ee4fecee8962c15b390961ef769 Mon Sep 17 00:00:00 2001 From: Daniel Pawlik Date: Fri, 3 Oct 2025 15:23:11 +0200 Subject: [PATCH] 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 --- roles/cifmw_cephadm/molecule/default/molecule.yml | 3 ++- scripts/create_role_molecule.py | 12 +++++++++++- zuul.d/projects.yaml | 2 ++ 3 files changed, 15 insertions(+), 2 deletions(-) diff --git a/roles/cifmw_cephadm/molecule/default/molecule.yml b/roles/cifmw_cephadm/molecule/default/molecule.yml index ed78ad92b2..53a60fa058 100644 --- a/roles/cifmw_cephadm/molecule/default/molecule.yml +++ b/roles/cifmw_cephadm/molecule/default/molecule.yml @@ -1,7 +1,8 @@ --- # Mainly used to override the defaults set in .config/molecule/ # By default, it uses the "config_podman.yml" - in CI, it will use -# "config_local.yml". +# "config_local.yml" +# log: true provisioner: diff --git a/scripts/create_role_molecule.py b/scripts/create_role_molecule.py index c03bf0f072..013633fca9 100755 --- a/scripts/create_role_molecule.py +++ b/scripts/create_role_molecule.py @@ -20,6 +20,10 @@ import logging from jinja2 import Environment, FileSystemLoader +additional_molecule_jobs = [ + "edpm-ansible-molecule-edpm_ovs", + "edpm-ansible-molecule-edpm_update" +] def get_project_paths(project_dir=None): """ @@ -90,7 +94,13 @@ def regenerate_projects_zuul_jobs_yaml(generated_paths): f"cifmw-molecule-{role_directory.name}" ) - with open(generated_paths["zuul_job_dir"] / "projects.yaml", "w") as projects_file: + if additional_molecule_jobs: + for additional_job in additional_molecule_jobs: + projects_jobs_info[0]["project"]["github-check"]["jobs"].append( + additional_job) + + with open(generated_paths["zuul_job_dir"] / "projects.yaml", + "w") as projects_file: yaml.dump(projects_jobs_info, projects_file) diff --git a/zuul.d/projects.yaml b/zuul.d/projects.yaml index 7e94482b1b..b71fd17fa5 100644 --- a/zuul.d/projects.yaml +++ b/zuul.d/projects.yaml @@ -104,6 +104,8 @@ - cifmw-molecule-update_containers - cifmw-molecule-validations - cifmw-molecule-virtualbmc + - edpm-ansible-molecule-edpm_ovs + - edpm-ansible-molecule-edpm_update github-post: jobs: - build-push-container-cifmw-client-post