Skip to content

v0.7.0: 0.7.0

Compare
Choose a tag to compare
@github-actions github-actions released this 17 Feb 23:48
· 139 commits to main since this release
New:
- Add the ability to truncate the ping body to its _last_ N bytes,
  defaulting to enabled and to 10KB (10,000 bytes) limit. The flag to
  adjust the limit is `-ping-body-limit`. Pass 0 to disable the
  feature.

  Unless you have your own instance with very large ping body limits,
  truncation will happen on the server side. Hosted healtchecks.io
  service at hc-ping.com will record the _first_ 10,000 bytes,
  discarding the rest. Often the last few lines of output more relevant
  to failure or success of a command. Implementing this on the client
  side also saves bandwidth and increases the odds of successful
  delivery of the ping in under less than ideal network conditions.

- Redirect the stdin of runitor to the stdin of the command.
  Lack of this feature was an oversight.

Changes:
- stdout and stderr of the command now gets combined and goes to
  terminal's stdout.
  Previously they went to terminal's respective output streams.
  0.6.0:
    cmd stdout -> term stdout
    cmd stderr -> term stderr
  0.7.0 and forward:
    cmd stdout & stderr -> term stdout

  This change was needed to preserve the temporal ordering of
  `write(2)`s to stdout and stderr and reflecting the exact output of
  the command to both at the terminal and the ping body.

- `-quiet` and `-silent` flags now suppress output to ping body as well.
  Previously they only affected terminal output.

Bug fixes:
- Temporal ordering of stdout and stderr writes are fixed with terminal
and ping body output behavior change. More on this at
https://github.com/bdd/runitor/issues/9#issuecomment-747679230