Skip to content

WIP: test(2261): nested-binary observer repair for the numbered readwrite control pin - #2296

Merged
caomengxuan666 merged 2 commits into
masterfrom
fix/2286-pin-harness
Oct 31, 2026
Merged

caomengxuan666 merged 2 commits into
masterfrom
fix/2286-pin-harness

Conversation

@caomengxuan666

Copy link
Copy Markdown
Member

Tests-only harness repair for the #2286 pin. No product code changes.

Problem

tests/issue2261_child_script_readwrite_fd0_regressions.rs's control pin issue2261_child_script_numbered_readwrite_control observed the numbered 3<> spawn delivery through ./child.sh 3<>num.txt — an ENOEXEC script child that rubash executes via its in-process script face, where spawn-delivered fd bindings do not appear the same way. Its green therefore could not by itself prove the spawn delivery face the control claims to guard — the same invalid-observer defect PR #2283 repaired for the #2270 pins. (The fd-0 <> pins in the same file are the script face's own subject and are untouched.)

Change

The observing child is now the nested rubash binary re-invoked as a real spawned process — the pattern PR #2283 / the #2272 pins use:

"<RUBASH>" -c 'echo via3 >&3' 3<>num.txt

The observation is identical: the child writes via3 to its fd 3 and exits 0. The redirect shape (3<>num.txt), the expected stdout (rc=0 + num.txt: [via3]), and the empty-stderr expectation are unchanged. An OBSERVER NOTE on the pin records why, citing #2286.

Verification (local)

  • cargo check --test issue2261_child_script_readwrite_fd0_regressions — clean.
  • Per-file rustfmt applied to the touched test file only; CR count 0; git diff touches only that one file (+17/−7).
  • The pin target itself was NOT run locally (compile rationing): pending the collector's batch verification under a scrubbed fd environment.

Refs #2286

…ubash spawn

Refs #2286

The control pin for the numbered `3<>` face observed spawn fd
delivery through `./child.sh`, an ENOEXEC script child that rubash
runs in-process, where spawn-delivered bindings do not appear the
same way — its green could not by itself prove the spawn delivery
face it guards (the same harness defect PR #2283 repaired for the
#2270 pins).

The observing child is now the nested rubash binary re-invoked as a
real spawned process (`"<RUBASH>" -c 'echo via3 >&3' 3<>num.txt`),
making the exact same observation: write `via3` to fd 3, exit 0.
The redirect shape and both expectations are unchanged. Tests
only; no product code touched.

Local verification: `cargo check --test
issue2261_child_script_readwrite_fd0_regressions` clean. The pin
target itself was not run locally (compile rationing) — it is
pending the collector's scrubbed-fd batch.
@caomengxuan666
caomengxuan666 marked this pull request as ready for review October 31, 2026 00:39
@caomengxuan666
caomengxuan666 merged commit 323e1f1 into master Oct 31, 2026
11 checks passed
@caomengxuan666
caomengxuan666 deleted the fix/2286-pin-harness branch November 2, 2026 01:09
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