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 - name: Validate DAGs
run: | run: |
for dag in $(find ${DAGS_PATH} -type f -name "*.yaml" -a ! -name "*example*"); do for dag in $(find ${DAGS_PATH} -type f -name "*.yaml" -a ! -name "*example*"); do
echo "Validating ${dag}..." echo "========Validating ${dag}========"
dagu dry "${dag}" dagu dry "${dag}"
done done
+8 -7
View File
@@ -26,14 +26,15 @@
ansible.builtin.set_fact: ansible.builtin.set_fact:
vault_keys: >- vault_keys: >-
{{ {{
( dag_templates
dag_templates | map('file', 'r')
| map('file', 'r') | select('string')
| map('regex_findall', | map('regex_findall',
"lookup\\('community.hashi_vault.vault_kv2_get',\\s*'[^']+',\\s*engine_mount_point='[^']+',\\s*url=[^,]+,\\s*token=[^\\)]+\\)\\['secret'\\]\\['([^']+)'\\]") "lookup\\('community.hashi_vault.vault_kv2_get',\\s*'[^']+',\\s*engine_mount_point='[^']+',\\s*url=[^,]+,\\s*token=[^\\)]+\\)\\['secret'\\]\\['([^']+)'\\]")
| list | sum(start=[])
) | default([])
}} }}
when: dag_templates | length > 0
- name: Warn if any Vault keys might be missing - name: Warn if any Vault keys might be missing
loop: "{{ vault_keys }}" loop: "{{ vault_keys }}"