Skip to content

v3.0.0

Choose a tag to compare

@dbohdan dbohdan released this 15 Nov 11:01
· 43 commits to master since this release
v3.0.0

This release includes several relatively small breaking changes. The breaking changes to Starlark conditions were made to better introduce a new feature, regular-expression search on standard input/output/error.

Breaking changes

  • The Starlark condition can be any truthy or falsy value, not just a boolean.
  • Replaced the Starlark function flush_stdout() with the method stdout.flush().
  • Changed error exit codes:
    • Command not found: from 255 to 127 (like POSIX shell)
    • Timeout: from 255 to 124 (like GNU and BSD timeout)
    • Unknown error: from -1 to 255 (for consistency between POSIX and Windows because Windows allows negative exit codes)
  • Required Go 1.22 to build (was 1.19).

Features

  • Implemented an object-oriented approach to standard input/output/error in Starlark condition expressions.
  • Added a new CLI option -E/--hold-stderr that works like -O/--hold-stdout but for standard error. Added stderr.flush() in condition expressions.
  • Added a new CLI option -s/--seed to set the random seed for reproducible jitter.
  • Added regular-expression search on buffers: stdin.search(), stdout.search(), and stderr.search()
  • Improved the option -j/--jitter to allow spaces around the comma in the value. For example, 1ms, 5ms is now valid.