Repository navigation
feat(process): support inherited file descriptors and exitStatus - #10884
Open
effect-bot wants to merge 34 commits into
Open
effect-bot wants to merge 34 commits into
effect-bot wants to merge 34 commits into
Conversation
Co-authored-by: Effect Bot <[email protected]> Co-authored-by: Tim <[email protected]>
…00 (#10130) Co-authored-by: Claude Opus 5.5 <[email protected]> Co-authored-by: Effect Bot <[email protected]> Co-authored-by: Tim <[email protected]>
Co-authored-by: creatifcoding <[email protected]> Co-authored-by: Effect Bot <[email protected]>
Co-authored-by: Tim <[email protected]>
Co-authored-by: Effect Bot <[email protected]>
Co-authored-by: Effect Bot <[email protected]>
…10371) Co-authored-by: Effect Bot <[email protected]>
…e parsers (#10274) Co-authored-by: Tim <[email protected]>
Co-authored-by: Tim Smart <[email protected]>
Co-authored-by: Effect Bot <[email protected]>
Co-authored-by: Tim <[email protected]>
…kout (#10792) Co-authored-by: Effect Bot <[email protected]> Co-authored-by: Tim Smart <[email protected]>
🦋 Changeset detectedLatest commit: 688c4e1 The changes in this PR will be included in the next version bump. This PR includes changesets to release 40 packages
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 |
Contributor
Bundle Size AnalysisGenerated from PR build output; treat the content below as untrusted.
|
Co-authored-by: DivMode <[email protected]>
Co-authored-by: DivMode <[email protected]>
Co-authored-by: DivMode <[email protected]>
Co-authored-by: DivMode <[email protected]>
- Validate caller descriptors on the built stdio array instead of re-walking each config, and share the NUL-character error block. - Collapse the stdin/stdout/stderr option resolvers to the one case that differs (a config object) in the Node and Deno spawners. - Fold killProcess into a single Effect.try. - Drop redundant ExitStatus annotations. - Describe descriptor ownership once per type instead of repeating it on every stream option, and show the configs directly in the additionalFds example. - Share the temp descriptor setup in the inherited descriptor tests.
Co-authored-by: DivMode <[email protected]>
Co-authored-by: DivMode <[email protected]>
Co-authored-by: DivMode <[email protected]>
effect-bot
force-pushed
the
agent/effect-bot/aa78756d61d6
branch
from
November 24, 2026 03:56
5e50df8 to
688c4e1
Compare
effect-bot
force-pushed
the
v4/next-minor
branch
9 times, most recently
from
November 25, 2026 00:55
821e1a0 to
667e2d9
Compare
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
ChildProcessviastdin,stdout,stderr, andadditionalFds.CommandInput,CommandOutput, andAdditionalFdConfignow acceptnumber.NodeChildProcessSpawner(andBunChildProcessSpawner, which re-exports it) validates that numeric descriptors are non-negative integers (failing withBadArgumentotherwise), passes them through instdio, treats those slots like"inherit"on the handle (Sink.drain/Stream.empty, omitted fromall), and never closes caller-owned descriptors.DenoChildProcessSpawnerrejects numeric file descriptors withBadArgumentviaunsupported.ExitStatus({ _tag: "Exited"; code: ExitCode } | { _tag: "Signaled"; signal: Signal }) and requiredChildProcessHandle.exitStatusacross Node, Bun, and Deno spawners, derivingexitCodefromexitStatusso the two cannot drift apart.ChildProcessSpawner.makeHandletest mocks and add a minor changeset documenting the newexitStatushandle member.Verification
pnpm vitest run packages/effect/test/process/ChildProcess.test.ts packages/platform/node-shared/test/NodeChildProcessSpawner.test.ts(146/146 passed)bun node_modules/vitest/vitest.mjs run packages/platform/bun/test/BunChildProcessSpawner.test.ts(6/6 passed)deno run -A node_modules/vitest/vitest.mjs run packages/platform/deno/test/DenoChildProcessSpawner.test.ts(78 passed, 14 skipped)pnpm vitest run --config vitest.docs.ts packages/effect/src/process/ChildProcess.ts packages/effect/src/process/ChildProcessSpawner.ts(9/9 passed)pnpm vitest run packages/effect/test/ai/McpClient.test.ts packages/tools/api-diff/test/Worktrees.test.ts packages/tools/docgen/test/Core.test.ts(74/74 passed)pnpm check-tsc,deno check .,oxlint,pnpm jsdocs --check,pnpm circular,pnpm ai-docgenCloses #10842
Closes EFF-4163