Skip to content

test: wave-2 pins I1 (Refs #2731 #2732 #2733 #2734) - #3175

Closed
caomengxuan666 wants to merge 4 commits into
masterfrom
fix/I1-wave2
Closed

caomengxuan666 wants to merge 4 commits into
masterfrom
fix/I1-wave2

Conversation

@caomengxuan666

Copy link
Copy Markdown
Member

第二波「钉先行」I1 组:交互路由四单的回归钉。本 PR 只新增测试、不动产品代码——四单的修法面被在飞的另一 PR 占着(script_driver 面),钉先落;根因与修法设计见车道 REPORT,门开后修法车道按设计动手。

覆盖(逐单):

期望值全部以 GNU bash 5.3.20 oracle 实测为准(探针矩阵:setsid 无控制终端定形、env 清空、HOME 指空目录);fail-first 逐格结果记在车道 REPORT(基底 f17644d),基底已绿的格如实记为回归锁。

本 PR 删除了什么

无(纯测试新增)。净变化:4 个新测试文件,+854/−0。

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.
@caomengxuan666

Copy link
Copy Markdown
Member Author

队长以 superseded 关本 PR:

本 PR 的四个钉文件(issue2731/2732/2733/2734)已逐字节并入 PR #3245 并随其合入 master(merge commit 693ec410)。处置账:

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