Skip to content

Add Claude AI test failure analysis to Slack notifications#3381

Open
robbycochran wants to merge 2 commits into
masterfrom
add-test-analysis-job
Open

Add Claude AI test failure analysis to Slack notifications#3381
robbycochran wants to merge 2 commits into
masterfrom
add-test-analysis-job

Conversation

@robbycochran
Copy link
Copy Markdown
Collaborator

@robbycochran robbycochran commented May 20, 2026

Summary

Adds claude CI failure analysis that runs before posting failure to slack.

@robbycochran robbycochran requested a review from a team as a code owner May 20, 2026 19:54
@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented May 20, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 27.34%. Comparing base (01135a9) to head (31cea3d).
⚠️ Report is 1 commits behind head on master.
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #3381   +/-   ##
=======================================
  Coverage   27.34%   27.34%           
=======================================
  Files          95       95           
  Lines        5420     5420           
  Branches     2545     2545           
=======================================
  Hits         1482     1482           
  Misses       3211     3211           
  Partials      727      727           
Flag Coverage Δ
collector-unit-tests 27.34% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Automatically analyzes integration test failures using Claude AI and includes
intelligent insights in Slack notifications to #team-acs-collector-oncall.

Key features:
- Claude has full source code access via claude-code-base-action
- Analyzes JUnit XML reports, failing test source, and git history
- Detects platform-specific patterns (arch/OS)
- Provides file:line precision and actionable recommendations
- Skill-based approach (.claude/commands/) for maintainability
- Graceful fallback if analysis fails
- Test with PR label without Slack spam

Architecture:
- Integration tests fail → collect-failures job identifies failures
- analyze-and-notify reusable workflow runs Claude skill
- Claude creates analysis-report.md with root cause analysis
- notify job posts to Slack (skipped for PR label tests)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
@robbycochran robbycochran force-pushed the add-test-analysis-job branch from bed7306 to ebe5421 Compare May 21, 2026 01:41
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants