A failed --test run ends in an ASSERT FAIL trace from lib/test_runner.eigs
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
调研方向
从 lib/test_runner.eigs 第184行附近开始,这里失败的测试文件会触发断言;并检查 issue #1839 提到的现有退出码行为。然后找到 eigenscript --test 的回归测试,并补充对失败运行的最后一行输出和退出状态的覆盖,包括 --json;完成标准是失败时以退出码1结束且没有 runner 跟踪信息,而通过时的输出保持不变并以退出码0结束。
由索引模型根据 Issue 内容生成。
描述
When any test file fails, eigenscript --test ends its run with an ASSERT FAIL error and a stack trace pointing into lib/test_runner.eigs. The exit status (1) is right; the output reads as if the runner itself crashed, and the trace is noise on every red run. It also lands after the --json document.
To reproduce (v0.48.0, release build)
mkdir -p tdir
printf 'assert of [1 == 2, "one is not two"]\n' > tdir/test_a.eigs
printf 'assert of [true, "ok"]\n' > tdir/test_b.eigs
eigenscript --test tdir; echo "rc=$?"
Actual (tail)
Files: 2 | Passed: 1 | Failed: 1
Error .../lib/test_runner.eigs:184: ASSERT FAIL: 1 test file(s) failed
184 | assert of [0, (str of failed_files) + " test file(s) failed"]
| ^
at <module> (.../lib/test_runner.eigs:184)
rc=1
Expected
The summary line is the last thing printed and the process exits 1, as pytest or cargo test do. No error header or trace from the runner's own source. (set_exit_code, from #1839, or exit of 1 would do it without a raise.)
Done when
- On the repro,
--testprints noASSERT FAILand no trace intolib/test_runner.eigs, and still exits 1. -
--test --jsonon the repro writes only the JSON document to stdout and exits 1. - An all-passing run is unchanged (same output, exit 0).
- A regression test checks the failing case's last line and exit status, and fails on v0.48.0.
Found while checking docs/llms.txt against the runtime (PR #2193).
Generated by Claude Code
- 主要语言
- C
- 星标
- 3
- 派生
- 7
- 平均合并
- 6 小时 21 分钟
- 30 天内合并 PR
- 323
环境准备
在浏览器里用你自己的 GitHub 账号启动这个项目的开发容器。
- 提供 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
InauguralSystems/EigenScript 的其他 Issue
-
needs-triage
难度 2/5 1-3 小时 新手友好度 62/100
InauguralSystems/EigenScript#2311 · 1 条评论 ·
维护者通常 1 天内回复
-
needs-triage
难度 2/5 1-3 小时 新手友好度 62/100
InauguralSystems/EigenScript#2305 · 1 条评论 ·
维护者通常 1 天内回复
-
area:ci bug found-by:duet-audit
难度 2/5 1-3 小时 新手友好度 62/100
InauguralSystems/EigenScript#2283 ·
维护者通常 1 天内回复
-
area:docs found-by:duet-audit kind:docs-drift
难度 2/5 1-3 小时 新手友好度 72/100
InauguralSystems/EigenScript#2282 · 1 条评论 ·
维护者通常 1 天内回复
-
X11 title and ctype tests pick their display from $$ and can silently attach to a foreign X server未关闭area:gfx kind:bug
难度 2/5 1-3 小时 新手友好度 85/100
InauguralSystems/EigenScript#2216 ·
维护者通常 1 天内回复
查看 InauguralSystems/EigenScript 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 66/100
FujiNetWIFI/fujinet-firmware#2261 ·
维护者通常 1 天内回复
-
area/infrared type/bug
难度 2/5 1-3 小时 新手友好度 65/100
DarkFlippers/unleashed-firmware#1201 ·
维护者通常 1 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 62/100
pocoproject/poco#5626 ·
维护者通常 2 天内回复
-
难度 1/5 1-3 小时 新手友好度 78/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 72/100
FujiNetWIFI/fujinet-lib#272 ·
维护者通常 1 天内回复