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

オープン
#2,979 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
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分
マージ済み PR(30日)
282

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

torrust/torrust-tracker のほかの issue

torrust/torrust-tracker の issue をすべて見る

似ている issue

Rust の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。