Conversation
🦋 Changeset detectedLatest commit: fff97ca The changes in this PR will be included in the next version bump. This PR includes changesets to release 0 packagesWhen changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the
|
Confidence Score: 5/5
[Low impact] The test-only changes appear safe to merge.
|
Summary
Follow-up to #1358, authored by @ItsAbir005 in response to the CodeRabbit thread it left open on
crates/nostream-services/src/process.rs:290("close the remaining inherited-descriptor race").The merged test helper wrote a script to a temp file, marked it executable and
exec'd it. Between the write and theexec, a fork in another parallel test could let the child inherit the write descriptor, so theexeccan still fail withETXTBSY. The atomic-write shape narrowed that window; it does not remove it, because the file is executed at all.His commit removes
shim()and passes the program text to/bin/sh -c, so nothing is written before it runs.a_script_without_the_execute_bit_is_refusedis unchanged: it still writes a script with no execute bit and assertsSpawnFailure::PermissionDenied, which is the behaviour the shim existed to work around.Cherry-picked from ItsAbir005/nostream#3 with
-x, soe4b18eb6carries his authorship and the original SHA.Verification
cargo fmt --all --checkclean.cargo test -p nostream-services --lib process::tests: 5 passed, 0 failed.--test-threads=8: 0 failures.crates/nostream-services/src/process.rstests module, +12/−37, plus an empty changeset.