Suite: `make -C <repo> test` fails [137] because print-SRC_V_asan-gfx output includes make's "Entering directory" banner
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 2/5
- 预计耗时
- 1-3 小时
- 新手友好度
- 88/100
- Issue 类型
- 缺陷
- 描述清晰度
- 描述清楚
- 活跃度
- 活跃
调研方向
从 tests/test_asan_gfx.sh 和 tests/test_leak_guard.sh 开始,尤其关注 print-* readers,并使用 MAKEFLAGS=w 重现该问题。验证两个 readers 接收到的只有源文件名,然后运行 make -C test 并确认 section [137] 通过;添加针对 directory-banner 输出的请求检查。
由索引模型根据 Issue 内容生成。
描述
tests/test_asan_gfx.sh (suite section [137]) reads its source list with
SRCS=$(make -C "$ROOT" -s print-SRC_V_asan-gfx 2>/dev/null)
When the suite itself was started as make -C /path/to/EigenScript test, the outer make puts w (--print-directory) into MAKEFLAGS. The nested make inherits it, and -s does not suppress the banner, which goes to stdout. SRCS then contains make[1]: Entering directory '/path' / Leaving directory words, and the compile fails at link time:
/usr/bin/ld: cannot find make[1]:: No such file or directory
/usr/bin/ld: cannot find Entering: No such file or directory
/usr/bin/ld: cannot find '/home/user/wt1243': No such file or directory
...
FAIL: asan-gfx build failed
FAIL: test_asan_gfx.sh exited 1 without completing — section verdict is not trustworthy (#988)
The nested call in isolation, measured on main 38a20d5:
$ make -s print-SRC_V_asan-gfx | head -c 60
src/eigenscript.c src/lexer.c src/parser.c src/builtins.c
$ MAKEFLAGS=w make -C . -s print-SRC_V_asan-gfx | head -c 60
make: Entering directory '/home/user/wt1243'
src/eigens
cd <repo> && make test passes [137] (15/15). make -C <repo> test fails it deterministically (twice in a row), and the reported failure points at the gfx corpus rather than at the invocation. Found while gating an unrelated PR (#1330) from a different working directory.
tests/test_leak_guard.sh:51 reads make -s print-SOURCES the same way; it is exposed to the same inherited flag whenever it runs under a make that has w set.
Done when
- Both readers get a clean list whatever
MAKEFLAGSthe suite inherits: pass--no-print-directory, or clearMAKEFLAGS/MAKELEVELfor that call. -
make -C <repo> testpasses [137] on a tree wherecd <repo> && make testpasses. - A check that fails if a
print-*reader's output containsEntering directory. For example, run the reader withMAKEFLAGS=win the environment and assert that every word ends in.c.
- 主要语言
- C
- 星标
- 3
- 派生
- 7
- 平均合并
- 4 小时 15 分钟
- 30 天内合并 PR
- 106
环境准备
在浏览器里用你自己的 GitHub 账号启动这个项目的开发容器。
- 提供 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
InauguralSystems/EigenScript 的其他 Issue
-
area:stdlib found-by:code-review kind:silent-wrong
难度 2/5 1-3 小时 新手友好度 88/100
InauguralSystems/EigenScript#1338 ·
维护者通常 1 天内回复
-
area:lint-tooling found-by:critic kind:docs-drift
难度 2/5 1-3 小时 新手友好度 76/100
InauguralSystems/EigenScript#1335 ·
维护者通常 1 天内回复
-
area:ci found-by:critic kind:gate-defect
难度 2/5 1-3 小时 新手友好度 86/100
InauguralSystems/EigenScript#1311 ·
维护者通常 1 天内回复
-
enrolment: decide test_gc_runner_controls.py (exempt vs enrol) and whether floors need a ratchet未关闭area:gates found-by:critic kind:decision
难度 2/5 1-3 小时 新手友好度 65/100
InauguralSystems/EigenScript#1280 · 1 条评论 ·
维护者通常 1 天内回复
-
area:docs good first issue kind:docs-drift
难度 2/5 1-3 小时 新手友好度 70/100
InauguralSystems/EigenScript#1277 · 4 条评论 ·
维护者通常 1 天内回复
查看 InauguralSystems/EigenScript 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 85/100
microsoft/ebpf-for-windows#5604 ·
维护者通常 3 天内回复
-
难度 2/5 1-3 小时 新手友好度 84/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 70/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 1 天内回复
-
难度 1/5 1 小时以内 新手友好度 84/100
AcademySoftwareFoundation/openexr#2683 ·
维护者通常 1 天内回复