Repository navigation
test(regression): failing tests for the two live P1s — comsub on non-UTF-8 files (#772) and the unbounded-producer hang (#761) - #777
Merged
Conversation
…UTF-8 files (#772) and the unbounded-producer hang (#761) Reproductions carry #[ignore = "rubash#NNN: diverges on master …; un-ignore with the fix"] so CI stays green while the defect is real; each file also carries controls that pass today, so a green reproduction cannot be mistaken for a broken fixture. The hang tests are bounded and kill their process tree on expiry: an unbounded hang test turns a red CI into a stuck CI.
This was referenced Oct 17, 2026
This was referenced Oct 19, 2026
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.
What this is
Failing Rust regression tests for the two P1 defects from this audit that are still live on master, in the shape this repository already uses (
tests/issueNNN_*.rs,env!("CARGO_BIN_EXE_rubash"), expectations quoted from GNU bash 5.3.0):tests/issue772_comsub_non_utf8_file_regressions.rs$(cat FILE)on non-UTF-8 content: empty (or truncated) substitution plus a bogusNo such file or directorytests/issue761_pipeline_unbounded_producer_regressions.rsyes | true); RSS grows ~250 MB/sWhy they are
#[ignore]d, and why that is the pointA reproduction that is red on
mastercannot be merged un-ignored without turning CI red for everyone. So each reproduction carries#[ignore = "rubash#NNN: diverges on master …; un-ignore with the fix"]:2 passed; 0 failed; 4 ignoredand3 passed; 0 failed; 2 ignored;If you would rather not add
#[ignore]attributes (I noticed a slice policy against new ones), tell me the mechanism you prefer — an env-gated opt-in in the style ofRUBASH_REQUIRE_BASHDB_FIXTURE=1, or a separate target — and I will convert it.Controls are part of the file, on purpose
Each file carries tests that pass today, because a green reproduction is otherwise indistinguishable from a broken fixture:
cat f > out; wc -c < outkeeps the byte; andx=$(cat < f)— the redirection form is correct today, which is what localises the defect to the operand form inside a substitution. (I first wrote the redirection case as a reproduction; running it showed it passes, so it became a control. Worth saying out loud because it narrows the trigger.)yes | truedrains into RAM at ~250 MB/s (hangs on HEAD too) #761:yes | head -1andyes | head -1 | trueterminate — they proveyesresolves and that a bounded pipeline is fine, so a hanging case cannot be blamed on the fixture.The hang tests are bounded, and the tree is killed
A hang test that is not bounded turns a red CI into a stuck CI, and a red run that does not kill the tree leaves a
yesbehind for the next test. Sorun_boundedwaits at mostBOUND = 10 s, thentaskkill /F /Ton the shell's pid and fails with the bound it hit. Verified: the four--ignoredreproductions finish in 41 s (i.e. four bounds, no infinite run), and norubash.exe/yes.exeof mine is left behind — the tworubash.exeprocesses I did find intasklistbelong to another worktree (D:\repo\rubash-wt-726\target\debug\rubash.exe trap-signal-matrix.sh) and were left alone.Notes
cargo fmt --checkis clean; the tests are Windows-gated (#![cfg(windows)]) like the neighbouring regression files, and both useenv_remove("BASH_ENV")/env_remove("WINUXSH_ROOT")to avoid the inherited-environment traps documented inAGENTS.md.Refs #761, #772.