Repository navigation
ci: unmask master-red — issue2875 out/ resolver + masked test/corpus fixes - #3750
Conversation
…gnostics Two pieces of master-CI repair: - docs/api-ledger.md: niubash master calls Session::cwd (repl.rs spell-correct path, shell.borrow().session().cwd()) but the §5.5 census entry was never recorded — the 'niubash builds against this tree' check now fails census-missing. Record the face in §2.3 and the §6 symbol block. - consumer_tests.rs issue2875_require_rubash_binary: the CI panic reports no diagnostics about which resolver arm fired or what current_exe was. Report CARGO_BIN_EXE_rubash, both arms, and the resolved path in the assert so the next failing run names the actual gap instead of only the precondition. Refs #3605 Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
|
队长 adjudication:本 PR 的 ledger 半面与已交付的锁步对 #3704(rubash)+ niu #1021 重叠,诊断半面是新东西,分开处理。 重叠(ledger,+2 行):§2.3 的 裁决:锁步对 #3704 + niu #1021 不变,继续按原计划合入。 #3704 的 15 行新增与 niu #1021 的新增已验逐字节相同、checker 两侧 rc=0;改用本 PR 的行文须把 niu #1021 也改写重验,白费已验的锁步。请把本 PR rebase 为只留诊断半面( 诊断半面本身有价值,应保留:改动只把 resolver 三臂先取值再断言,行为与旧式等价( 若你更想要本 PR 的 ledger 行文而不是 #3704 的,说一声,我把 niu #1021 改写成这版行文重验锁步——默认不动。 |
CI's newer toolchain places the unit-test binary for a package with a build script inside the package's own build-dir out dir (target/debug/build/rubash/<fingerprint>/out/rubash-<fingerprint>), so the deps-only gate in test_rubash_binary_from_current_exe returned None and issue2875_input_procsub_child_runs_as_rubash_shell panicked on every CI run while passing locally under the classic deps layout. Accept 'out' alongside 'deps'; the ancestor walk already reaches <target>/debug/rubash (which the workflow's cargo build --locked step produces) from that layout, and a file literally named rubash[.exe] still never matches inside it, so production fallback to current_exe is unchanged. Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
…875 veil
The issue2875 panic ran nextest's fail-fast at test 23/1249, so two
pre-existing Linux CI failures were never observed:
- tests/{issue2043,issue2046}/fn rubash() resolved the bin target by
popping twice off current_exe — correct only under the deps/ layout.
Under the newer cargo build-dir layout (test binaries inside
build/<pkg>/<fingerprint>/out/) the walk lands inside the fingerprint
dir and spawn fails ENOENT. Anchor on env!("CARGO_BIN_EXE_rubash")
instead, like the rest of the suite.
- corpus.json case sleep-fake kept its Replace-era expectation
(rc=0, no FAKE line) after #3510 flipped the unix sleep face to
ResolvablePolicy::Yield (user ruling 2026-11-14, rubash#3488). A
yielding face spawns the PATH sleep, so the fake script runs —
GNU shape. Relabelled registered->gnu per the command-sleep-fake
precedent in the same file.
Refs #3605
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
|
跟进(新头 c1e328c,队长核):这一推没动 ledger 半面—— 剩下的内容比裁决时更大,而且是真东西:诊断引出的 resolver 修法( ledger 摘掉后入 Wave 2 复核:Linux 腿按名、corpus 翻转的裁决核实(#3510 的 sleep 翻转)、 |
|
Linux 腿已按名(run 43770252167,新头 c1e328c):lib 步全绿——issue2875 在三条 lib 腿上都绿了(goldens、macOS、Linux Rust tests 的 lib 步皆 success)。本 job 只红在“Run all integration test stems”一步:81 格。 81 格的定性:80 格是既存掩盖红,不是本 PR 造成的。基底 run 43749176330 同 job 的步骤表为证:lib 步红(issue2875)后“Run all integration test stems”一步是 skipped——自 issue2875 变红以来,该步在 CI 上从未跑过,这些格的真实状态一直未知;本 PR 修掉 issue2875,lib 一过,该步首次跑满,潜红浮现。与 niu 侧 issue683 修掉后 CRLF 格浮现同构,只是规模更大。80 格分布在约 30 个 stem 上(aliases/arith/background/cond/external/group/help/heredoc/issue1868/1872/1915/2024/2280/2308/2613/2642/2657/2688/2802/3312/3313/3348/3382/1253/modernish/pipeline/subshell/trapped_int/type_a/wait 等),与 #3689 普查的 43 红 stem 高度重叠——归因走普查口径,不在本 PR 里逐格修。 剩下 1 格与本 PR 有关: 合入影响请知悉:本 PR 合入后,issue2875 基线红消失,但 Linux Rust tests 腿会从“1 格红”变成“81 格红”(直至普查归因消化完)——不是产品回退,是掩盖解除。是否现在合、还是先消化一部分再合,由你定;队长建议合(掩盖比噪音更糟,普查车已有归因口径)。 |
…1021 lockstep pair Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Same ruling as the corpus flip (rubash#3488 user ruling 2026-11-14, #3510): the unix simple-command face yields every parseable sleep form to a real spawn, so the PATH fake runs and prints FAKE-sleep — the GNU shape (bash has no sleep builtin). The pin asserted the retired Replace-era expectation 'fake sleep must not run'. Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
|
按裁决执行完毕(新头
本 PR 现只含:out/ resolver 修法 + 五值诊断 + 3 处 |
|
两处合规都已核实通过(新头 df620e7):
新头 CI 已按名(run 43772822733):goldens、macOS、Linux lib 步、CLI、shell 功能、双 cross-target、Windows 编译皆绿——issue2875 三腿全绿。唯一红步仍是 integration stems:82 格(旧头 81 格)。差量:shape1 + 本 PR 现入 Wave 2 复核(corpus 翻转核实、out/ 布局寻径复核、守卫扫描;钉 fail-first 已由 CI 证实:issue2875 基底红、头上绿)。合入 trade-off 不变:issue2875 基线红消失,Linux 腿 82 格红成新可见基线直至普查消化。 |
|
【WIN-AGENT-AUDIT】s2 PR #3750 第1轮 — 建议:PASS(已合并 304a516) 机制核查:
腿:
F 点:无 未跑/VOID 的腿:
合并:304a5161176a47add1cdf0b52f61e531f7bc570e(squash,未删分支;草稿已先 ready) |
Summary
CI governance for the master-red family (head
0a405d8a); every in-flight PR inherits it. Ledger half removed per adjudication — theSession::cwdrecord belongs to the #3704 + niu#1021 lockstep pair.issue2875
no rubash binary found— root cause + fix: CI resolvescurrent_exetotarget/debug/build/rubash/<fingerprint>/out/rubash-<fingerprint>(newer cargo places a package-with-build-script's unit-test binary inside its ownout/dir instead ofdeps/). Thedeps-only gate intest_rubash_binary_from_current_exereturnedNoneon every CI runner while the classic layout kept it green locally. Gate now acceptsouttoo; the ancestor walk reaches<target>/debug/rubashfrom either layout; five-value diagnostics kept (CARGO_BIN_EXE_rubash, both resolver arms,current_exe, resolved).Unmasked by the fix (nextest fail-fast at test 23/1249 had hidden these):
tests/{issue2043,issue2046}/fn rubash()popped twice offcurrent_exe— only valid underdeps/; ENOENT underout/. All three files now anchor onenv!("CARGO_BIN_EXE_rubash")like the rest of the suite.sleep-fake+ theissue2036_shape1_plain_script_fakepin kept Replace-era expectations after fix(executor): yield parseable sleep to a real spawn on unix (Refs #3488) #3510 flipped the unix sleep face toYield(user ruling 2026-11-14, rubash#3488): a yielding face spawns the PATH fake →FAKE-sleep— the GNU shape. Both flipped.Merge note: once this lands, the Linux Rust-tests leg goes from "1 red cell" to "81 red cells" — 80 are pre-existing masked red (integration stems never ran since issue2875's fail-fast; attribution follows the ci: run regression-pin census even when lib step fails (Refs #3656) #3689 census), not a product regression.
Verified locally:
cargo test --lib issue2875_..., modified integration tests spawn correctly, shape1 pin green; remaining local diffs are Darwin-vs-Linux environmental.Refs #3605