ci: lint the rendered role templates #466

Öppen
öppnade 2026-09-08 23:04:27 +00:00 av supernaut · 0 kommentarer
Ägare

Twelve roles/*/templates/*.sh.j2 and roles/backup-drill/templates/bitborg-backup-drill.py.j2 are linted by nothing. scripts/shellcheck.sh targets scripts/*.sh, and ruff cannot parse Jinja. These run as timers that delete registry packages, boot VMs and restore backups.

Add a script that renders each template with the role defaults (the same approach as scripts/check-alert-rules.py), then runs the shellcheck and ruff wrappers on the output. Wire it into CI and lefthook.

Twelve `roles/*/templates/*.sh.j2` and `roles/backup-drill/templates/bitborg-backup-drill.py.j2` are linted by nothing. `scripts/shellcheck.sh` targets `scripts/*.sh`, and ruff cannot parse Jinja. These run as timers that delete registry packages, boot VMs and restore backups. Add a script that renders each template with the role defaults (the same approach as `scripts/check-alert-rules.py`), then runs the shellcheck and ruff wrappers on the output. Wire it into CI and lefthook.
Logga in för att delta i denna konversation.
Ingen milstolpe
Inga tilldelade
1 deltagare
Notiser
Förfallodatum
Förfallodatumet är ogiltigt eller utanför gränserna. Använd formatet "åååå-mm-dd".

Inget förfallodatum satt.

Beroenden

Inga beroenden satta

Referens
bitborg/bitborg-infra#466
Ingen beskrivning angiven.