-
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): execute plugins in isolated processes #21760
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 c3698bf. 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 5 targets
Sent with 💌 from NxCloud. |
34c2ad6
to
90b8753
Compare
90b8753
to
349e63e
Compare
349e63e
to
2e3ffb0
Compare
2e3ffb0
to
4342107
Compare
4342107
to
3c25fce
Compare
3c25fce
to
d1a640b
Compare
d1a640b
to
98d71a2
Compare
98d71a2
to
57cc74c
Compare
57cc74c
to
4217c99
Compare
4217c99
to
1eb98d0
Compare
packages/nx/src/devkit-internals.ts
Outdated
@@ -1,3 +1,5 @@ | |||
import { shutdownPluginWorkers } from './project-graph/plugins/plugin-pool'; |
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.
remove this import
const pidMap = new Map<number, string>(); | ||
|
||
export function loadRemoteNxPlugin(plugin: PluginConfiguration, root: string) { | ||
const isTest = path.extname(__filename) === '.ts'; |
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.
I understand why we need to do this, but maybe we can change this to be more descriptive.
if (process.env.NX_VERBOSE_LOGGING) { | ||
console.log( | ||
'Unable to find local plugin', | ||
possiblePaths, | ||
projectRootMappings | ||
); | ||
} |
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.
Use the new logger.verbose
function
1eb98d0
to
e6e872b
Compare
e6e872b
to
81acbc5
Compare
358efad
to
44284fa
Compare
44284fa
to
c3698bf
Compare
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
Project graph plugins are all loaded in the main nx process (or daemon if enabled), which can cause issues when they do things that mutate the global process (E.g. registering a typescript transpiler)
Expected Behavior
Plugins operate in a sandbox
Related Issue(s)
See: https://www.loom.com/share/87febc4db210444aa7f4163a76d7f758