[DO NOT MERGE] feat: Add Self-Healing CI Infrastructure#432
Open
vibhutikumar07 wants to merge 14 commits intodevelopfrom
Open
[DO NOT MERGE] feat: Add Self-Healing CI Infrastructure#432vibhutikumar07 wants to merge 14 commits intodevelopfrom
vibhutikumar07 wants to merge 14 commits intodevelopfrom
Conversation
- Add self-healing workflow that monitors all workflow failures - Add failure analysis script to classify and diagnose issues - Add auto-fix script for common workflow problems - Add test workflow for manual testing before merge - Add configuration file to control behavior Supports: - Automatic retry for infrastructure failures - Issue creation with diagnosis for code/quality failures - PR creation for workflow fixes (in auto-fix mode) - PR comments with failure analysis
- Remove deprecated ::set-output command from analyze-failure.js - Use GITHUB_OUTPUT environment file only (modern approach) - Update test simulations to avoid ##[error] annotations in output - Tests now display cleanly without false error/warning annotations
- Creates real GitHub issues to demonstrate self-healing capability - Tests quality_gate scenario by default on push - Simulates log analysis and generates diagnosis - Proves the full self-healing cycle works before merge
- Remove inline comments from choice options - Use heredoc with body-file for multiline issue body
Two scenarios: 1. Auto-Fix: Creates broken workflow with deprecated actions, detects issues, applies fixes, creates PR 2. Manual Intervention: Simulates quality gate failure, generates diagnosis & recommendations, creates issue This demonstrates the full self-healing cycle.
Git diff doesn't work on newly created (untracked) files. Fixed by checking if v4 actions are present in the file after fix.
PR creation requires workflows permission which isn't available from feature branch. Creating issue to document the fix instead.
Changed from creating issues to creating actual PRs: - Uses config file instead of workflow file (avoids workflows permission issue) - Creates broken config → applies fix → creates PR with changes - Demonstrates full self-healing PR creation flow
Changed auto-fix scenario to create issues instead of PRs to avoid repository permission restrictions
Removing E2E and unit test workflows used for validation. Only keeping production self-healing infrastructure.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Self-Healing CI Infrastructure
This PR adds an automated self-healing system for GitHub Actions workflows that detects failures, diagnoses root causes, and takes corrective actions.
Files Added
Features