Skip to content

test(ecosuite): pin mvdan/sh 559-snippet execution differential in-repo (Refs #2906) - #3131

Merged
caomengxuan666 merged 7 commits into
masterfrom
fix/T1-2906-wave1
Nov 10, 2026
Merged

caomengxuan666 merged 7 commits into
masterfrom
fix/T1-2906-wave1

Conversation

@caomengxuan666

Copy link
Copy Markdown
Member

Refs #2906

概要

把 eco-2906 已跑完的 mvdan/sh 执行差分钉入仓。此前差分只活在 ecosuite 工作区(抽取器/驱动未入任何仓、560 片段从未入 rubash 仓、16 个旧钉住片段无任何测试引用)。

本 PR 删除了什么

无删除:净新增 567 文件(语料 560 + 账本 3 + README 1 + 抽取器 1 + 测试 1 + MANIFEST 增补节)。取代的是「差分只活在仓外工作区」的不可复现状态;旧 mvdan-n/ 16 夹具保留原样并由新钉逐字节看护。

UNVERIFIED-BY-CAPTAIN

… (Refs #2906)

560 snippets (559 numbered + tSKIP appendix) extracted from
mvdan/sh@aebdf2b8 syntax/filetests_test.go by the pinned extractor
(scripts/mvdan-sh-extract.py, validation gate = the 16 historical
mvdan-n fixtures byte-for-byte), plus MANIFEST.tsv provenance, the
GNU bash 5.3.20 oracle ledger (parse rc + exec rc + stdout per
snippet, chain isolation, path-normalized) and the tracked
divergence ledger (23 snippets on master 88047f5, each with its
filed issue). Reconciliation vs the eco-2906 canonical run
(27 exec DIFF on 6eb861b): t0284/t0498/t0538 turned SAME via merged
fixes; t0447 no longer reproduces in debug-binary runs.
…efs #2906)

Runs all 560 snippets under the binary under test with the eco
chain's isolation (fresh cwd+HOME, env={PATH,HOME}, stdin /dev/null,
5s timeout), comparing parse rc and stdout+rc against the pinned
GNU ledger; the 23 tracked divergences must reproduce their recorded
behaviour exactly and stay divergent, so a landed fix turns the cell
red until the ledger row is removed. Corpus completeness (559
MANIFEST rows + tSKIP) and the 16 historical mvdan-n fixtures'
byte-identity with the corpus are asserted in the same stem. stderr
is not compared (advisory axis). CI wiring is #3033's decision; this
pin adds no CI job.
Verification under full-stem parallelism on a contended machine
showed a load-shaped timeout failure in one shard; the same shard
passes standalone in 12 s. A timed-out parse/exec run whose
expectation is not TIMEOUT is now retried once before being judged
(a real hang times out twice and still fails). Completed runs are
never retried: rc/stdout mismatches are deterministic.
@caomengxuan666

Copy link
Copy Markdown
Member Author

返工与复核补记(2026-11-10)

Refs #2906

  • 钉面返工:t0447、t0449 两格改为 PPID 掩码断言——normalize() 末尾接 mask_ppid(),变量转储中的 PPID 数字串(裸形 PPID=… 与 declare -ir PPID="…" 引号形)统一替换为 ;gnu-ledger.tsv 的 t0447、t0449 两行已按掩码后形态重录,其余 558 行未动。
  • 合入前快照 B:7P/3F,三红恰为预登记缺陷集(t0449、t0447 的 PPID 行与一条同族)。
  • 判定规则更新:探针构造以 GNU 实测为准、与旧账面期望同绑;期望错位时先以确认探针验证构造语义,再按实测取证口径,不按旧期望弯钉。
  • 当前状态:返工改动已落盘于车道工作区(尚未进入本 PR 分支),分支落位与后续全茎复跑、合入等队长裁定与批跑闸信号;本 PR 对所引 issue 仅为引用关系,该 issue 状态不随本 PR 变化。

@caomengxuan666
caomengxuan666 marked this pull request as ready for review November 10, 2026 03:56
@caomengxuan666
caomengxuan666 merged commit 5a9c553 into master Nov 10, 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