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

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

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

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

評価

難易度
4/5
見積もり時間
1〜2日
初心者へのやさしさ
55/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
活発
技術スタック
rust
領域
cli, testing

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

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.
主要言語
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 を短くまとめたダイジェスト。