Fix two flaky CLI tests that reject pre-push runs (`wait-for-pr-review` SIGTERM, `shipped-features-check`)

Abierto
#2,972 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
1-2 días
Aptitud para principiantes
55/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
rust
Área
cli, testing

Línea de trabajo

Read the two named tests in .claude/skills/wait-for-pr-review/tool/tests/cli.rs and contrib/dev-tools/checks/shipped-features-check/tests/cli.rs, then reproduce their failures under pre-push load and record the output. The cause is not yet analyzed, so check the signal handling and cargo tree subprocess behavior before choosing whether the fix belongs in a test or a tool. Done means both tests are deterministic under the reported conditions and the failure cause is addressed.

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 two CLI tests of the developer tools deterministic. Each has failed a pre-push run and passed on retry.

Problem

  • .claude/skills/wait-for-pr-review/tool/tests/cli.rs: it_should_stop_on_sigterm_during_the_lookup_without_running_another_command
  • contrib/dev-tools/checks/shipped-features-check/tests/cli.rs: it_should_report_a_runtime_error_when_the_shipped_package_is_not_in_the_cargo_tree_output

Reports, all from agent sessions running the pre-push hook (the whole workspace test suite, so the machine is under load):

  • The #2866 session, on the close-out PR #2892 (2026-11-16): each test rejected one pre-push run.
  • The same session's final report (2026-11-17): both failed again and passed on retry; it estimated the SIGTERM test fails about 1 run in 3 under load.

Not reproduced in isolation, and the cause is not analysed. Both look timing-dependent (a signal sent to a child process; a child cargo tree run), which is a guess to check, not a finding.

Why it matters

A failed pre-push run costs several minutes and a retry, and a flaky gate teaches contributors and agents to retry without reading the failure.

Proposed scope

  • Reproduce each failure (for example by repeating the test under load) and record the failure output.
  • Fix the cause in the test or the tool, following the fix-bug skill.
  • Out of scope: other flaky tests, unless the same cause explains them.

Notes

  • Not started. The order among the EPIC's 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.
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.