Coordinator: external-command PostgreSQL tests time out on a busy machine
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 2/5
- 预计耗时
- 1-3 小时
- 新手友好度
- 78/100
调研方向
阅读 crates/registry-coordinator/tests/external_command_postgres.rs,尤其是第 131 行附近的超时设置和第 566 行附近专门测试超时的测试。将其他测试的尝试超时时间提高到约 30 秒,同时通过延长延迟来缩短超时检查。运行 PostgreSQL 测试文件,并确认普通测试达到 finished,而超时测试仍达到 attention。
由索引模型根据 Issue 内容生成。
描述
The PostgreSQL tests for external.command/v1 can fail when the machine is busy.
What happens
In crates/registry-coordinator/tests/external_command_postgres.rs:131, the test harness sets attempt_timeout_milliseconds = 1_500. On a busy machine (load average 18 to 28), an ordinary attempt can take longer than 1.5 s. The attempt then ends attempt-timeout, and the run waits in attention instead of reaching finished. In one local run, 8 of the 9 tests failed this way. They passed when rerun alone and in the full suite.
Fix
Use a generous attempt timeout, for example 30 s, in every test except the one that checks the timeout itself (it asserts attention around line 566). That test keeps its short timeout and a delay longer than it.
decision_protocol also failed 9 tests once under the same load and passed on rerun. Its tests use the 8 s default timeout, plus one 800 ms timeout against a 2 s delay (tests/decision_protocol.rs:431-438). We have no failing log, so the cause there is unconfirmed.
- 主要语言
- Rust
- 星标
- 2
- 派生
- 0
- 平均合并
- 9 小时
- 30 天内合并 PR
- 200
环境准备
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
registrystack/registry-stack 的其他 Issue
-
area:breg criticality:p3 documentation good first issue triage:needs-implementation
难度 1/5 1 小时以内 新手友好度 85/100
registrystack/registry-stack#2415 ·
维护者通常 1 天内回复
-
scheduling: profile refusals on appointment detail, busy-import and operational routes log nothing未关闭area:scheduling criticality:p3 enhancement triage:needs-implementation
难度 2/5 1-3 小时 新手友好度 85/100
registrystack/registry-stack#2412 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 85/100
registrystack/registry-stack#2381 ·
维护者通常 1 天内回复
-
area:docs documentation
难度 2/5 1-3 小时 新手友好度 76/100
registrystack/registry-stack#2253 ·
维护者通常 1 天内回复
-
area:coordinator bug
难度 2/5 1-3 小时 新手友好度 82/100
registrystack/registry-stack#2252 ·
维护者通常 1 天内回复
查看 registrystack/registry-stack 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 72/100
-
could docs good first issue
难度 2/5 1-3 小时 新手友好度 82/100
维护者通常 1 天内回复
-
README em inglês未关闭good first issue help wanted priority:p2 type:docs
难度 2/5 1-3 小时 新手友好度 76/100
lucacasanova/homedeck#122 ·
-
It isn't clear which way the direction points when you insert a screw at a point可能已有人在做 关联的 PR 仍在进行中或已合并。 未关闭needs-triage
难度 1/5 1 小时以内 新手友好度 78/100
bherbruck/solvecraft#11729 · 1 条评论 · 1 个 reaction ·
-
难度 2/5 1-3 小时 新手友好度 72/100
维护者通常 1 天内回复