Skip to content

Add stdout/stderr redirection to run_process - #9341

Open
alexreinking wants to merge 2 commits into
mainfrom
alexreinking/run-process-redirect
Open

Add stdout/stderr redirection to run_process#9341
alexreinking wants to merge 2 commits into
mainfrom
alexreinking/run-process-redirect

Conversation

@alexreinking

Copy link
Copy Markdown
Member

Adds file redirection to run_process. Needed by #9334

@codecov

codecov Bot commented Aug 15, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 70.04%. Comparing base (6e217f5) to head (27561c3).
⚠️ Report is 7 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #9341      +/-   ##
==========================================
+ Coverage   70.01%   70.04%   +0.03%     
==========================================
  Files         258      258              
  Lines       78699    78716      +17     
  Branches    19160    19163       +3     
==========================================
+ Hits        55100    55140      +40     
+ Misses      17881    17878       -3     
+ Partials     5718     5698      -20     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

alexreinking and others added 2 commits August 15, 2026 14:08
Adds a run_process overload that redirects the child's stdout/stderr
to given file paths (empty = inherit, same path for both = combined,
as with shell `2>&1`). The existing single-argument overload now
forwards to it with empty paths, so current callers are unaffected.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
The re-exec'd child writes its markers through buffered C stdio, which
defaults stdout/stderr to text mode on Windows and translates '\n' to
'\r\n'. Force binary mode in the child so the redirected file content
matches the Unix-style marker strings byte-for-byte on all platforms.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@alexreinking
alexreinking force-pushed the alexreinking/run-process-redirect branch from 908b941 to 27561c3 Compare August 15, 2026 18:08
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.

2 participants