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

Aperta
#2,972 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
1-2 giorni
Idoneità per principianti
55/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
rust
Ambito
cli, testing

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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.
Lingua principale
Rust
Stelle
532
Fork
56
Merge medio
11h 20m
PR unite (30g)
282

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di torrust/torrust-tracker

Tutte le issue di torrust/torrust-tracker

Issue simili

Altre issue su Rust

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.