Skip to content

feat: handle test:interrupted event#172

Merged
MoLow merged 1 commit intomainfrom
feat/test-interrupted-event
Apr 16, 2026
Merged

feat: handle test:interrupted event#172
MoLow merged 1 commit intomainfrom
feat/test-interrupted-event

Conversation

@MoLow
Copy link
Copy Markdown
Owner

@MoLow MoLow commented Apr 16, 2026

Summary

  • Align with test_runner: show interrupted test on SIGINT nodejs/node#61676 which adds a test:interrupted event emitted on SIGINT
  • @reporters/gh: Display yellow "Interrupted while running:" section with test names and file locations, properly closing any open GitHub Actions group
  • @reporters/github: Emit ::warning:: annotations for each interrupted test with file/line/column positioning

Test plan

  • All existing tests pass (npm test)
  • Manually verify with a hanging test and Ctrl+C once the upstream Node.js change lands

🤖 Generated with Claude Code

@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 16, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 99.91%. Comparing base (889b64f) to head (16973c3).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #172   +/-   ##
=======================================
  Coverage   99.91%   99.91%           
=======================================
  Files          10       10           
  Lines        1173     1228   +55     
=======================================
+ Hits         1172     1227   +55     
  Misses          1        1           
Flag Coverage Δ
v20 99.67% <100.00%> (+0.01%) ⬆️
v22 99.91% <100.00%> (+<0.01%) ⬆️
v24 99.91% <100.00%> (+<0.01%) ⬆️

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.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Align with nodejs/node#61676 which adds a `test:interrupted` event
emitted on SIGINT. This shows which tests were running when the
process was interrupted.

- gh: display yellow "Interrupted while running:" section with test
  names and locations, closing any open GitHub Actions group
- github: emit `::warning::` annotations for each interrupted test

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@MoLow MoLow force-pushed the feat/test-interrupted-event branch from 667961f to 16973c3 Compare April 16, 2026 11:30
@MoLow MoLow merged commit 79f71f4 into main Apr 16, 2026
6 checks passed
@pr-opener-bot pr-opener-bot Bot mentioned this pull request Feb 26, 2026
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.

1 participant