• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

cameri / nostream / 47145971944
78%
main: 81%

Build:
Build:
LAST BUILD BRANCH: rewrite/main
DEFAULT BRANCH: main
Ran 03 Dec 2026 04:06PM UTC
Jobs 2
Files 322
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

03 Dec 2026 04:03PM UTC coverage: 77.855% (-0.005%) from 77.86%
47145971944

push

github

web-flow
test(services): invoke /bin/sh directly in process tests (#1351) (#1360)

## 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"](https://github.com/cameri/nostream/pull/1358#discussion_r4780185107)).

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](https://github.com/ItsAbir005/nostream/pull/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.

4634 of 6495 branches covered (71.35%)

Branch coverage included in aggregate %.

10012 of 12317 relevant lines covered (81.29%)

751.28 hits per line

Jobs
ID Job ID Ran Files Coverage
1 Unit - 47145971944.1 03 Dec 2026 04:09PM UTC 322
75.36
GitHub Action Run
2 Integration - 47145971944.2 03 Dec 2026 04:06PM UTC 322
32.46
GitHub Action Run
Source Files on build 47145971944
  • Tree
  • List 322
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #47145971944
  • 20d3a8af on github
  • Prev Build on rewrite/main (#47115198942)
  • Next Build on rewrite/main (#47177616193)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc