Skip to content

heavy kit: t3-capacity link follow-ups (uninstall order, leftover tests, rollback) #933

Done

Description

@scuttletoby

Follow-up from the round-2 review of #922 (heavy kit links t3-capacity). Three minor points, none blocking:

  1. Uninstall order: heavy-uninstall removes the t3-capacity link before it puts the kept copy back from heavy-kept/. If it stops between the two steps, the command is missing until the next run. Restore the kept copy over the link in one rename instead.
  2. Tests for leftovers: no test checks that heavy-kept/ is left empty (or removed) after uninstall, or that no .tmp link is left after a stop half-way.
  3. Rollback to an older release: rolling back to ci/v20 or older (which do not know the link) leaves /usr/local/bin/t3-capacity pointing at a missing file. Either the older installer's note should say to run the newer uninstall first, or the link should point at a path every release keeps.

State question for each fix: what happens when it runs again, stops half-way, or meets an old or empty prefix.

🤖 Generated with Claude Code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:machinessize:smalltype:tech-debt

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions