Skip to content

Remove SetShouldExit from RunAndCheck and RetryCommand#2177

Open
aholstrup1 wants to merge 1 commit intomainfrom
aholstrup/remove-setshouldexit
Open

Remove SetShouldExit from RunAndCheck and RetryCommand#2177
aholstrup1 wants to merge 1 commit intomainfrom
aholstrup/remove-setshouldexit

Conversation

@aholstrup1
Copy link
Collaborator

❔What, Why & How

Remove SetShouldExit from RunAndCheck. Instead we should let https://github.com/microsoft/AL-Go/blob/main/Actions/Invoke-AlGoAction.ps1 handle outputting the correct exit code

✅ Checklist

  • Add tests (E2E, unit tests)
  • Update RELEASENOTES.md
  • Update documentation (e.g. for new settings or scenarios)
  • Add telemetry

@aholstrup1 aholstrup1 requested a review from a team as a code owner March 23, 2026 13:24
Copilot AI review requested due to automatic review settings March 23, 2026 13:24
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR removes $host.SetShouldExit(0) calls from helper functions so that action exit codes are determined by the standard action wrapper (Actions/Invoke-AlGoAction.ps1) rather than being overridden inside RunAndCheck/RetryCommand.

Changes:

  • Removed $host.SetShouldExit(0) before throwing in RunAndCheck.
  • Removed $host.SetShouldExit(0) before throwing in RetryCommand.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@aholstrup1 aholstrup1 changed the title Remove SetShouldExit from RunAndCheck Remove SetShouldExit from RunAndCheck and RetryCommand Mar 23, 2026
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