feat(ci): add CI Failure Doctor workflow#340
Conversation
Co-authored-by: Mossaka <5447827+Mossaka@users.noreply.github.com>
Co-authored-by: Mossaka <5447827+Mossaka@users.noreply.github.com>
.github/workflows/ci-doctor.md
Outdated
|
|
||
| on: | ||
| workflow_run: | ||
| workflows: ["TypeScript Type Check", "Test Coverage", "Test Setup Action", "Examples Test"] |
There was a problem hiding this comment.
@copilot can you just run for every workflows in this repo? Is there a "*" syntax in agentic workflows?
There was a problem hiding this comment.
GitHub Actions workflow_run doesn't support wildcards - each workflow must be listed explicitly. Updated to list all 23 workflows in the repo in 1c080d6.
.github/workflows/ci-doctor.md
Outdated
| - **Head SHA**: ${{ github.event.workflow_run.head_sha }} | ||
| - **Head Branch**: ${{ github.event.workflow_run.head_branch }} | ||
|
|
||
| ## Investigation Protocol |
There was a problem hiding this comment.
@copilot modify the instructions to make it much more concise. the instructions should be generally vague and not be specific, to allow the agent to have the maximam degree of freedom to explore by itself to discover insights, instead of instructing the agent to follow a rigid structure.
There was a problem hiding this comment.
Simplified the instructions from 268 lines to ~40 lines. Now provides just context, a 5-step mission, key patterns to watch for, and expected output format. Agent has full freedom to explore and discover insights. See 1c080d6.
Co-authored-by: Mossaka <5447827+Mossaka@users.noreply.github.com>
Co-authored-by: Mossaka <5447827+Mossaka@users.noreply.github.com>
Creates an automated CI Failure Doctor workflow that investigates CI/CD failures, analyzes logs, identifies root causes, and creates investigation issues.
Changes Made
.github/workflows/ci-doctor.md- an agentic workflow that:workflow_runcompletion for all 23 workflows in the repository (GitHub Actions doesn't support wildcards)conclusion == 'failure'bug,ciDesign Decisions
workflow_run, all workflow names are explicitly listed with a maintenance commentConfiguration
Original prompt
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.