Skip to content

Exit non-zero when apps delete gets an unknown app ID - #7320

Merged
masenf merged 2 commits into
reflex-dev:mainfrom
flcrom:fix/apps-delete-unknown-id-exit-code
Sep 28, 2026
Merged

masenf merged 2 commits into
reflex-dev:mainfrom
flcrom:fix/apps-delete-unknown-id-exit-code

Conversation

@flcrom

@flcrom flcrom commented Sep 24, 2026 •

Copy link
Copy Markdown
Contributor

Fixes #7295. reflex cloud apps delete <id> returned 0 when the app didn't exist, so scripts treated it as deleted. It now logs the error and exits 1 (the --json output still reports deleted: false). Updated the two tests that asserted the old exit code.

Review in cubic

@flcrom
flcrom requested a review from a team as a code owner September 24, 2026 21:32

@cubic-dev-ai cubic-dev-ai Bot left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

All reported issues were addressed across 3 files

Reply with feedback, questions, or to request a fix.

Re-trigger cubic

@greptile-apps

greptile-apps Bot commented Sep 24, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerConfidence Score: 5/5

The PR appears safe to merge; no new actionable issue was found.

Summary

The PR makes deletion of an unknown app ID exit non-zero while preserving the deleted: false JSON result.

  • Updates tests for the exit status and JSON output.
  • Adds a bug-fix news entry.

Reviews (2) · Last reviewed commit: "Keep the JSON result when apps delete ge..."

@codspeed

codspeed Bot commented Sep 24, 2026 •

Copy link
Copy Markdown

Merging this PR will improve performance by 5.08%

⚠️ Different runtime environments detected

Some benchmarks with significant performance changes were compared across different runtime environments,
which may affect the accuracy of the results.

Open the report in CodSpeed to investigate

⚡ 1 improved benchmark
✅ 128 untouched benchmarks
⏩ 17 skipped benchmarks1

Performance Changes

Benchmark BASE HEAD Efficiency
⚡ test_var_access[mutable_dataclass_list] 483.4 ms 460 ms +5.08%

Tip

Curious why performance improved? Comment @codspeedbot explain why performance improved on this PR, or directly use the CodSpeed MCP with your agent.


Comparing flcrom:fix/apps-delete-unknown-id-exit-code (e4bb892) with main (fe2a78f)

Open in CodSpeed

Footnotes

  1. 17 benchmarks were skipped, so the baseline results were used instead. If they were deleted from the codebase, click here and archive them to remove them from the performance reports. ↩

@masenf
masenf merged commit 1798234 into reflex-dev:main Sep 28, 2026
126 checks passed
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.

reflex cloud apps delete <unknown id> exits 0

2 participants