Repository navigation
Runtime retention: prune obsolete runtimes under ~/.t3/runtime/versions after a committed update #18196
spiky02plateau
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Every update installs a new runtime under
~/.t3/runtime/versionsand nothing removes the old ones (#8345).On my Mac that is 20 runtimes and 6.8 GiB after six weeks of nightlies, about 0.3 to 0.7 GiB per update.
#7811 added
t3 service pruneand was closed for missing direction approval, so I am asking for direction here before writing code.Proposed scope:
committed, delete completed runtimes that nothing references.update.fromVersion, any runtime of a pending update, and the runtime the service unit executes.The last keep rule depends on #17490: the LaunchAgent or systemd unit stays pinned to the runtime that ran
t3 service install, andservice-state.jsondoes not record it.Fixing that first (re-render the unit after a remote update commits, or record its runtime in
service-state.json) makes retention a pure function ofservice-state.json.Questions for maintainers:
t3 service prune, or both?All reactions