Skip to content

Fix teardown to work when no .env passed and no branch#1292

Merged
Kitenite merged 1 commit into
mainfrom
kitenite/teardown-pt-2
Feb 8, 2026
Merged

Fix teardown to work when no .env passed and no branch#1292
Kitenite merged 1 commit into
mainfrom
kitenite/teardown-pt-2

Conversation

@Kitenite
Copy link
Copy Markdown
Collaborator

@Kitenite Kitenite commented Feb 8, 2026

Description

Related Issues

Type of Change

  • Bug fix
  • New feature
  • Documentation
  • Refactor
  • Other (please describe):

Testing

Screenshots (if applicable)

Additional Notes

Summary by CodeRabbit

  • Chores
    • Improved environment and resource cleanup process with better error handling and pre-checks to prevent incomplete deletions.

@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented Feb 8, 2026

Caution

Review failed

The pull request is closed.

📝 Walkthrough

Walkthrough

The .superset/teardown.sh script's error-handling behavior is modified. Missing .env files now trigger a warning but succeed (exit 0) instead of failing. Neon branch deletion now includes a pre-existence check and treats deletion failures as fatal errors, removing prior tolerance for not-found states.

Changes

Cohort / File(s) Summary
Teardown Script Error Handling
.superset/teardown.sh
Modified step_load_env to warn and continue on missing .env instead of failing. Enhanced step_delete_neon_branch with pre-check for branch existence and stricter error handling that now treats deletion failures as fatal (exit 1) rather than non-fatal.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Possibly related PRs

Poem

🐰 A script that was lenient, now precise,
Missing configs? No more price!
But branch deletions? Must succeed,
Or fail fast—that's what we need! ✨

✨ Finishing touches
  • 📝 Generate docstrings
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch kitenite/teardown-pt-2

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@Kitenite Kitenite merged commit 0b25276 into main Feb 8, 2026
6 of 7 checks passed
@Kitenite Kitenite deleted the kitenite/teardown-pt-2 branch February 8, 2026 06:11
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Feb 8, 2026

🚀 Preview Deployment

🔗 Preview Links

Service Status Link
Neon Database (Neon) View Branch
Fly.io Electric (Fly.io) View App
Vercel API (Vercel) Open Preview
Vercel Web (Vercel) Open Preview
Vercel Marketing (Vercel) Open Preview
Vercel Admin (Vercel) Open Preview
Vercel Docs (Vercel) Open Preview

Preview updates automatically with new commits

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