Page MenuHomePhabricator

Add file monitoring / automatic reload / test run ability to service-runner for dev purposes
Closed, DeclinedPublic

Description

It is often useful to

a) automatically run tests, or
b) automatically restart a service

whenever the code changes. Service-runner would be a great place to add such functionality, to be enabled with commandline parameters (--auto-test and --auto-service-restart?).

There are quite a few existing tools in this area, so adding a feature like this might be very simple:

Event Timeline

GWicke raised the priority of this task from to Lowest.
GWicke updated the task description. (Show Details)
GWicke added a project: service-runner.
GWicke subscribed.
GWicke edited subscribers, added: Yurik; removed: Aklapper.
GWicke added subscribers: Jdouglas, mobrovac.

nodemon could be a great match, but it sends SIGUSR2 to restart an up, and it's not configurable. However service-runner uses the same signal to make a heapdump, so we need to find another lib.

Here's a nodemon issue for that: https://github.com/remy/nodemon/issues/521

Looks like there's some activity on the nodemon issue and a maintainer is going to fix our problem, so I think it's better to postpone this until nodemon update.

Many years has passed since this feature was proposed and nothing has happened and nobody seem to be upset about it, so I will close the ticket.