logsnip CLI tool filters CI log noise to surface only relevant stack traces
A developer has released logsnip, a zero-dependency Python command-line tool designed to reduce the effort of debugging failed CI builds. CI logs are often cluttered with thousands of package-install lines, making it difficult to locate the actual error or stack trace. logsnip extracts failure regions from logs while collapsing irrelevant output, supporting patterns from pytest, npm, Rust, TypeScript, GitHub Actions, and make. The tool is pipe-friendly, works offline with no configuration files, and offers flags like --summary for human-readable output and --json for machine consumption. It is available on GitHub under the MIT license and can optionally pair with a companion tool called redactx to redact sensitive data before sharing logs.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in