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

未关闭
#2,972 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
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 分钟
30 天内合并 PR
282

环境准备

这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

torrust/torrust-tracker 的其他 Issue

查看 torrust/torrust-tracker 的全部 Issue

相似的 Issue

更多 Rust Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。