feat(cli-tools): add vscode-server-gc to prune ~/.vscode-server - #775
Closed
ppat wants to merge 1 commit into
Closed
feat(cli-tools): add vscode-server-gc to prune ~/.vscode-server#775ppat wants to merge 1 commit into
ppat wants to merge 1 commit into
Conversation
~/.vscode-server grows without bound (8.7 GB observed): interrupted Remote-SSH downloads left as .staging dirs, server versions VS Code no longer considers live, their orphaned code-<hash> CLI binaries, and superseded extension versions. Every deletion here is driven by a signal VS Code itself already writes to disk (cli/servers/lru.json, extensions/.obsolete, extensions/extensions.json, the .staging suffix, and a matching server directory) plus a running-process check, never by guessing at "newest N" from version numbers or mtimes. Deploys to $HOME/.local/bin/vscode-server-gc, which the ppat/coder homelab-workspace template's weekly coder_script already invokes if present (see scripts.tf's vscode_server_gc resource). Ref: #771
Owner
Author
|
Superseded by ppat/coder#869 — the GC script belongs in the coder template, not dotfiles. See #771 for the corrected scope and ppat/coder#869 for the implementation. |
Open
5 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closed — superseded
~/.vscode-serveris created by VS Code the moment it connects to aworkspace, independent of whether dotfiles have ever been applied to
that workspace (confirmed: the disposable
testCoder workspacereached ~11 GB of
~/.vscode-serverwith dotfiles never applied). Adotfiles-hosted GC script can't cover that case, and the template's
existing weekly cron invoked it via a guard
(
[ -x $HOME/.local/bin/vscode-server-gc ] && ... || true) thatsilently reports success on any workspace where the script isn't
present.
Moved to
ppat/coderas a template-owned script instead — seeppat/coder#869.Ref: #771