Skip to content

Add Exit 1 on Deploy Failures #8

Merged
alexagillman merged 2 commits intomainfrom
dev/alexagillman/addExitCodesOnErrors
Jul 2, 2025
Merged

Add Exit 1 on Deploy Failures #8
alexagillman merged 2 commits intomainfrom
dev/alexagillman/addExitCodesOnErrors

Conversation

@alexagillman
Copy link
Contributor

For item: https://github.com/github/spark/issues/816. Exit on deploy failures so the error is propagated. The deploy script has set e so it'll exit 1 if the cli command fails and show an error in the UI on deployment

Copilot AI review requested due to automatic review settings July 2, 2025 14:03
Copy link

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 updates the deploy command to exit with status code 1 on failures so that errors are propagated to the UI.

  • Enforces os.Exit(1) instead of returning silently on flag checks, directory errors, zip errors, API client errors, and deployment failures
  • Ensures a non-zero exit code for any CLI failure
  • Centralizes failure behavior in cmd/deploy.go

@alexagillman alexagillman merged commit 3c59697 into main Jul 2, 2025
5 checks passed
@salvador-barboza salvador-barboza deleted the dev/alexagillman/addExitCodesOnErrors branch September 2, 2025 14:37
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.

4 participants