← 返回
未分类 中文

Ci Failure Fixer

Monitor GitHub Actions CI pipelines for failures and automatically fix common issues. Use when asked to watch CI, fix build failures, monitor GitHub Actions,...
监控 GitHub Actions CI 流水线,检测失败并自动修复常见问题。适用于要求监控 CI、修复构建失败、监视 GitHub Actions 等场景。
danielgrobelny
未分类 clawhub v1.0.0 1 版本 100000 Key: 无需
★ 0
Stars
📥 358
下载
💾 0
安装
1
版本
#latest

概述

CI Failure Fixer

Monitor GitHub Actions for failures. Auto-fix what's fixable, report what's not.

How It Works

  1. scripts/check-ci-failures.sh polls repos for new failed runs
  2. If failures found → read build logs via gh run view --log
  3. Match error against known patterns → auto-fix if safe
  4. Push fix → wait 90s → verify build passes
  5. Report results (fixed or diagnosis-only)

Quick Start

On-demand

bash scripts/check-ci-failures.sh

Output: OK (no failures) or FAILURES with details.

As Cron Job (OpenClaw)

Set up a cron that runs every 30 minutes:

  • Script: bash scripts/check-ci-failures.sh
  • Model: Haiku (cheap, sufficient)
  • On failure: Read logs, attempt auto-fix, report

Configuration

Environment variables:

  • GITHUB_OWNER — GitHub username (auto-detected from gh if not set)
  • CI_REPOS — Space-separated repo names (auto-discovers all repos if not set)
  • CI_STATE_FILE — Path to state JSON (tracks last check time)

Auto-Fixable Patterns

PatternDetectionFix
-------------------------
Dependency issuesnpm ERR! Could not resolvenpm install + push
Test snapshotsSnapshot mismatchnpm test -- --update + push
Lint errorseslint, Formattingeslint --fix + push
E2E snapshotsPlaywright snapshot diffplaywright --update-snapshots + push

Report-Only (Human Needed)

  • Token/auth errors (secrets rotation)
  • TypeScript errors (complex type issues)
  • Build timeouts (resource/loop issues)
  • Unknown errors

Fix Patterns Reference

Read references/fix-patterns.md for detailed decision tree, log reading commands, and all known patterns with fix scripts.

Reading Logs

# Latest failed run logs
gh run view --repo OWNER/REPO --log 2>&1 | tail -50

# Filter for errors
gh run view <run-id> --repo OWNER/REPO --log 2>&1 | grep -A5 "error\|FAIL"

After Fixing

Always verify the fix worked:

sleep 90  # Wait for new CI run
gh run list --repo OWNER/REPO --limit 1 --json conclusion -q '.[0].conclusion'
# Should be "success"

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-05-07 11:06 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

Revealjs Presentations

danielgrobelny
创建、编辑并部署 reveal.js 演示文稿为单个 HTML 文件,可选自定义 CSS。适用于需要制作演示文稿、幻灯片或宣传材料时使用。
★ 1 📥 674

Vercel Staging Workflow

danielgrobelny
使用 GitHub Actions 与稳定的 URL 别名,为 Vercel 项目配置暂存/生产工作流。需创建暂存环境时使用。
★ 0 📥 380

a2e.ai Full Platform

danielgrobelny
a2e.ai 完整 API:图像生成(文生图、NanoBanana、GPT Image、Flux2),视频生成(图生视频(支持 LoRA/FLF2V),视频转视频,Kling 3.0、Wan 2.6、Sora…)
★ 0 📥 332