Skip to content

Commit

Permalink
Describe override-zero-exit experiment
Browse files Browse the repository at this point in the history
  • Loading branch information
DrJosh9000 committed Apr 23, 2024
1 parent c72acb6 commit 488a281
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions EXPERIMENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,3 +92,14 @@ running in a terminal, using ANSI escapes to provide colours, progress meters et
the PTY to modify the stream. (Or do we? That's why this is an experiment)

**Status:** Experimental for some opt-in testing before being promoted to always-on.

### `override-zero-exit-on-cancel`

If the job is cancelled, and the exit status of the process is 0, it is overridden to be 1 instead.

When cancelling a job, the agent signals the process, which typically causes it to exit with a
non-zero status code. On Windows this is not true - the process exits with code 0 instead, which
makes the job appear to be successful. (It successfully exited, no?) By overriding the status to 1,
a cancelled job should appear as a failure, regardless of the OS the agent is running on.

**Status:** Experimental for some opt-in testing. We hope to promote this to be the default soon™.

0 comments on commit 488a281

Please sign in to comment.