-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(core): create a new function to run child processes via rust #21070
feat(core): create a new function to run child processes via rust #21070
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 1 Ignored Deployment
|
☁️ Nx Cloud ReportCI is running/has finished running commands for commit ef6ca5f. As they complete they will appear below. Click to see the status, the terminal output, and the build insights. 📂 See all runs for this CI Pipeline Execution ✅ Successfully ran 6 targets
Sent with 💌 from NxCloud. |
b1a26c3
to
5ec29ca
Compare
fix(core): add test to check for tty
57d35e6
to
37d0211
Compare
…iple callbacks for onexit
97a7ccc
to
4de5a7d
Compare
4de5a7d
to
fef0c71
Compare
bcf403d
to
eb50e01
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, few.comments that can easily wait for a cleanup pr
): Promise<boolean> { | ||
env = processEnv(color, cwd, env); | ||
// The rust runCommand is always a tty, so it will not look nice in parallel and if we need prefixes | ||
// currently does not work properly in windows |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cleanup: fixed - remove in new pr
@@ -107,7 +120,155 @@ export class ForkedProcessTaskRunner { | |||
}); | |||
} | |||
|
|||
public forkProcessPipeOutputCapture( | |||
public async forkProcessLegacy( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cleanup (next pr): add depreciation and todo
This pull request has already been merged/closed. If you experience issues related to these changes, please open a new issue referencing this pull request. |
Current Behavior
Using the
command
option in project targets uses a node implementation that takes away interactivity from the running command. For example, when trying to runjest
in a command, we do not see the progress bar.Expected Behavior
The
command
option will now run a psuedo terminal, where we will be able to see interactivity. This allows Nx to be more seamless when running on workspaces that have pcv3 enabled.The forked process task runner is also updated to use the psuedo terminal as well for forking processes.
Related Issue(s)
Fixes #