Skip to content

#158 docs: the disk GC is VERSION 5, which keeps only the newest staged VS Code build - #161

Merged
gregoryfoster merged 7 commits into
mainfrom
158-disk-gc-v5
Dec 3, 2026
Merged

gregoryfoster merged 7 commits into
mainfrom
158-disk-gc-v5

Conversation

@gregoryfoster

@gregoryfoster gregoryfoster commented Dec 2, 2026 •

Copy link
Copy Markdown
Member

Summary

docs/MONITORING.md § Disk GC now records the host's disk GC at VERSION 5, its vscode-servers keep rule since VERSION 4 (only the newest build newer than the newest live one, or the newest when none is live), and the update's first run. :147 now reads since VERSION 3, a rule VERSION 5 keeps (editor-builds.md row 2). This is docs only, so there's no deploy. deploy/disk-gc/disk-gc.conf is unchanged: VERSION 4 and 5 changed no config key.

The host update (3 → 5) was done by hand through maintaining-host-disk at 9d988572. The record is on #158.

Verification

  • The installer reported update, 3 → 5, applied, journald_restart: false (so journald wasn't restarted), with nothing removed.
  • /usr/local/lib/cannobserv/disk-gc/VERSION reads 5, and both timers are enabled and active.
  • Report-only run, then systemctl start cannobserv-disk-gc.service (2026-12-02 17:27:51Z): exit 0, removed 3.2G in 7 item(s); 1 withheld, 6 kept, 0 failed, kept … Stable-fd90a6de… (1.149.0, the newest; none live). That leaves exactly one Stable-* build. / went from 74% to 56% (3,469,201,408 bytes freed, by df -B1).
  • Sensor at 17:30:13Z: ok: … / is 57% used, 8.1G available, then checked in ok (ok): HTTP 202.
  • uv run pytest tests/test_disk_gc.py: 16 passed against the installed VERSION 5. Ruff is clean.
  • Code review: 4 findings. 1–3 fixed (557a9a6, 84b52f0, 8da2ad3); 4 (the VERSION 2 origin notes in deploy/disk-gc/disk-gc.conf:3 and tests/test_disk_gc.py:41) left as is. Round 2: 5–7 fixed (7deb2f1, 1106932, c358665). After each round the full gate had the same single failure (test_patching: wrap-and-dated fixture's dated window expired 2026-12-01; suite red on main #160) and nothing else.

Known limits:

  • The "newest staged" path wasn't exercised. The running VS Code server's directory (1.145.2) was already gone from disk, so the GC saw nothing live and applied nothing live → the newest. Keeping one staged build beside a live one hasn't been observed on this host yet.
  • That VS Code deleted the live build's directory is an inference, not a trace. The GC's 05:42Z run kept the directory (in use). By 13:47Z it was gone, /proc/<pid>/exe read (deleted), and lru.json listed only the five builds still on disk.
  • No timer-driven VERSION 5 run yet. The first one is due 2026-12-03 between 05:15 and 05:45 UTC. Today's run was started by hand through the same unit and ExecStart.
  • The --test-alert rehearsal wasn't repeated. The monitor and the sensor's config are unchanged by this update.
  • The full suite has one failure that's already on main: test_patching.py::…[wrap-and-dated], whose dated fixture window became past-window on 2026-12-02 (test_patching: wrap-and-dated fixture's dated window expired 2026-12-01; suite red on main #160). This branch doesn't touch it. CI fails on it: chore: update skills submodules #159's run failed on exactly this test (2026-12-02 17:49Z), so this PR's will too.

Closes #158

🤖 Generated with Claude Code

gregoryfoster and others added 7 commits December 3, 2026 00:34
…ed VS Code build

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…an inference

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…he timer

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…rmatted form

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… own sentence

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…d version

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@gregoryfoster
gregoryfoster merged commit 02ae307 into main Dec 3, 2026
3 checks passed
@gregoryfoster
gregoryfoster deleted the 158-disk-gc-v5 branch December 3, 2026 00:36
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.

Update the disk GC from VERSION 3 to 5: keep only the newest staged VS Code build (~2G)

1 participant