Skip to content

test(ecosuite): bash-completion 2.14.0 corpus asset + _comp_expand_glob chain (Refs #2900) - #3126

Merged
caomengxuan666 merged 1 commit into
masterfrom
fix/T1-2900-wave1
Nov 15, 2026
Merged

caomengxuan666 merged 1 commit into
masterfrom
fix/T1-2900-wave1

Conversation

@caomengxuan666

@caomengxuan666 caomengxuan666 commented Nov 8, 2026 •

Copy link
Copy Markdown
Member

UNVERIFIED-BY-CAPTAIN — 180 单令第一波 T1 生态链车道(#2900)交付,待队长复核。

做什么

Refs #2900

把真 bash-completion 2.14.0 发行文件钉为生态语料资产,并加一条端到端链路测试,让 #2876 的 eval×extglob 缺陷类有语料门:

本 PR 删除了什么

无删除:纯新增测试资产与链钉(资产 3,349 行 + 测试 249 行 + MANIFEST 记账 25 行)。不改任何产品代码。

mvdan 差分与 #3033 的分界(本链核对结论)

…_expand_glob eval (Refs #2900)

The distro bash-completion file itself becomes an eco-corpus asset
(tests/fixtures/ecosuite/bash-completion/, sha256 recorded in
MANIFEST.md), and tests/issue2900_bash_completion_chain.rs drives it
end to end: source -> post-source state assertions -> the real
_comp_expand_glob called with the caller shape (executes the asset
eval at line 356) -> the caller registration loop. Plus the
eval x extglob cross-grid (five operators x gate on/off) as corpus
cells. Gate on the #2876 fix: chain + gate-on cells fail on
pre-#2876 master, controls stay green.
@caomengxuan666

Copy link
Copy Markdown
Member Author

【WIN-AGENT-AUDIT】

PR #3126 第1轮 — 建议:PASS
head: 5d84c82 base(merge-base): 88047f5 文件: 3 个 +3623/-0
关联 issue: #2900(状态:open,我核过的时间:本地当前;本 PR 无先验评论)

机制核查:

  • 纯测试 PR:MANIFEST.md + bash-completion 2.14.0 真实发行文件 + issue2900_bash_completion_chain.rs,零产品代码。钉的设计合理:不是 parse 检查而是运行时链(source → 状态断言 → 真调 _comp_expand_glob 触发 eval -- \"$1=($2)\" → [[ -x ]]+complete 注册断言)+ eval×extglob 5 算子 × gate on/off 交叉网格——正对 [bug] eval'd compound array assignment with an extglob element is a syntax error even with extglob on (bash-completion _comp_expand_glob shape) #2876 缺陷面(source-only 门漏过的运行时 eval 路径)。
  • 资产真实性:本地 sha256 = 859ddde49ce594914f4c4ea108aed73d834c51f12839f36135e319b5f86d0abc 与钉断言一致;并联网核对上游 scop/bash-completion tag 2.14.0 的 bash_completion 文件,锚点全对(line 45 shopt -s extglob progcomp、line 335 _comp_expand_glob()、line 356-357 eval -- \"$1=()\"/eval -- \"$1=($2)\"、line 1947 _comp_backup_glob=、line 2031 _comp__init_set_up_service_completions)——确为真发行文件,非改造夹具。MANIFEST provenance 表与之一致。
  • sha2 dev-dep 为既有(Cargo.toml 已有,供 build.rs 测试目标),非本 PR 新增。

腿(逐项):

  • 钉自跑:issue2900_bash_completion_chain 为 #![cfg(unix)](需 std::os::unix::fs::PermissionsExt + [[ -x ]])——Windows 本机 0 tests;head 的 Linux CI「Rust tests」全绿,钉 3 测试在 Linux 实跑通过。
  • fail-first/钉有效性:本 PR 为纯钉,被守机制([bug] eval'd compound array assignment with an extglob element is a syntax error even with extglob on (bash-completion _comp_expand_glob shape) #2876 eval×extglob)已在 base 88047f5 上(base 手跑 grid_on 5/5 全收)——base 上钉绿是正确预期(防回归钉,非 fix-first 钉)。Windows 等价链实测:head 跑 source→_comp_expand_glob 链 step1-3 全过(rc=0、init_fn=self-unset、extglob/progcomp on、backup_glob 字面值正确、count=3 且 alpha.bak/beta~/#alpha# 被负 extglob 排除);step4 需 unix -x 语义未在本机验证(Linux CI 已绿覆盖)。
  • lib 双边:head 失败名集 {issue2084_session_end_restores_host_process_state} / base 同集 / 差集 ∅。
  • -D warnings:钉文件编译干净(stem 编译通过;--tests 面既有无关 issue2302 dead-code,非本 PR)。
  • 卫生:rustfmt --check 钉文件 FMT-OK;marker-lint OK(117 consts);utf8-boundary clean。
  • CI:全绿(含 GNU goldens / Rust tests×2 / niubash build / 全部其它)。
  • GNU 对照:WSL GNU bash 5.3.20(1)。eval×extglob 网格逐格复跑:gate-on 5 算子全收字面值 rc=0;gate-off 5 算子全拒 eval: line N: syntax error near unexpected token '(' rc=1——与钉断言一致。脚本:target/probes-3126/{grid_on,grid_off,chain_win}.sh。

F 点:无。

续作记录:未动代码。

未跑/VOID 的腿:

  • 钉 stem 本地 0 tests(cfg unix)+ chain step4 的 [[ -x ]]/complete 面未在本机跑——已由 Linux CI 绿 + Windows step1-3 等价链 + GNU 网格双侧验证覆盖。

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