• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

moonbitlang / core / 8984
87%

Build:
DEFAULT BRANCH: main
Ran 04 Dec 2026 02:05AM UTC
Jobs 1
Files 670
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

04 Dec 2026 02:04AM UTC coverage: 88.229% (+0.01%) from 88.215%
8984

push

github

Guest0x0
fix(async/process): forward global cancellation signal in graceful_cancel

When a MoonBit program is cancelled by a global cancellation signal (such as SIGINT or SIGHUP) on POSIX platforms, graceful_cancel previously always sent SIGTERM to child processes when `signal` was omitted.

- Record the first received global cancellation signal in EventLoop::handle_completed_job before cancelling main, and expose it internally via @event_loop.killed_by_signal().
- In @process.graceful_cancel, when `signal` is omitted on POSIX, forward @event_loop.killed_by_signal() if present and fall back to SIGTERM otherwise. Keep explicit `signal=` overrides and Windows SIGBREAK behavior unchanged.
- Add whitebox event-loop tests and end-to-end process cancellation tests covering SIGINT/SIGTERM/SIGHUP forwarding, explicit signal override, and first-signal-wins semantics.

Refs #5041

9 of 11 new or added lines in 3 files covered. (81.82%)

1 existing line in 1 file now uncovered.

25320 of 28698 relevant lines covered (88.23%)

783330.33 hits per line

Uncovered Changes

Lines Coverage ∆ File
2
78.57
-8.93% async/process/cancellation.mbt

Coverage Regressions

Lines Coverage ∆ File
1
80.66
-0.55% async/process/cmd.mbt
Jobs
ID Job ID Ran Files Coverage
1 8984.1 04 Dec 2026 02:05AM UTC 670
88.23
GitHub Action Run
Source Files on build 8984
  • Tree
  • List 670
  • Changed 5
  • Source Changed 3
  • Coverage Changed 5
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • e5fab28a on github
  • Prev Build on main (#8973)
  • Next Build on main (#8987)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc