mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2026-11-06 02:54:26 +00:00
Asserts at deploy time that every role declaring `required_by` in its meta/services.yml actually executed (at least one TASK block ending with a non-skip status of `ok` / `changed` / `fatal` / `included`). Catches silent coverage regressions where a once-flag swallows an include before the role's body can run. CLI: `python -m cli.meta.roles.services.called --logfile X --apps a,b,c` Library: `cli.meta.roles.services.called.verify(...)` supports per-pass slicing via `log_byte_offset` and reads either host-side log files or in-container logs when `container=` is given. Hooked into `cli.administration.deploy.development.deploy._run_deploy` so matrix-deploy runs (CI + local make compose-deploy mode=initialize/ reinstall) snapshot the log offset before each compose.exec and verify the resulting slice after rc=0. Defaults ANSIBLE_LOG_PATH to /tmp/infinito-deploy.log so the check also runs locally without env-var setup. Includes 35 self-contained unit tests covering category derivation, TASK-block status parsing (incl. ANSI escape stripping + substring role-id guard + multi-skip edge case), required_role_ids YAML scan, host log slicing with byte offsets, end-to-end verify, and CLI argparse. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
0 lines
0 B
Python
0 lines
0 B
Python
The file is empty.