From 2438e92c1576b870784c31355ac43a5279223ae3 Mon Sep 17 00:00:00 2001 From: bertiethorpe <84867280+bertiethorpe@users.noreply.github.com> Date: Fri, 29 Aug 2025 12:15:46 +0100 Subject: [PATCH 1/2] pre-hook to copy requirements.yml.last --- environments/.caas/hooks/pre.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/environments/.caas/hooks/pre.yml b/environments/.caas/hooks/pre.yml index 8c99e5953..f171e6b06 100644 --- a/environments/.caas/hooks/pre.yml +++ b/environments/.caas/hooks/pre.yml @@ -63,3 +63,14 @@ - dnf_repos loop: "{{ groups['cluster'] }}" when: dnf_repos_enabled | default(false) | bool + +# Workaround for setup-env.sh not running in CaaS CI, so: +# https://github.com/stackhpc/ansible-slurm-appliance/blob/ba9699267449fba58cd9c04c451759a914fd7144/ansible/validate.yml#L16 +# doesn't break CI +- hosts: localhost + gather_facts: no + tasks: + - name: Prepare requirements.yml.last for galaxy validation + copy: + src: "{{ appliances_repository_root }}/requirements.yml" + dest: "{{ appliances_repository_root }}/requirements.yml.last" From 4e1760e87c0720508a9fb033a97b57045da193ec Mon Sep 17 00:00:00 2001 From: bertiethorpe <84867280+bertiethorpe@users.noreply.github.com> Date: Fri, 29 Aug 2025 14:35:47 +0100 Subject: [PATCH 2/2] remove mention of CI in comments --- environments/.caas/hooks/pre.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/environments/.caas/hooks/pre.yml b/environments/.caas/hooks/pre.yml index f171e6b06..8924dca6c 100644 --- a/environments/.caas/hooks/pre.yml +++ b/environments/.caas/hooks/pre.yml @@ -64,9 +64,9 @@ loop: "{{ groups['cluster'] }}" when: dnf_repos_enabled | default(false) | bool -# Workaround for setup-env.sh not running in CaaS CI, so: +# Workaround for setup-env.sh not running in CaaS environment, so: # https://github.com/stackhpc/ansible-slurm-appliance/blob/ba9699267449fba58cd9c04c451759a914fd7144/ansible/validate.yml#L16 -# doesn't break CI +# doesn't break CaaS platforms - hosts: localhost gather_facts: no tasks: