Registry Mirror
Skip to content

Conversation

@chappie-daemon

Copy link
Copy Markdown
Collaborator

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 the exec, a fork in another parallel test could let the child inherit the write descriptor, so the exec can still fail with ETXTBSY. 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_refused is unchanged: it still writes a script with no execute bit and asserts SpawnFailure::PermissionDenied, which is the behaviour the shim existed to work around.

Cherry-picked from ItsAbir005/nostream#3 with -x, so e4b18eb6 carries his authorship and the original SHA.

Verification

  • cargo fmt --all --check clean.
  • cargo test -p nostream-services --lib process::tests: 5 passed, 0 failed.
  • 15 consecutive runs at --test-threads=8: 0 failures.
  • The diff is tests only: crates/nostream-services/src/process.rs tests module, +12/−37, plus an empty changeset.

@changeset-bot

changeset-bot Bot commented Dec 3, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: fff97ca

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 0 packages

When 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

@coderabbitai

coderabbitai Bot commented Dec 3, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: a9f662e5-5283-4282-a80b-85bb98eff1af

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@greptile-apps

greptile-apps Bot commented Dec 3, 2026 •

Copy link
Copy Markdown

Confidence Score: 5/5RetriggerView in Greptile

[Low impact] The test-only changes appear safe to merge.

Summary

Replaces temporary executable scripts with /bin/sh -c in the process tests.

  • Process tests run their shell commands without temporary executable files.

Reviews (1) · Last reviewed commit: "test(services): add a changeset for the ..." · Reviewed by Greptile

@cameri
cameri merged commit 20d3a8a into rewrite/main Dec 3, 2026
19 checks passed
@cameri
cameri deleted the abir/1351-direct-sh-exec branch December 3, 2026 16:03
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.

3 participants