Stop the "tests" badge from failing on cancelled runs#409
Conversation
…update README.md to reflect new test badge URL.
|
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
WalkthroughWorkflow renamed from "tests" to "test", a new badge-mirroring workflow introduced to report test status, and README documentation updated to reference the renamed workflow and new badge workflow. Changes
Sequence Diagram(s)sequenceDiagram
autonumber
actor User
User->>+GitHub: Push to main
GitHub->>+test.yml: Trigger workflow
test.yml->>-GitHub: Complete (success/failure)
GitHub->>+tests-badge.yml: Trigger on workflow_run
tests-badge.yml->>tests-badge.yml: Check if main push (not cancelled)
alt Conclusion == success
tests-badge.yml->>tests-badge.yml: Output green badge
else Other conclusion
tests-badge.yml->>tests-badge.yml: Output red badge + exit 1
end
tests-badge.yml->>-GitHub: Complete
Estimated code review effort🎯 2 (Simple) | ⏱️ ~8 minutes
Possibly related PRs
Suggested labels
Poem
Pre-merge checks and finishing touches✅ Passed checks (3 passed)
✨ Finishing touches🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (3)
🧰 Additional context used🧠 Learnings (1)📚 Learning: 2025-09-09T17:37:19.650ZApplied to files:
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (2)
🔇 Additional comments (5)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
📦 Bundle Size Report
✅ All size limits passed! |
commit: |
This is a hack to stop the "tests" badge from failing on cancelled runs by pointing it to a "mirror" workflow that succeeds when "test" is successful and fails when it does, but doesn't run when tests get cancelled.
Summary by CodeRabbit
✏️ Tip: You can customize this high-level summary in your review settings.