Skip to content

fix(cli): make down command stop and delete containers per spec#153

Merged
skevetter merged 6 commits into
mainfrom
fix/down-cmd-delete
Apr 27, 2026
Merged

fix(cli): make down command stop and delete containers per spec#153
skevetter merged 6 commits into
mainfrom
fix/down-cmd-delete

Conversation

@skevetter

Copy link
Copy Markdown
Contributor

Summary

  • The official devcontainer CLI's down command both stops and deletes containers, but devsy's down was previously just an alias for stop (only stopping without deleting)
  • Removes the down alias from the stop command and introduces a standalone down command (cmd/down.go) that first stops the workspace, then deletes it via workspace.Delete
  • devsy stop behavior is unchanged — it still only stops the workspace

@netlify

netlify Bot commented Apr 26, 2026

Copy link
Copy Markdown

Deploy Preview for devsydev canceled.

Name Link
🔨 Latest commit 16a9a40
🔍 Latest deploy log https://app.netlify.com/projects/devsydev/deploys/69eeaf3d62ebca0008940688

@coderabbitai

coderabbitai Bot commented Apr 26, 2026

Copy link
Copy Markdown

Warning

Rate limit exceeded

@skevetter has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 57 minutes and 55 seconds before requesting another review.

Your organization is not enrolled in usage-based pricing. Contact your admin to enable usage-based pricing to continue reviews beyond the rate limit, or try again in 57 minutes and 55 seconds.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 75afb287-defd-49c4-ba9f-9c2cf8c79f33

📥 Commits

Reviewing files that changed from the base of the PR and between bb029d0 and 16a9a40.

📒 Files selected for processing (10)
  • .github/workflows/pr-ci.yml
  • cmd/down.go
  • cmd/root.go
  • cmd/stop.go
  • e2e/e2e_suite_test.go
  • e2e/framework/command.go
  • e2e/tests/down/down.go
  • pkg/devcontainer/feature/extend.go
  • pkg/devcontainer/feature/extend_test.go
  • pkg/devcontainer/graph/graph.go

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.

@skevetter
skevetter force-pushed the fix/down-cmd-delete branch from b6d6f09 to 6c53711 Compare April 26, 2026 21:06
@github-actions github-actions Bot added size/xl and removed size/m labels Apr 26, 2026
The official devcontainer CLI's 'down' command both stops and deletes
containers. Previously, devsy's 'down' was just an alias for 'stop',
which only stopped containers without deleting them.

This removes the alias and introduces a standalone 'down' command that
stops the workspace first, then deletes it, matching spec behavior.
- Add log message when workspace is not running and stop is skipped
- Add DecodeOptionsFromEnv for delete flags matching delete.go pattern
- Add comment noting workspace.Delete handles single-machine cleanup
…lOrder

Replace the two-phase sort (Kahn topo-sort then post-sort reorder) with
a spec-compliant round-based priority algorithm that integrates override
priorities directly into the topological sort. Validate that
overrideFeatureInstallOrder does not place a feature before any of its
dependsOn dependencies, returning an error if violated.
Two tests:
- down stops and deletes workspace (container gone, list empty)
- stop only stops, does not delete (regression guard)
@skevetter
skevetter force-pushed the fix/down-cmd-delete branch from b98b4df to 16a9a40 Compare April 27, 2026 00:35
@skevetter
skevetter merged commit 1b24641 into main Apr 27, 2026
50 checks passed
@skevetter
skevetter deleted the fix/down-cmd-delete branch April 27, 2026 02:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant