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

Đang mở
#2,979 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
35/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
rust
Lĩnh vực
build-system, devtools

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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.
Ngôn ngữ chính
Rust
Star
532
Fork
56
Merge trung bình
11 giờ 20 phút
Pull request đã merge (30 ngày)
282

Chuẩn bị môi trường

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của torrust/torrust-tracker

Tất cả issue của torrust/torrust-tracker

Issue tương tự

Thêm issue về Rust

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.