Skip to content

Add failure notification to scheduled regression tests#195

Merged
gftea merged 2 commits into
mainfrom
claude/admiring-brown-Vgp4f
May 24, 2026
Merged

Add failure notification to scheduled regression tests#195
gftea merged 2 commits into
mainfrom
claude/admiring-brown-Vgp4f

Conversation

@gftea

@gftea gftea commented May 24, 2026

Copy link
Copy Markdown
Owner

Summary

Adds a new job to the regression test workflow that sends notifications to Claude Code routine when scheduled tests fail, enabling better visibility into CI failures.

Key Changes

  • Added fire_routine_on_failure job that:
    • Depends on all existing test jobs (builds, check_msrv, test_examples, test_features_combination)
    • Only runs on scheduled workflow triggers when any dependent job fails
    • Sends a POST request to Claude Code routine with failure details including repository, run ID, URL, and commit SHA
    • Uses secrets for secure credential management (CLAUDE_ROUTINE_URL and CLAUDE_ROUTINE_TOKEN)

Implementation Details

  • Uses needs and if conditions to ensure the job only executes on scheduled failures
  • Constructs a JSON payload with jq containing relevant GitHub context information
  • Includes proper HTTP headers for the Claude Code routine API (authorization, beta version, content type)
  • Leverages GitHub's built-in context variables (github.run_id, github.sha, github.repository, etc.) for dynamic payload generation

https://claude.ai/code/session_01BQgV11WYhAJuHtyk2qmhTz

Adds a job to regression_test.yml that POSTs to a Claude Code routine's
/fire endpoint when the daily scheduled run fails. Requires repo secrets
CLAUDE_ROUTINE_URL and CLAUDE_ROUTINE_TOKEN.

https://claude.ai/code/session_01BQgV11WYhAJuHtyk2qmhTz
Use CLAUDE_ROUTINE_URL/CLAUDE_ROUTINE_TOKEN consistently inside the
step rather than renaming to shorter locals, to match the repo secret
names end-to-end.

https://claude.ai/code/session_01BQgV11WYhAJuHtyk2qmhTz
@gftea gftea enabled auto-merge May 24, 2026 12:29
@gftea gftea disabled auto-merge May 24, 2026 12:30
@gftea gftea merged commit c5ce97d into main May 24, 2026
12 checks passed
@gftea gftea deleted the claude/admiring-brown-Vgp4f branch May 24, 2026 12:30
@codecov

codecov Bot commented May 24, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 86.16%. Comparing base (9c9f0c5) to head (7e1abdf).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #195      +/-   ##
==========================================
- Coverage   86.21%   86.16%   -0.06%     
==========================================
  Files          38       38              
  Lines        5912     5912              
==========================================
- Hits         5097     5094       -3     
- Misses        815      818       +3     

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants