Repository navigation
test: de-ignore bf-w3-a pins for #1610/#1611 (fixes via #1663) - #1815
Merged
Merged
Conversation
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).
…w3-a-deignore-1609-1611
…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.
Member
Author
补齐:#1609 的钉(原 PR 尚欠这一条,现已补上)本 PR 原只含 #1610/#1611 的三条解钉;#1609 的钉( 病灶与裁定:解钉后该钉确定性失败 3/3,唯一失败断言是 修正(commit
集成与验证(普通 merge 合入 master
保持 draft,待主会话合并。 |
caomengxuan666
marked this pull request as ready for review
October 27, 2026 03:39
This was referenced Oct 27, 2026
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).
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.
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):tests/issue1275_function_reexport_regressions.rs([bug] Script-file child shells do not import BASH_FUNC_* functions (residual of #1275) #1610, script-file BASH_FUNC import): 1 passedtests/issue1278_time_errexit_regressions.rs([bug] set -e on a time command discards the timing report (residual of #1278) #1611, time errexit report, both plain and -p): 2 passedDeliberately 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 textecho 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.