Skip to content

test: wave-2 pins G3147 (Refs #3147, #3148) - #3162

Merged
caomengxuan666 merged 2 commits into
masterfrom
fix/G3147-wave2-pins
Nov 15, 2026
Merged

caomengxuan666 merged 2 commits into
masterfrom
fix/G3147-wave2-pins

Conversation

@caomengxuan666

@caomengxuan666 caomengxuan666 commented Nov 8, 2026 •

Copy link
Copy Markdown
Member

第二波钉先行(G3147 组):两单的修法面被在飞 PR #3120 占着(#3147 依赖其 recorded_resolution_spelling、#3148 的分类复用同受门控),本 PR 只落回归钉与根因/修法设计(设计在车道 REPORT),门一开修法车道按钉施工。钉的期望全部按 GNU bash 5.3.20 oracle 逐字节实测,与门控 PR 结果无关。

Refs #3147
Refs #3148

钉

  • tests/issue3147_fresh_walk_describe_spelling.rs(10 格):fresh PATH walk 的 command -v / type / type -a 必须打印 walk 的 as-written join(findcmd.c:553 sh_makepath;type.def:211 describe_command)。覆盖 ./rel1、裸相对、空元素、.、尾随斜杠、绝对元素(对照)、type -a 混合元素、fresh→执行→再 describe 链路、相对元素第二位、未找到(对照)。
  • tests/issue3148_exec_bad_interpreter_classification.rs(14 格):exec 内建 spawn 失败必须走 execute_cmd.c:6136-6202 shell_execve 分类——bad interpreter 走 sys_error 形(无行段、126、报告名按 exec.def:172 full_pathname),文件不存在/无执行位走 file_error 形(带行段、127/126),exec: 中缀只属 PATH 搜索失败臂。覆盖行 1/行 4、子目录名、PATH walk、interp 带参、interp CRLF ^M、ENOEXEC 回退、|| 链路、子 shell 链路、-c 形与对照格。

本 PR 删除了什么

无(纯测试新增)。净行数:+578(两份新钉文件),产品代码零改动。

fail-first

基底 f17644d 实跑(构建槽排队约 2 小时后获槽,合并脚本一次跑完;全量日志在车道 logs/):

GNU findcmd.c:553 sh_makepath constructs the as-written join; builtins/type.def:211 describe_command prints it verbatim. Pin covers command -v / type / type -a over relative, empty, dot, trailing-slash and absolute PATH elements plus the fresh->execute->describe chain. Expectations byte-exact from GNU bash 5.3.20 probes.
GNU execute_cmd.c:6136-6202 shell_execve classifies a failed execve: sys_error bad interpreter (no line segment, 126) for an executable #! file whose interpreter is missing, file_error (line segment) for missing/non-executable files, full_pathname report names per builtins/exec.def:172. Expectations byte-exact from GNU bash 5.3.20 probes.
@caomengxuan666

Copy link
Copy Markdown
Member Author

【WIN-AGENT-AUDIT】
PR #3162 第1轮 — 建议:PASS
head: 5fa6f1c base(merge-base): f17644d 文件: 2 个 +578/-0
关联 issue: #3147(closed)#3148(closed)(我核过的时间:2026-11-15 本地)

机制核查:

腿:

  • 钉自跑(base+overlay ≡ head):issue3147_fresh_walk_describe_spelling 3 passed / 7 failed;issue3148_exec_bad_interpreter_classification 4 passed / 10 failed。
  • fail-first(base f17644d 实测):3147 红 = {bare_relative_element, chain_fresh_execute_describe_again, dot_element_means_cwd, dot_slash_element_describe_verbs, empty_element_means_cwd, relative_element_second_position, trailing_slash_element};3148 红 = {bad_interpreter_line1, bad_interpreter_no_line_segment_at_line4, bad_interpreter_subdir_report_name, bad_interpreter_via_path_walk, dash_c_form_prolog_is_zero, interp_arg_truncated_at_blank, interp_crlf_caret_m, not_executable_file_error_shape, or_list_does_not_catch_exec_failure, subshell_exec_failure_propagates_status}。红名与缺陷族一致,无假绿。
  • lib 双边:base 1206/0/4;差集 {}。
  • -D warnings:0。卫生:fmt/marker/utf8 全净。
  • CI:8/8 全绿。
  • GNU 对照(/usr/local/bin/bash 5.3.20,LF 脚本文件,夹具目录结构对齐):相对/空/dot/尾斜杠/绝对 PATH 分量拼写、hash 失效重述、坏解释器 126 无行段、缺失 127 带行段、不可执行 126、ENOEXEC 回退、解释器参数截断、CRLF、PATH 失败、子壳/|| —— 全部一致。

F 点:无。

未跑/VOID 的腿:head 分支本体复跑——同上,等价覆盖。

@caomengxuan666
caomengxuan666 marked this pull request as ready for review November 15, 2026 02:03
@caomengxuan666
caomengxuan666 merged commit 3d55d25 into master Nov 15, 2026
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant