跳到正文
DEV Community· Michael Oogwu·· 3 小時前AI 評分53

ci-whisper 從失敗 CI 日誌找出根因並建議修復

Ci log fixing at its best !

AI 導讀

ci-whisper 讀取失敗的 CI 日誌,將根因排在後續連鎖錯誤之前,並列出首個實際錯誤、因果鏈和建議修復方式。

正文

Cover image for Ci log fixing at its best !

Michael Oogwu

Your red build hands you 10k lines. The actual cause is line 4; everything after it is consequence.

ci-whisper reads a failed CI log and ranks signals so the cause outranks its own consequences, then prints the first real error, the causal chain, and a suggested fix.

Three ways to use it:

gh run view --log-failed | ci-whisper
ci-whisper --file build.log
ci-whisper --gh <run-id> --json   # for a bot or agent skill

Exit code 1 when no error signal is found, so you can gate on it in scripts.

Install: pipx install ci-whisper

Repo: https://github.com/mgkvibez/ci-whisper

來源:DEV Community · dev.to