fix(integration): exclude transient .run/ from linters; --- in generated inventory

Running the harness leaves tests/integration/.run/ (gitignored, generated); exclude it from yamllint + ansible-lint so a post-run 'make lint' passes. Also emit a --- doc-start in the generated inventory.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
sjat 2026-06-18 16:44:12 +02:00
parent c7194ca147
commit 051c040343
3 changed files with 3 additions and 0 deletions

View file

@ -6,6 +6,7 @@ exclude_paths:
- .venv/ - .venv/
- .collections/ - .collections/
- .scaffold/ - .scaffold/
- tests/integration/.run/ # transient harness run dir (gitignored, generated)
- "**/vault.yml" # ansible-vault encrypted — not lintable YAML - "**/vault.yml" # ansible-vault encrypted — not lintable YAML
# Warn only (don't fail) on these rules during initial setup # Warn only (don't fail) on these rules during initial setup

View file

@ -24,4 +24,5 @@ ignore: |
.venv/ .venv/
.collections/ .collections/
.scaffold/ .scaffold/
tests/integration/.run/
**/vault.yml **/vault.yml

View file

@ -94,6 +94,7 @@ def profile_path(host):
def render_run_hosts(name, ip, ansible_user, groups): def render_run_hosts(name, ip, ansible_user, groups):
lines = [ lines = [
"---",
"# Generated by scripts/integration-vm.py — transient, gitignored. Do not edit.", "# Generated by scripts/integration-vm.py — transient, gitignored. Do not edit.",
"# Single test host ONLY (safety invariant: no real host is ever in scope).", "# Single test host ONLY (safety invariant: no real host is ever in scope).",
"all:", "all:",