-
Notifications
You must be signed in to change notification settings - Fork 2
Add automated Claude workflow for test failure analysis #200
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
Important Review skippedBot user detected. To trigger a single review, invoke the You can disable this status message by setting the ✨ Finishing touches🧪 Generate unit tests (beta)
Comment |
Co-authored-by: strawgate <6384545+strawgate@users.noreply.github.com>
|
Please retry analysis of this Pull-Request directly on SonarQube Cloud |
Co-authored-by: strawgate <6384545+strawgate@users.noreply.github.com>
Co-authored-by: strawgate <6384545+strawgate@users.noreply.github.com>
|
@copilot i think we want to set concurrency controls here so that older jobs get cancelled, only one runs at a time, etc. We also should make it very clear in the prompt that if it detects a loop (code rabbit triggers claude triggers code rabbit triggers claude sorta thing) it must exist. |
Co-authored-by: strawgate <6384545+strawgate@users.noreply.github.com>
Added in commit 914a4de:
|
|


When PR tests fail, automatically trigger Claude to analyze failures and post diagnostic comments with suggested fixes.
Changes
New workflow
.github/workflows/claude-on-test-failure.ymlworkflow_run: completedfor "Run Tests" workflowconclusion == 'failure'Documentation updated in
AGENTS.mdWorkflow Behavior
When tests fail, Claude:
get_job_logsandsummarize_run_log_failuresFollows existing Claude workflow patterns (same MCP servers, similar prompt structure, consistent tool allowlist).
Safety Features
cancel-in-progress: trueensures efficient resource usage by canceling superseded analysis runs<issue_title>Add Claude Workflow for failed tests</issue_title>
><issue_description>When a PR check fails, we should trigger Claude automatically to assess the failure and post a comment with what it thinks the solution to the failure is.
>
> Can we have it wait until all checks on the PR report success or failure?
>
></issue_description>
>
> ## Comments on the Issue (you are @copilot in this section)
>
>
><comment_new>@strawgate
> @claude please make a pull request</comment_new>
>
>
Original prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.