Skip to content

Conversation

eed3si9n
Copy link
Member

Problem

See https://eed3si9n.com/rfc-4-persistent-worker/ for the general motivation. We want to eventually move out tests out of the sbt process, but we also don't want to lose JIT performance.

Solution

This re-implements forked test on top of the Java worker CLI, using JSON-RPC over stdin/stdout as the communication mechanism instead of using the object stream on socket. For now, it's functionally same as sbt 1.x's forked test.

Later on, we can keep the worker process running, so we can keep the classloader warm.

This implements plain run for worker for testing.
This sends JSON-RPC over stdin as opposed to using ObjectStream over socket.
@eed3si9n eed3si9n marked this pull request as ready for review July 4, 2025 06:17
@eed3si9n eed3si9n merged commit f284e80 into sbt:develop Jul 6, 2025
12 checks passed
@eed3si9n eed3si9n deleted the wip/worker2 branch July 6, 2025 18:31
@xuwei-k
Copy link
Member

xuwei-k commented Sep 5, 2025

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