cool-easter-32542
10/20/2023, 3:37 PMPartition #3 - python-default, ['CPython==3.10.*']:
npm notice
npm notice New major version of npm available! 8.5.5 -> 10.2.1
npm notice Changelog: <https://github.com/npm/cli/releases/tag/v10.2.1>
npm notice Run `npm install -g npm@10.2.1` to update!
npm notice
npm ERR! code ENOTEMPTY
npm ERR! syscall rename
npm ERR! path /home/circleci/.cache/pants/named_caches/npm/_npx/879a46f20184868b/node_modules/pyright
npm ERR! dest /home/circleci/.cache/pants/named_caches/npm/_npx/879a46f20184868b/node_modules/.pyright-52UWLykv
npm ERR! errno -39
npm ERR! ENOTEMPTY: directory not empty, rename '/home/circleci/.cache/pants/named_caches/npm/_npx/879a46f20184868b/node_modules/pyright' -> '/home/circleci/.cache/pants/named_caches/npm/_npx/879a46f20184868b/node_modules/.pyright-52UWLykv'
npm ERR! A complete log of this run can be found in:
npm ERR! ._npm/_logs/2023-10-20T15_24_25_632Z-debug-0.log
It doesn't happen every time, and repeated runs on the same codebase can yield different results.
Pants version
This occurs in 2.18.x and 2.19.x. We are currently running 2.19.0.dev2 as we were also encountering the issue fixed by #19430.
OS
Both.
Additional info
We are using a more recent version of pyright than the one specified by default. Reverting back doesn't fix the issue.
[pyright]
version = "pyright@1.1.328"
pantsbuild/pants