You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit introduces a grep-like feature to the
`print_workflow_run_errors.py` script.
New features:
- Added `--grep-pattern` (`-g`) argument to specify an Extended
Regular Expression (ERE) for searching within fetched logs.
- Added `--grep-context` (`-C`) argument to specify the number of
lines of context to show around matches (default is 5).
Behavior:
- If a grep pattern is provided, the script will use the system `grep`
command to filter the logs of failed steps (or the full job log
if a specific step's log cannot be isolated).
- Output clearly indicates when grep results are shown, the pattern used,
and the context lines.
- Handles cases where `grep` finds no matches or if the `grep` command
itself fails (e.g., not found, bad pattern).
- If no grep pattern is provided, the script defaults to its previous
behavior of printing the last N lines of the log.
0 commit comments