Closed pacostas closed 2 years ago
This is very strange, since CI on this module runs on Windows 11 and Node 16, and passes reliably since fixing #227. Did anything change in Node recently that might be related to this?
Aha! Found a bug in my CI workflow, it actually wasn't running tests in that env.
Debugging now, thanks for finding this, yay canaries!
Ok, as far as I can tell, number_of_native_contexts
is just going to be 2 sometimes instead of 1 on Windows. There are no native contexts being created by this module, and it doesn't appear to be growing unbounded. The heap size is staying relatively constant, which was the original problem addressed by #227. I'm going to adjust the test to be less strict.
Fixed by 5729f5254d5c816f6a38baa917fdb6387819e5c6
@isaacs Thank you for your fast response! I'm still investigating why this is not running on citgm https://github.com/nodejs/citgm/pull/934 despite it runs on windows 11 with all node.js versions.
It's failing in the citgm code for some reason:
# Subtest: grab-project: teardown
not ok 1 - EBUSY: resource busy or locked, rmdir 'C:\\Users\\RUNNER~1\\AppData\\Local\\Temp\\citgm-1670840855810'
---
errno: -4082
code: EBUSY
syscall: rmdir
path: C:\Users\RUNNER~1\AppData\Local\Temp\citgm-1670840855810
tapCaught: returnedPromiseRejection
test: "grab-project: teardown"
...
1..1
# failed 1 test
not ok 10 - grab-project: teardown # time=655.543ms
1..10
# failed 1 of 10 tests
# time=11673.994ms
not ok 17 - test/test-grab-project.js # time=11673.994ms
---
env: {}
file: test/test-grab-project.js
timeout: 480000
command: C:\hostedtoolcache\windows\node\19.2.0\x64\node.exe
args:
- test/test-grab-project.js
stdio:
- 0
- pipe
- 2
cwd: D:\a\citgm\citgm
exitCode: 1
...
I don't know what "test-grab-project.js" does, but it looks like it's a citgm thing, not an lru-cache thing.
System Details:
Error 1:
How to reproduce it
Node versions this error appears:
16 and above