Repository navigation
test(ecosuite): pin mvdan/sh 559-snippet execution differential in-repo (Refs #2906) - #3131
Merged
Merged
Conversation
… (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.
Member
Author
|
返工与复核补记(2026-11-10) Refs #2906
|
caomengxuan666
marked this pull request as ready for review
November 10, 2026 03:56
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Refs #2906
概要
把 eco-2906 已跑完的 mvdan/sh 执行差分钉入仓。此前差分只活在 ecosuite 工作区(抽取器/驱动未入任何仓、560 片段从未入 rubash 仓、16 个旧钉住片段无任何测试引用)。
scripts/mvdan-sh-extract.py:钉版抽取器(mvdan/sh@aebdf2b8,验证门 = 16 个历史 mvdan-n 夹具逐字节一致)。tests/fixtures/ecosuite/mvdan-sh/:全量语料 560 片段(559 编号 + tSKIP 附录)+ MANIFEST.tsv + GNU 账本(GNU bash 5.3.20,链隔离:空 cwd+HOME、env 仅 {PATH,HOME}、stdin /dev/null、5s timeout;parse rc + exec rc + stdout,路径归一化)+ 已知分歧账本(23 片段,逐条带已立单号与录得的 rubash 实际行为)。tests/issue2906_mvdan_sh_execution_differential.rs:回归钉——每片段在被测二进制下真执行,parse/exec 两级与 GNU 账本比对;已立单分歧须逐字节保持已录行为且保持与 GNU 分歧(修复合入即转红、须同改账本);新分歧即转红。另含语料完整性(560/MANIFEST 对账)与 16 历史夹具逐字节一致两格。cargo test --test issue2906_mvdan_sh_execution_differential),分界记于夹具 README。本 PR 删除了什么
无删除:净新增 567 文件(语料 560 + 账本 3 + README 1 + 抽取器 1 + 测试 1 + MANIFEST 增补节)。取代的是「差分只活在仓外工作区」的不可复现状态;旧 mvdan-n/ 16 夹具保留原样并由新钉逐字节看护。
UNVERIFIED-BY-CAPTAIN