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

samsarahq / taskrunner / 37995629781
41%
master: 41%

Build:
Build:
LAST BUILD BRANCH: keepalive-restart-on-clean-exit
DEFAULT BRANCH: master
Ran 09 Oct 2026 09:49PM UTC
Jobs 1
Files 27
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

09 Oct 2026 09:48PM UTC coverage: 40.547% (+0.3%) from 40.25%
37995629781

Pull #85

github

njacobson-samsara
executor: restart KeepAlive tasks that exit cleanly

A KeepAlive task was only invalidated and restarted when its run ended
in an error state. A long-running task whose process is killed under a
wrapper that reports success for the killed child (for example, nx
exiting cleanly after the dev-server it launched is killed) surfaces to
the executor as a successful exit, so the task landed in the done state
and was never restarted, leaving the developer with a dead dev server
until the whole taskrunner was relaunched.

This contradicts the documented contract in the Task definition, which
promises that a KeepAlive task "will be restarted when it exits,
regardless of exit code". Invalidate the task on any exit of a
KeepAlive task instead of only error exits. The invalidation is a no-op
for a task canceled by taskrunner shutdown, since invalidate() ignores
canceled executions. Add a regression test covering the clean-exit
restart path.
Pull Request #85: executor: restart KeepAlive tasks that exit cleanly

8 of 8 new or added lines in 1 file covered. (100.0%)

845 of 2084 relevant lines covered (40.55%)

3.75 hits per line

Jobs
ID Job ID Ran Files Coverage
1 37995629781.1 09 Oct 2026 09:49PM UTC 27
40.55
GitHub Action Run
Source Files on build 37995629781
  • Tree
  • List 27
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Pull Request #85
  • PR Base - master (#25516302028)
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