ci: lint the rendered role templates #777

Sammanfogat
supernaut sammanfogade 1 incheckning från ci/lint-rendered-templates in i main 2026-10-18 11:41:43 +00:00
Ägare

Renders each role *.sh.j2 and *.py.j2 against the role defaults, then runs the pinned shellcheck and ruff wrappers on the output. Runs in CI and the pre-push hook. --self-test proves it fails on bad shell, bad Python and undefined variables.

Fixes the shellcheck findings it surfaced, including a quoting fix in restore-on-scratch.sh.j2. Style-only ruff findings in the backup-drill script are listed in PY_BASELINE_IGNORE for a follow-up.

Closes #466

Renders each role `*.sh.j2` and `*.py.j2` against the role defaults, then runs the pinned shellcheck and ruff wrappers on the output. Runs in CI and the pre-push hook. `--self-test` proves it fails on bad shell, bad Python and undefined variables. Fixes the shellcheck findings it surfaced, including a quoting fix in `restore-on-scratch.sh.j2`. Style-only ruff findings in the backup-drill script are listed in `PY_BASELINE_IGNORE` for a follow-up. Closes #466
supernaut lade till 1 incheckning 2026-10-18 11:18:33 +00:00
ci: lint the rendered role templates
Alla kontroller lyckades
ci / ci (pull_request) Successful in 3m25s
5890d2fc9e
Render every roles/*/templates/*.sh.j2 and *.py.j2 against the role defaults,
then run the pinned shellcheck and ruff wrappers on the output. Runs in CI and
the pre-push hook, with a self-test proving it can fail.

Fix the shellcheck findings it surfaced. Style-only ruff findings in the
backup-drill script are listed in PY_BASELINE_IGNORE.

Closes #466
Upphovsperson
Ägare

Merge after #776. Both edit .forgejo/workflows/ci.yml, so this branch needs a rebase once #776 is on main.

Merge after #776. Both edit `.forgejo/workflows/ci.yml`, so this branch needs a rebase once #776 is on main.
supernaut tvångsskickade ci/lint-rendered-templates från 5890d2fc9e
Alla kontroller lyckades
ci / ci (pull_request) Successful in 3m25s
till bdd62fd714
Alla kontroller lyckades
ci / ci (pull_request) Successful in 3m33s
2026-10-18 11:37:34 +00:00
Jämför
supernaut schemalade den här ändringsförfrågan för automatisk sammanfogning när alla kontroller lyckas 2026-10-18 11:40:49 +00:00
supernaut sammanfogade incheckning fc25d9e52a till main 2026-10-18 11:41:43 +00:00
supernaut tog bort grenen ci/lint-rendered-templates 2026-10-18 11:41:43 +00:00
supernaut refererade denna ändringsförfrågan från en incheckning 2026-10-18 11:41:43 +00:00
Logga in för att delta i denna konversation.
Inga granskare
Ingen milstolpe
Inget projekt
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!777
Ingen beskrivning angiven.