// "Parse and analyze CI failure logs to identify root causes and error patterns. Use when CI builds fail to understand what broke."
| name | ci-analyze-failure-logs |
| description | Parse and analyze CI failure logs to identify root causes and error patterns. Use when CI builds fail to understand what broke. |
| category | ci |
Parse CI failure logs to identify root causes and categorize errors.
# Download CI logs from artifact
gh run download <run-id> -D /tmp/ci-logs
# Extract from workflow run
gh run view <run-id> --log > /tmp/ci-output.log
# Grep for error patterns
grep -i "error\|failed\|panic\|exception" /tmp/ci-output.log
# Get summary of failures
tail -100 /tmp/ci-output.log | grep -A 5 "FAILED\|ERROR"
Compilation Errors:
error:, undefined, type mismatchTest Failures:
FAILED, AssertionError, ValueErrorTimeout Issues:
timeout, timed out, hangingDependency Issues:
not found, import failed, version conflictEnvironmental Issues:
permission denied, out of memory, disk fullProvide analysis with:
| Problem | Solution |
|---|---|
| Logs not accessible | Use gh run view to check permissions |
| Truncated logs | Download full artifact instead of view |
| Large log files | Use grep to extract relevant sections |
| Encoded artifacts | Unzip and decompress before analysis |