Free build and worktree resources at the step that ends their use

未关闭
#2,979 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
35/100
Issue 类型
功能
描述清晰度
基本清楚
活跃度
活跃
技术栈
rust

调研方向

Start by reading AGENTS.md, the four named skills (push-changes, run-pre-commit-checks, and run-pre-push-checks), and docs/git-hooks.md; then check the create-feature-branch workflow and parent EPIC #2003. Confirm the recovered notes and settle the specification before editing. Done when the agreed cleanup steps and copied-checkout note are documented in the specified files, with the optional updater-skill change decided.

由索引模型根据 Issue 内容生成。

描述

Parent EPIC: #2003 - Overhaul: Automation Tools and AI Agent Guardrails

Goal

Make contributors and agents free build and worktree resources at the step that ends their use, instead of "periodically".

Problem

On 2026-11-10 about 555 GB of old target/ directories in finished agent worktrees filled the maintainer's disk. Checked on develop at 7bc30738a: no skill, and neither AGENTS.md nor docs/git-hooks.md, mentions cargo clean or git worktree. Four skills only say to clean stale files "periodically" (push-changes, run-pre-commit-checks, and run-pre-push-checks twice), which no step enforces.

A related failure: a copied or renamed checkout with a stale target/ kept a stale CARGO_BIN_EXE_* path, and the merge script's pre-push failed (a follow-up of #2714).

Proposed scope

To settle in the specification:

  1. A principle in AGENTS.md: free resources at the phase that ends their use.
  2. A close-out step (in create-feature-branch and in the issue close-out description): cargo clean, and remove the worktree only when its status is clean, no commit is missing from every remote branch and no process uses it; otherwise clean only target/.
  3. Replace the "clean stale files periodically" lines in the four skills with a real step or a pointer to it.
  4. Optional: delete the temporary branch in the two updater skills.
  5. A note in docs/git-hooks.md on copied or renamed checkouts with a stale target/.

Out of scope: a cleanup command the maintainer triggers himself across checkouts; that stays in his own tooling.

Notes

  • Not started. The order among the sub-issues is decided when a slot is free. The specification and the EPIC table row are written when the work starts.
  • Filed by the EPIC #2003 coordinator session (AI assistant, Claude Code) on 2026-11-19 at the maintainer's request, so the idea is not lost. The details were recovered from that session's earlier notes; the specification must check them again.
主要语言
Rust
星标
532
派生
56
平均合并
11 小时 20 分钟
30 天内合并 PR
282

环境准备

这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

torrust/torrust-tracker 的其他 Issue

查看 torrust/torrust-tracker 的全部 Issue

相似的 Issue

更多 Rust Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。