Skip to content

Commit

Permalink
chore(repo): skip test for debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
AgentEnder committed Jun 25, 2024
1 parent 7488713 commit 7b6269e
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions packages/nx/src/project-graph/plugins/isolation/plugin-pool.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,18 +29,18 @@ interface PendingPromise {

type NxPluginWorkerCache = Map<string, Promise<LoadedNxPlugin>>;

const nxPluginWorkerCache: NxPluginWorkerCache = (global[
'nxPluginWorkerCache'
] ??= new Map());
// const nxPluginWorkerCache: NxPluginWorkerCache = (global[
// 'nxPluginWorkerCache'
// ] ??= new Map());

export async function loadRemoteNxPlugin(
plugin: PluginConfiguration,
root: string
): Promise<[Promise<LoadedNxPlugin>, () => void]> {
const cacheKey = JSON.stringify(plugin);
if (nxPluginWorkerCache.has(cacheKey)) {
return [nxPluginWorkerCache.get(cacheKey), () => {}];
}
// if (nxPluginWorkerCache.has(cacheKey)) {
// return [nxPluginWorkerCache.get(cacheKey), () => {}];
// }

const { ipcPath, worker } = await startPluginWorker();

Expand All @@ -59,7 +59,7 @@ export async function loadRemoteNxPlugin(
worker.off('exit', exitHandler);
socket.destroy();
shutdownPluginWorker(worker);
nxPluginWorkerCache.delete(cacheKey);
// nxPluginWorkerCache.delete(cacheKey);
};

cleanupFunctions.add(cleanupFunction);
Expand All @@ -80,7 +80,7 @@ export async function loadRemoteNxPlugin(
worker.on('exit', exitHandler);
});

nxPluginWorkerCache.set(cacheKey, pluginPromise);
// nxPluginWorkerCache.set(cacheKey, pluginPromise);

return [pluginPromise, cleanupFunction];
}
Expand Down

0 comments on commit 7b6269e

Please sign in to comment.