Repository navigation
refactor(workspace): name delete lifecycle stages - #1601
Conversation
Split Delete into private stage helpers (client load, imported-folder removal, resource removal, local file cleanup). Control flow, progress messages, lock boundaries, and returned values are unchanged.
✅ Deploy Preview for images-devsy-sh canceled.
|
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info
📝 Walkthrough
Merge Risk: ⚪ Minimal · up to
|
✅ Deploy Preview for devsydev canceled.
|
|
This pull request does not currently match the merge queue conditions, so it cannot be queued from here. The box comes back if it matches again. |
|
Final gate check on d280e98: 101 checks successful, 3 conditional skips, 7 neutral; CodeRabbit GitHub Review completed with no actionable comments; CLI completed with 0 findings; no unresolved threads; signed and verified. Greptile did not review. Advisory description/docstring warnings need no code change: this PR follows the auto-refactor skill body format, and the private helper names express their purpose under its self-documenting-code rule. Auto-merge policy holds: one Engine file, 107 non-test changed lines, behavior preserved. |
Summary
Deleteinpkg/workspace/delete.gointo named private stages:loadDeleteClient,removeImportedLocalWorkspace,removeWorkspaceResources,cleanupDeletedWorkspaceFiles.Deletenow reads as the lifecycle: load client, quiesce, imported-folder branch, pre-delete check, lock, re-quiesce, stop, remove resources, cleanup.pkg/workspace/delete.gochanged. No new comments added.Why
Deleteheld four inlineprogress.RunStepclosures interleaved with lifecycle ordering, making each stage hard to locate and review. Behavior is unchanged: same progress messages and phase, same lock and defer timing, both quiesce calls kept, cleanup runs only after resource removal succeeds, and the returned id is preserved on cleanup failure.Validation
mise run cli:format: exit 0.golangci-lint config verifyplusgolangci-lint run --new-from-patch=<merge-base diff> --new=false ./...): 0 issues. Run with--allow-parallel-runnersbecause the shared golangci-lint lock blocked themise run cli:lint:ciwrapper.golangci-lint run --allow-parallel-runners --new-from-rev=origin/main ./pkg/workspace/...: 0 issues.go test ./pkg/workspace/... -count=1: ok.CodeRabbit CLI
Completed on head
d280e987: 0 findings, exit 0. Earlier attempts failed with WebSocket closed.Auto-merge
Eligible: yes. Non-test changed lines: 107 (69 added, 38 removed). Files: 1. No tests removed, no lint disabled.
Summary by CodeRabbit