Fix two flaky CLI tests that reject pre-push runs (`wait-for-pr-review` SIGTERM, `shipped-features-check`)
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
调研方向
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_commandcontrib/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-bugskill. - 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,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
torrust/torrust-tracker 的其他 Issue
-
Bug
难度 2/5 1-3 小时 新手友好度 78/100
torrust/torrust-tracker#3080 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 75/100
torrust/torrust-tracker#3069 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 68/100
torrust/torrust-tracker#3058 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 68/100
torrust/torrust-tracker#2978 ·
维护者通常 1 天内回复
-
Bug
难度 2/5 1-3 小时 新手友好度 73/100
torrust/torrust-tracker#2332 ·
维护者通常 1 天内回复
查看 torrust/torrust-tracker 的全部 Issue
相似的 Issue
-
难度 1/5 1 小时以内 新手友好度 90/100
维护者通常 1 天内回复
-
marketing
难度 2/5 1-3 小时 新手友好度 84/100
维护者通常 1 天内回复
-
difficulty: easy docs help wanted tooling
难度 2/5 1-3 小时 新手友好度 83/100
-
bug help wanted ui
难度 2/5 1-3 小时 新手友好度 85/100
userFRM/egui-charts#4386 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 68/100
eliasstravik/herdr-projects#1605 · 1 条评论 ·