{"slug": "logsnip-cut-ci-noise-keep-the-stack-traces", "title": "logsnip: cut CI noise, keep the stack traces", "summary": "A developer released logsnip, a zero-dependency Python CLI that extracts failure regions from CI logs and collapses the rest, aiming to cut through the noise of package install lines. The tool supports built-in patterns for common error formats and offers options like --check for CI gating and --json for machine parsing.", "body_md": "Cut the noise. Keep the stack traces.\n\nCI logs are mostly package installs. The failure is a few dozen lines buried under thousands of `Downloading…`\n\nlines. Scrolling for the real stack trace is a tax paid on every red build.\n\n[logsnip](https://github.com/SybilGambleyyu/logsnip) is a zero-dependency Python CLI that extracts those failure regions and collapses the rest.\n\n```\npip install git+https://github.com/SybilGambleyyu/logsnip.git\n# or the whole toolkit:\ncurl -fsSL https://raw.githubusercontent.com/SybilGambleyyu/devkit/main/install.sh | bash\n# Last failure from a GitHub Actions run\ngh run view --log-failed | logsnip --last\n\n# Headlines only\nlogsnip ci-full.log --summary\n\n# Safe to paste into an AI assistant\ngh run view --log-failed | logsnip --last | redactx\n```\n\nBuilt-in patterns cover pytest `E`\n\nlines and `AssertionError`\n\n, `npm ERR!`\n\n, rustc `error[E…]`\n\n, TypeScript `error TS…`\n\n, GitHub Actions `##[error]`\n\n, make failures, and common exit-code messages. Stack frames after a hit are pulled in automatically.\n\n`--check`\n\nexits 1 when error-like lines appear (CI gate)`--json`\n\nfor machines; `--summary`\n\nfor humans in a hurrySource: [github.com/SybilGambleyyu/logsnip](https://github.com/SybilGambleyyu/logsnip) · MIT", "url": "https://wpnews.pro/news/logsnip-cut-ci-noise-keep-the-stack-traces", "canonical_source": "https://dev.to/sybilgambleyyu/logsnip-cut-ci-noise-keep-the-stack-traces-4cpi", "published_at": "2026-07-22 12:46:17+00:00", "updated_at": "2026-07-22 13:00:39.493479+00:00", "lang": "en", "topics": ["developer-tools"], "entities": ["logsnip", "GitHub Actions", "SybilGambleyyu"], "alternates": {"html": "https://wpnews.pro/news/logsnip-cut-ci-noise-keep-the-stack-traces", "markdown": "https://wpnews.pro/news/logsnip-cut-ci-noise-keep-the-stack-traces.md", "text": "https://wpnews.pro/news/logsnip-cut-ci-noise-keep-the-stack-traces.txt", "jsonld": "https://wpnews.pro/news/logsnip-cut-ci-noise-keep-the-stack-traces.jsonld"}}