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

Abierto
#2,979 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
35/100
Tipo de issue
Nueva funcionalidad
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
rust

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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.
Lenguaje dominante
Rust
Estrellas
532
Forks
56
Merge medio
11 h 20 min
PR fusionados (30 d)
282

Preparar el entorno

Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de torrust/torrust-tracker

Todos los issues de torrust/torrust-tracker

Issues similares

Más issues de Rust

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.