Repository navigation
test: wave-2 pins I1 (Refs #2731 #2732 #2733 #2734) - #3175
Closed
caomengxuan666 wants to merge 4 commits into
Closed
caomengxuan666 wants to merge 4 commits into
caomengxuan666 wants to merge 4 commits into
Conversation
caomengxuan666
added a commit
that referenced
this pull request
Nov 11, 2026
…#2731 #2732 #2733 #2734) (#3245) W-I1 interactive routes: histexpand seeding respects explicit opt-out; interactive definitions record `main`; monitor + diag faces pinned (head 7075bed) Fixes #2733 Fixes #2732 Refs #2731 Refs #2734 ## Per-issue account (captain review, true merge-base 9ec0355 + top-up pins) | Issue | Stem | Base | This head | Head merged with current master | |---|---|---|---|---| | #2733 | issue2733_interactive_histexpand_routes (5) | 4 passed / 1 failed (sole red `histexpand_optout_controls`) | 5 / 0 | 5 / 0 | | #2732 | issue2732_interactive_bash_source_main (5) | 2 / 3 | 2 / 3 (record value now `main`; remaining reds are the view-layer pop covered on master by PR #3135) | 5 / 0 | | #2731 | issue2731_interactive_monitor_default (6) | 6 / 0 | 6 / 0 (regression lock; host-side follow-up stays with the niu chain) | 6 / 0 | | #2734 | issue2734_interactive_diag_line_segment (7) | 5 / 2 | 5 / 2 (pins and fail-first evidence only; product code for this face is a separate lane) | 7 / 0 (the separate repair lane reached master first as PR #3332; the pin file is byte-identical on both sides) | ## Changes - #2733 seeding: GNU shell.c:1839 seeds the interactive histexpand default from the invocation-time state, so an explicit opt-out is the user's word. Both unconditional seeding sites (`apply_init_interactive_defaults` in src/main.rs, `initialize_interactive_history` in src/script_driver.rs) now seed set-if-unset on the `__RUBASH_SETOPT_histexpand` carrier: a command-line `+H` and a startup-file `set +H` both survive. - #2732 record face: GNU make_cmd.c:746-762 records `main` for a function defined at the interactive top level. New `definition_source` in src/executor/function_calls.rs records `main` when the BASH_SOURCE stack is empty and the invocation is interactive; every other route keeps the existing `current_bash_source` value, and that function itself is unchanged. The remaining view-layer half of the issue landed on master with PR #3135; the two halves together take the stem to 5/0, as measured on the merged tree during review. - Pins for all four stems are carried in from PR #3175 unchanged. ## Verification (captain review, landed logs) - Base red name sets match the registration exactly (2733 sole red `histexpand_optout_controls`; 2732 the three interactive-definition cells; 2734 the piped and `-i -c` cells). - Neighbour stems on the head: issue1252 3/0, issue1668 6/0, issue2072 4/0, issue2948 6/0; issue2142 4/1 with the same single red name on the base tree (pre-existing, outside this change). - Lib bilateral (both trees built `--bin rubash` first): base 1243 passed / 0 failed / 4 ignored, head 1243 / 0 / 4, failure name-set difference empty. - `RUSTFLAGS="-D warnings"` check (lib + bins) rc=0 with the flag proven loaded; `cargo fmt --check` rc=0; whole-tree UTF-8 boundary hygiene rc=0; marker-literal check rc=0; `cargo check --tests` rc=0. - Head CI (final head): 10 success + 1 skipped + 0 failures. On the review head the macOS library step failed once on the `issue2859_jobs_face_reaped_job_does_not_count` count race, a known load-flake family outside this change's files; that step is green on the final head. ## What this PR deletes - The two unconditional "set histexpand on" seeding writes (behaviour deletion: an explicit `+H` / `set +H` is no longer overwritten by the interactive default). - No files, no public API surface, and no tests are deleted. The four pin files arrive unchanged from PR #3175.
Member
Author
|
队长以 superseded 关本 PR: 本 PR 的四个钉文件(issue2731/2732/2733/2734)已逐字节并入 PR #3245 并随其合入 master(merge commit
|
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.
第二波「钉先行」I1 组:交互路由四单的回归钉。本 PR 只新增测试、不动产品代码——四单的修法面被在飞的另一 PR 占着(script_driver 面),钉先落;根因与修法设计见车道 REPORT,门开后修法车道按设计动手。
覆盖(逐单):
tests/issue2731_interactive_monitor_default.rs(6 格):交互 monitor 在无终端路由默认 off,钉在set -o状态面(同族既有钉只覆盖$-字母与诊断),带链路格(monitor off 时后台作业链可用、set -m翻转后状态与$-同步)与 PTY 接管对照、非交互对照。main#2732 —tests/issue2732_interactive_bash_source_main.rs(5 格):交互顶层定义函数的BASH_SOURCE[0]应为main(GNU make_cmd.cmake_function_def默认序),带 g→f 链、source 链,以及-c(argv0)/脚本(路径)对照。Hin $-) missing on the-i -cand-i scriptinteractive routes #2733 —tests/issue2733_interactive_histexpand_routes.rs(5 格):-i -c与-i script路由的 histexpandH(GNU init_interactive 在调用层播种),带!!行为链与+H/set +H显式关闭对照。line N:segment GNU omits (and a spurious-c:segment on -i -c) #2734 —tests/issue2734_interactive_diag_line_segment.rs(7 格):交互路由诊断无line N:段、-i -c无伪-c:段(GNU error.c parser_error / report_error 两谓词分格),带-i script解析诊断保文件+行段的对照与非交互对照。期望值全部以 GNU bash 5.3.20 oracle 实测为准(探针矩阵:setsid 无控制终端定形、env 清空、HOME 指空目录);fail-first 逐格结果记在车道 REPORT(基底 f17644d),基底已绿的格如实记为回归锁。
本 PR 删除了什么
无(纯测试新增)。净变化:4 个新测试文件,+854/−0。