Skip to content

feat!: bot commands that run a single step raise on failure#3195

Merged
eakmanrq merged 1 commit intomainfrom
eakmanrq/single_bot_commands_error_on_failure
Sep 27, 2024
Merged

feat!: bot commands that run a single step raise on failure#3195
eakmanrq merged 1 commit intomainfrom
eakmanrq/single_bot_commands_error_on_failure

Conversation

@eakmanrq
Copy link
Collaborator

Most users use the run-all bot command which runs several steps at once. Since it runs several steps it only fails if the execution of those steps fails. To understand which of those steps failed then you would check the bot output. This makes it easy to differentiate all the different types of failures.

This feels less intuitive when running a single step. Since there aren't sub-steps then having the only step that ran fail and not having the bot itself fail feels less intuitive. This might feel ok when running something like "Check Required Approvers" or "Run Tests" but less intuitive when running "Deploy to Prod".

Therefore this PR keeps the run-all behavior the same, which we haven't received any feedback on, but then makes all the individual steps fail if the step itself fails. Some other options:

  • Have all fail if a step fails
  • Have just deploy prod fails if it's step fails
  • Do nothing

@eakmanrq eakmanrq merged commit 5d7eb4a into main Sep 27, 2024
@eakmanrq eakmanrq deleted the eakmanrq/single_bot_commands_error_on_failure branch September 27, 2024 20:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants