Skip to content

test: de-ignore bf-w3-a pins for #1610/#1611 (fixes via #1663) - #1815

Merged
caomengxuan666 merged 3 commits into
masterfrom
fix4/bf-w3-a-deignore-1609-1611
Oct 27, 2026
Merged

caomengxuan666 merged 3 commits into
masterfrom
fix4/bf-w3-a-deignore-1609-1611

Conversation

@caomengxuan666

Copy link
Copy Markdown
Member

Follow-up to #1613 (merged as b926c8b): remove the #[ignore] attributes from the bf-w3-a drift pins whose fixes landed via #1663 (mopup-a).

De-ignored and verified green on master b926c8b (cargo test --locked, the three targets):

Deliberately NOT de-ignored: the #1609 pin in tests/issue1114_eval_extglob_gate_regressions.rs. It still fails deterministically (3/3 isolated runs). The eval diagnostic routing itself now works (the syntax error reaches stdout through 2>&1, and rc/m2 markers match), but the pin's !stdout.contains("m1") assertion cannot hold: the diagnostic's offending-line echo contains the literal text echo m1. The fix line's own companion pin (tests/issue1609_eval_parse_diag_routing_regressions.rs, lines 43-45) documents exactly this and asserts !stdout.lines().any(|line| line == "m1") instead. The bf-w3-a pin's assertion needs that same correction before it can be de-ignored; left untouched here pending adjudication.

The script-file BASH_FUNC import pin (issue1275 file) and both time-errexit
report pins (issue1278 file) pass on current master now that the mopup-a
fixes (#1663) are in; remove their #[ignore] attributes so they gate again.

The #1609 companion pin (issue1114 file, eval extglob gate) is NOT
de-ignored here: it still fails deterministically — its
!stdout.contains("m1") assertion collides with the offending-line echo
inside the (now correctly routed) eval diagnostic. The fix line's own
issue1609 companion pin documents this and asserts line-equality instead.
Left ignored pending adjudication of that assertion.

Verified: cargo test --locked for the three targets on b926c8b —
issue1275: 1 passed; issue1278: 2 passed; issue1114: 1 failed (above).
…pin

Main-session ruling: the old !stdout.contains("m1") assertion is an unsatisfiable wrong-pin construction. The eval parse diagnostic's offending-line echo itself contains the literal text `echo m1`, so the GNU-shaped (correctly routed) diagnostic always trips a substring check even though m1 was never executed. Mirror the #1663 companion pin (tests/issue1609_eval_parse_diag_routing_regressions.rs:43-45), which already documents this and uses a whole-line assertion: !stdout.lines().any(|line| line == "m1"). Discriminating power is preserved: m1 as a standalone executed output line is still caught. No other assertion changed, no product code touched; the pin's #[ignore] is removed so it runs for real now that the #1609 diagnostic routing fix (via #1663) is in.
@caomengxuan666

Copy link
Copy Markdown
Member Author

补齐:#1609 的钉(原 PR 尚欠这一条,现已补上)

本 PR 原只含 #1610/#1611 的三条解钉;#1609 的钉(tests/issue1114_eval_extglob_gate_regressions.rs 的 eval_parse_honors_extglob_gate)此前悬置,现按主会话裁定补齐,本 PR 至此四条钉全齐。

病灶与裁定:解钉后该钉确定性失败 3/3,唯一失败断言是 !stdout.contains("m1")。诊断路由本体已修好——eval 语法错误诊断的 offending-line 回显本身含字面文本 echo m1,该断言对 GNU 形状的输出不可满足,属错钉构造。#1663 的 companion 钉(tests/issue1609_eval_parse_diag_routing_regressions.rs:43-45)已注明此点并改用整行相等断言,本钉按同法修正。

修正(commit e8222a17,tests-only,未动产品代码、未动其他断言):

  • !stdout.contains("m1") → !stdout.lines().any(|line| line == "m1")(判别力保留:m1 若真作为独立行输出仍被逮住),并加注释引 companion 钉出处;
  • 移除该钉的 #[ignore]。

集成与验证(普通 merge 合入 master a9385b4c,merge commit ca90bd46,无冲突;槽内真跑,日志落盘判读):

  • cargo build --locked rc=0
  • 定向四文件全过:issue1114 1 passed(eval_parse_honors_extglob_gate 在解钉状态下实跑通过,0 ignored)、issue1275 1 passed、issue1278 2 passed、issue1609 3 passed
  • lib(--skip login_posix_env):771 passed / 1 failed / 1 ignored,唯一失败 ownership_unary_operators_check_existing_file 与基线允许项全等
  • 改动文件 rustfmt --check 过、CR=0

保持 draft,待主会话合并。

@caomengxuan666
caomengxuan666 marked this pull request as ready for review October 27, 2026 03:39
@caomengxuan666
caomengxuan666 merged commit 44ee0ae into master Oct 27, 2026
8 of 9 checks passed
SpookyWaste pushed a commit to SpookyWaste/rubash that referenced this pull request Oct 29, 2026
…ler pin (unixwin#1824)

Regression introduced by PR unixwin#1809 (commit 5c3abde, merged as
5275dde): pinning an interactive shell's untrapped SIGINT to the
mailbox handler at every command boundary (GNU sig.c:315-316
initialize_terminating_signals — an interactive shell catches
SIGINT itself from startup) invalidated the foreground guards'
arming predicate, which read "a handler is installed" as "the trap
path owns the delivery". With untrapped SIGINT sitting at the
handler from the boundary on, the guards never armed during
in-process blocking waits, so the delivery queued in the mailbox
with no consumer: inside a subshell frame the builtin sleep slept
through the ^C (observe_signals_while_blocked is frame-guarded,
and take_sigint_abort is armed-gated), and a blocked `read` ate
the next input line as its own input while the stranded delivery
discarded the rest of the unit at the next boundary.

Bisect over the four-merge interval: both unixwin#1639 pins green at
a9385b4 (unixwin#1813) and 44ee0ae (unixwin#1815), red at 5275dde (unixwin#1809);
pin texts byte-identical across the whole interval, pins unedited.

Fix the invariant at the shared predicate
(foreground_sigint_needs_protection): protection is needed when
SIGINT is UNTRAPPED — the trap table decides ownership — and the
kernel disposition is one of the two untrapped steady states,
SIG_DFL or our mailbox handler. A trapped SIGINT keeps the trap
path (the guard must not steal its delivery); an entry-ignored
SIGINT stays at SIG_IGN and untouched.

The hold/release pair becomes symmetric: hold_fg_sigint records
the steady state it found (first holder wins) and release_fg_sigint
restores it, so a wait that began under the pin leaves SIGINT at
the Handler instead of flipping it to Default until the next
boundary reconcile re-pins it.

GNU references: sig.c:315-316 (interactive SIGINT catch),
jobs.c:3086-3102 (wait_for records deliveries during a wait),
jobs.c:3315-3316 (ADDINTERRUPT discard classification).
@caomengxuan666
caomengxuan666 deleted the fix4/bf-w3-a-deignore-1609-1611 branch October 30, 2026 01:41
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