Main/WordPress Fullstack/Blueprints/AI & Agents/Self-Healing CI/CD in GitHub Actions with Automated Bug Fixes
Back to «AI & Agents» cardsТрудозатраты~10 рабочих часов
Фриланс вилка~$450 – $750 (€400 – €700)
Оценка веб-студии~$950 – $1,600 (€900 – €1500)
ТЗ заказчика (исходный бриф):
“The bot must fix the code, NOT weaken or disable the failing unit tests.”
Ключевые требования:
- •Trigger conditionally on workflow step failure (if: failure())
- •Parse test report logs (Vitest / PHPUnit) into structured JSON format
- •AST extraction of related source files and line ranges for LLM context
- •Prompt engineering for generating minimal, targeted Unified Diff patches
- •Safety guard: automated verification that no test files (*.test.*, *Test.php) were modified
Ограничения проекта:
- •Budget cap: maximum 3 LLM correction attempts per build run
- •Patch size limited to 100 lines of diff
Критерии приёмки (KPI):
- ≥ 60% successful automatic resolution of broken builds
- Mean time to fix < 3 minutes
- Zero manual modifications required on generated PRs
Пошаговое практическое руководство по ТЗ
Подробный разбор архитектуры, код реализации и советы эксперта по каждому этапу: