Hey all :wave: When working on the javascript/type...
# general
a
Hey all 👋 When working on the javascript/typescript world, have you noticed any performance issues when setting up the sandbox prior to running the tests? I have a project with quite a large node_modules folder (2.4GB and ~290k files), and I'm seeing the
setup_sandbox
step taking ~50s. I'm wondering if it has something to do with moving/copying the node_modules.
w
Are you using npm?
a
yarn
w
1.22.22?
a
3.2.1
w
Okay, so if you run your command with
--keep-sandboxes=always
and open the folder, are the files in the sandbox? Or are they symlinked out?
a
it looks like the files are there, not symlinked.
f
I think what we're running into is described in https://github.com/pantsbuild/pants/issues/19054 Tobni's 2nd to last comment describes how it could be solved but it seems somewhat complicated by the way node_modules resolution works
w
Yeah, looks like the modules are getting re-materialized into the sandbox - which is time consuming, regardless of anything else. I don't really use our js backend in my projects, as I used adhoc tool and haven't ported that over. If you want to try a sanity check, you could maybe make an adhoc_tool script in the build file and see if that helps for subsequent runs?