hyperdb-bootstrap never prunes superseded hyperd pins (793 MB for one active version)
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 55/100
- Issue 类型
- 缺陷
- 描述清晰度
- 基本清楚
- 活跃度
- 活跃
- 技术栈
- powershell, rust
- 领域
- build-system, tooling
调研方向
Start at hyperdb-bootstrap, especially download_and_extract and refresh_current, then inspect the make clean target and build.ps1 equivalent. Clarify whether cleanup should retain one previous pin or only the active pin, and verify that installation and targeted cleanup remove stale versioned directories while preserving current/ and the active release.
由索引模型根据 Issue 内容生成。
描述
Summary
hyperdb-bootstrap never removes a superseded hyperd release, so every pin bump leaves the previous one on disk permanently. On this workstation that is already 793 MB for a single pinned version:
263M .hyperd/0.0.26359.r07abb490 <- superseded pin, nothing references it
265M .hyperd/0.0.26479.r96880f6a <- the current pin
265M .hyperd/current <- a full copy of the current pin
793M .hyperd
Two things compound:
- No pruning on bump.
download_and_extractclears only the directory for the release it is installing, andrefresh_currentclears onlycurrent/. Neither considers older versioned directories, so each bump adds ~263 MB that is never reclaimed. current/is a full file copy rather than a symlink. That is deliberate — it avoids requiring symlink privileges on Windows — but it means the active pin is always stored twice.
Nothing in the repository references the superseded directory by path; the only 26359 matches are version strings in changelogs, benchmark history, and a --version example.
Why the existing cleanup does not help
make clean does rm -rf .hyperd, which removes current/ along with everything else and forces a full re-download of the pinned release. So the only available cleanup is all-or-nothing: either carry the superseded copies indefinitely, or discard the working engine too and re-fetch ~265 MB.
There is no targeted way to say "keep the current pin, drop the rest."
Fix direction
Either would resolve it, and they compose:
- Prune on install. After
refresh_currentsucceeds, remove versioned directories under.hyperd/other than the one just installed. Doing it after the new pin is verified andcurrent/is refreshed keeps the operation safe — a failed download must not leave the tree with no usable engine. - Add a targeted cleanup target. A
make clean-hyperd-stale(plus thebuild.ps1equivalent) that removes superseded versioned directories while leavingcurrent/and the active pin intact. Useful independently of (1), since it also cleans up trees that predate the change.
Worth considering whether to keep exactly one previous pin, which would make an A/B benchmark against the prior release — the procedure the update-hyperd-release skill documents — possible without re-downloading. That argues for pruning to N most recent rather than to one.
Provenance
Noticed while correcting the HYPERD_PATH guidance (#298). Verified against main at 05e993f.
- 主要语言
- Rust
- 星标
- 3
- 派生
- 2
- 平均合并
- 23 小时 11 分钟
- 30 天内合并 PR
- 65
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
tableau/hyper-api-rust 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 68/100
tableau/hyper-api-rust#294 ·
维护者通常 1 天内回复
-
难度 4/5 3-5 天 新手友好度 35/100
tableau/hyper-api-rust#311 ·
维护者通常 1 天内回复
-
难度 4/5 3-5 天 新手友好度 45/100
tableau/hyper-api-rust#305 ·
维护者通常 1 天内回复
-
Windows Named Pipe: verify DACL denies other users, and measure read-path perf for MCP workloads未关闭
难度 4/5 3-5 天 新手友好度 38/100
tableau/hyper-api-rust#302 ·
维护者通常 1 天内回复
-
难度 3/5 1-2 天 新手友好度 72/100
tableau/hyper-api-rust#300 ·
维护者通常 1 天内回复
查看 tableau/hyper-api-rust 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 65/100
rescript-lang/rescript#8765 ·
维护者通常 1 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 62/100
farion1231/cc-switch#8072 ·
维护者通常 1 天内回复
-
Python 3.15 support可能已有人在做 @amnesiaof 今天认领。 未关闭L: python L: python:uv
难度 2/5 1-3 小时 新手友好度 72/100
dependabot/dependabot-core#16524 · 1 条评论 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 62/100
维护者通常 1 天内回复
-
[Bug]: Migration link in chromadb/config.py error message returns 404可能已有人在做 @Imad2702 今天认领。 未关闭
难度 1/5 1 小时以内 新手友好度 90/100
chroma-core/chroma#7879 ·
维护者通常 1 天内回复