Prune superseded model runtimes and the download cache; check free space before setup

Open
#67 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
55/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Tech stack
python
Domain
backend

Research direction

Start at the local model setup flow referenced by #66 and trace runtime installation, generation retention, download-cache handling, and the disk-usage boundary. Use owned filesystem and disk-usage fakes to cover successful installation, rollback retention, cache pruning, and insufficient-space errors; done means failed candidates remain cleaned up and no real downloads are needed.

Written by the indexing model from the issue text.

Description

Raised by the Code Lawyer audit of #66 (local model setup), and deferred to this issue by the maintainer.

Problem

  • After a repair or reinstall, earlier runtime generations (several GB each) are never deleted, even though nothing references them.
  • model-runtimes/download-cache is never pruned.
  • Setup doesn't check free disk space before it starts.

Failed candidate runtimes are already cleaned up correctly.

Proposal

  • Keep the previous generation for rollback, and delete anything older once a new generation is verified.
  • Prune the download cache after a successful install.
  • Check free space before downloading, and refuse with a clear message (required vs. available) when there isn't enough.

Tests: owned fakes for the filesystem and disk-usage boundary. No real downloads.

Dominant language
Python
Stars
0
Forks
1
Avg merge
2h 13m
Merged PRs (30d)
51

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from flyingrobots/AI-TTS

All issues in flyingrobots/AI-TTS

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.