How raj-glitch-max/ai-driven-self-healing-cicd works
This is an AI-driven CI failure repair platform. The documented workflow starts when Jenkins triggers the healer: it reads test logs, extracts failure context, asks an LLM for a code fix, then applies the change through Git operations and opens a pull request. A separate Flask service exposes health and example API routes plus Prometheus metrics. Monitoring is a documented capability, but its runtime wiring is not shown in the sampled source; monitoring links are therefore left unasserted. The agent’s control flow is only partially excerpted, so its documented calls are cited to the README.
Main entry points: agent.py Healer agent · llm_client.py LLM client · git_ops.py Git operations · main.py Flask API
Components 14
Healing workflow
- Healer agent
healer/agent.py - Failure parser
healer/log_parser.py - LLM client
healer/llm_client.py - Git operations
healer/git_ops.py - Healer configuration
healer/config.py - Healing demo
scripts/demo.py
External services
- OpenAI GPT-4
- GitHub
Application service
- Flask API
app/main.py
Monitoring
- Prometheus
monitoring/prometheus.yml - Grafana dashboards
monitoring/grafana/dashboards/dashboard.yml
Other components
- Jenkins CI
Jenkinsfile - Build workspace
- API caller
Connections 13
- Jenkins CI → Healer agent: triggers
README.md - Healer agent → Build workspace: reads logs and code
healer/agent.py - Healer agent → Failure parser: parses failures
healer/agent.py - Healer agent → LLM client: requests fixes
healer/agent.py - Healer agent → Git operations: applies fix and opens PR
healer/agent.py - LLM client → OpenAI GPT-4: requests analysis
healer/llm_client.py - Git operations → GitHub: creates pull request
healer/git_ops.py - LLM client → Healer configuration: reads settings
healer/llm_client.py - Git operations → Healer configuration: reads settings
healer/git_ops.py - API caller → Flask API: calls routes
app/main.py - Flask API → Prometheus: exposes scrape metrics
app/main.py - Prometheus → Grafana dashboards
- Healing demo → Failure parser: parses demo logs
scripts/demo.py