`replServer.setupHistory()` silently discards callback errors since v24.2.0
未关闭
还没有人认领这个 Issue。
repl
stale
- 主要语言
- JavaScript
- 星标
- 122k
- 派生
- 37.4k
- 平均合并
- 4 天 3 小时
- 30 天内合并 PR
- 272
描述
Version
26.0.0-pre
Platform
Linux ubuntu 6.8.0-87-generic #88-Ubuntu SMP PREEMPT_DYNAMIC Sat Oct 11 09:28:41 UTC 2025 x86_64 x86_64 x86_64 GNU/Linux
Microsoft Windows NT 10.0.26200.0 x64
Subsystem
No response
What steps will reproduce the bug?
- Add an intentional bad assert in the file of test case: test\parallel\test-repl-history-perm.js
- Run python tools/test.py --mode=release parallel
- It reported "All tests passed."
How often does it reproduce? Is there a required condition?
I can reproduce it everytime
What is the expected behavior? Why is that the expected behavior?
Test failed as 1 not equal 2 obviously.
What do you see instead?
[00:51]% 100|+ 3953|- 0]: Done
All tests passed.
Additional information
I try several versions of node. It seemed to happen from v24.2.0.
This is screenshot of v24.1.0
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
从 test/parallel/test-repl-history-perm.js 开始,并使用 python tools/test.py --mode=release parallel 重现该问题。比较 v24.1.0 和 v24.2.0 之间的行为,重点关注为什么有意设置的 Assertion 不会导致测试运行失败。当 replServer.setupHistory() 的回调错误导致测试命令报告失败时,即表示完成。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- javascript
- 领域
- testing-qa
- Issue 类型
- 缺陷
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 活跃度
- 活跃
- 描述清晰度
- 基本清楚
- 新手友好度
- 68/100