Tweaks for DAG-related items.
Validate DAGs / validate (push) Failing after 45s

This commit is contained in:
2025-09-13 22:07:24 -04:00
parent 99cb109fb4
commit 4fd3238857
2 changed files with 9 additions and 8 deletions
+1 -1
View File
@@ -49,6 +49,6 @@ jobs:
- name: Validate DAGs
run: |
for dag in $(find ${DAGS_PATH} -type f -name "*.yaml" -a ! -name "*example*"); do
echo "Validating ${dag}..."
echo "========Validating ${dag}========"
dagu dry "${dag}"
done
+8 -7
View File
@@ -26,14 +26,15 @@
ansible.builtin.set_fact:
vault_keys: >-
{{
(
dag_templates
| map('file', 'r')
| map('regex_findall',
"lookup\\('community.hashi_vault.vault_kv2_get',\\s*'[^']+',\\s*engine_mount_point='[^']+',\\s*url=[^,]+,\\s*token=[^\\)]+\\)\\['secret'\\]\\['([^']+)'\\]")
| list
) | default([])
dag_templates
| map('file', 'r')
| select('string')
| map('regex_findall',
"lookup\\('community.hashi_vault.vault_kv2_get',\\s*'[^']+',\\s*engine_mount_point='[^']+',\\s*url=[^,]+,\\s*token=[^\\)]+\\)\\['secret'\\]\\['([^']+)'\\]")
| sum(start=[])
}}
when: dag_templates | length > 0
- name: Warn if any Vault keys might be missing
loop: "{{ vault_keys }}"