Skip to content

fix(deploy: exit non-zero if uncommitted changes are present#2004

Open
sakethsomaraju wants to merge 1 commit intomainfrom
fix/1721
Open

fix(deploy: exit non-zero if uncommitted changes are present#2004
sakethsomaraju wants to merge 1 commit intomainfrom
fix/1721

Conversation

@sakethsomaraju
Copy link

@sakethsomaraju sakethsomaraju commented Feb 2, 2026

Description

Describe the purpose of this pull request.

Customers using GitLab or other CI/CD platforms rely on command exit codes to programmatically determine whether an astro deploy invocation succeeded or failed.

🎟 Issue(s)

Related #1721

🧪 Functional Testing

List the functional testing steps to confirm this feature or fix.
Run astro deploy with uncommitted git changes --> command fails with error and exits non-zero.

Run astro deploy -f with uncommitted changes --> deploy proceeds successfully.

Run astro deploy with a clean git state --> deploy succeeds as before.

📸 Screenshots

image

📋 Checklist

  • Rebased from the main (or release if patching) branch (before testing)
  • Ran make test before taking out of draft
  • Ran make lint before taking out of draft
  • Added/updated applicable tests
  • Tested against Astro-API (if necessary).
  • Tested against Houston-API and Astronomer (if necessary).
  • Communicated to/tagged owners of respective clients potentially impacted by these changes.
  • Updated any related documentation

@sakethsomaraju sakethsomaraju self-assigned this Feb 2, 2026
@sakethsomaraju sakethsomaraju marked this pull request as ready for review February 2, 2026 06:21
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.

1 participant