Skip to content

fix(forkserver): preserve child test output - #664

Merged
boxed merged 1 commit into
boxed:mainfrom
agustin18:fix/forkserver-output
Dec 2, 2026
Merged

boxed merged 1 commit into
boxed:mainfrom
agustin18:fix/forkserver-output

Conversation

@agustin18

Copy link
Copy Markdown
Contributor

Fixes #662.

Forkserver stats and clean runs now carry the child's captured output back to the parent, so a failing run shows the pytest failure instead of an empty dump.

  • run_in_fork_with_result can return the child's captured output with the result.
  • run_in_fork can return captured output with the exit code, reading it before waiting to avoid a pipe deadlock.
  • ForkServerRunner forwards child output to the parent CatchOutput.

Checks:

  • full suite: 652 passed, 7 skipped
  • focused isolation tests: 58 passed
  • ruff, mypy, and pre-commit pass

@boxed
boxed merged commit 1120c92 into boxed:main Dec 2, 2026
13 checks passed
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.

forkserver drops pytest's output when the stats run or the clean run fails

2 participants