mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2026-11-06 10:59:59 +00:00
The previous regex anchored the `name` capture at line start and used lazy `.+?`, which in production captured the full `<ts> p=<pid> u=<user> n=ansible INFO| <role>` prefix as the role name instead of just `<role>`. The CI step summary then rendered every row with the timestamped log header and the `total` filter silently failed (because `name` was no longer equal to `"total"`). Add an optional non-capturing `(?:.*\bINFO\|\s+)?` group so the ANSIBLE_LOG_PATH prefix is consumed when present and `name` captures just the role token (or `role : task`). Test sample didn't carry the log prefix, so the bug slipped through — add a prefixed-format test. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>