-
Notifications
You must be signed in to change notification settings - Fork 29.8k
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
Error during make test: 'Error: Cannot find module '/node/test/fixtures/nested-index/one' #16357
Comments
Do you have
|
Absolutely not. That's even weird, since the You think a simple symbolic link would do the trick? Is there a way to prevent such a thing, to prevent difference in casing breaks the tests? |
Out of curiosity, what does |
Here's the result of sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
udev on /dev type devtmpfs (rw,nosuid,relatime,size=4005460k,nr_inodes=1001365,mode=755)
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)
tmpfs on /run type tmpfs (rw,nosuid,noexec,relatime,size=805480k,mode=755)
/dev/sdb3 on / type ext4 (rw,relatime,errors=remount-ro,data=ordered)
securityfs on /sys/kernel/security type securityfs (rw,nosuid,nodev,noexec,relatime)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
tmpfs on /run/lock type tmpfs (rw,nosuid,nodev,noexec,relatime,size=5120k)
tmpfs on /sys/fs/cgroup type tmpfs (ro,nosuid,nodev,noexec,mode=755)
cgroup on /sys/fs/cgroup/systemd type cgroup (rw,nosuid,nodev,noexec,relatime,xattr,release_agent=/lib/systemd/systemd-cgroups-agent,name=systemd)
pstore on /sys/fs/pstore type pstore (rw,nosuid,nodev,noexec,relatime)
efivarfs on /sys/firmware/efi/efivars type efivarfs (rw,nosuid,nodev,noexec,relatime)
cgroup on /sys/fs/cgroup/memory type cgroup (rw,nosuid,nodev,noexec,relatime,memory)
cgroup on /sys/fs/cgroup/net_cls,net_prio type cgroup (rw,nosuid,nodev,noexec,relatime,net_cls,net_prio)
cgroup on /sys/fs/cgroup/perf_event type cgroup (rw,nosuid,nodev,noexec,relatime,perf_event)
cgroup on /sys/fs/cgroup/freezer type cgroup (rw,nosuid,nodev,noexec,relatime,freezer)
cgroup on /sys/fs/cgroup/cpuset type cgroup (rw,nosuid,nodev,noexec,relatime,cpuset)
cgroup on /sys/fs/cgroup/hugetlb type cgroup (rw,nosuid,nodev,noexec,relatime,hugetlb)
cgroup on /sys/fs/cgroup/devices type cgroup (rw,nosuid,nodev,noexec,relatime,devices)
cgroup on /sys/fs/cgroup/cpu,cpuacct type cgroup (rw,nosuid,nodev,noexec,relatime,cpu,cpuacct)
cgroup on /sys/fs/cgroup/blkio type cgroup (rw,nosuid,nodev,noexec,relatime,blkio)
cgroup on /sys/fs/cgroup/pids type cgroup (rw,nosuid,nodev,noexec,relatime,pids)
systemd-1 on /proc/sys/fs/binfmt_misc type autofs (rw,relatime,fd=28,pgrp=1,timeout=0,minproto=5,maxproto=5,direct,pipe_ino=17626)
mqueue on /dev/mqueue type mqueue (rw,relatime)
debugfs on /sys/kernel/debug type debugfs (rw,relatime)
fusectl on /sys/fs/fuse/connections type fusectl (rw,relatime)
hugetlbfs on /dev/hugepages type hugetlbfs (rw,relatime)
/dev/sda1 on /boot/efi type vfat (rw,relatime,fmask=0077,dmask=0077,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro)
tmpfs on /tmp type tmpfs (rw)
/dev/sdb3 on /var/lib/docker/aufs type ext4 (rw,relatime,errors=remount-ro,data=ordered)
tmpfs on /run/user/1000 type tmpfs (rw,nosuid,nodev,relatime,size=805480k,mode=700,uid=1000,gid=1000)
gvfsd-fuse on /run/user/1000/gvfs type fuse.gvfsd-fuse (rw,nosuid,nodev,relatime,user_id=1000,group_id=1000)
jetbrains-toolbox on /tmp/.mount_kQfTgq type fuse.jetbrains-toolbox (ro,nosuid,nodev,relatime,user_id=1000,group_id=1000) The file is indeed on an ext4 filesystem, which is case-sensitive iirc. |
Hm, sorry, no. I can't think of anything that would cause that. Maybe someone else has a suggestion. |
No problem, thanks anyway! From what I've seen, the test it's all about is pretty simple and should not cause any problem. Most of all, the script loads all other modules properly except this one. I've looked around, and I'm still new to Node internals, but from what I've seen paths are converted to lowercase only for win32 systems, which is not the case here since I'm on Ubuntu. Unless the dual boot gets Node all fuzzy... I'm deeply puzzled. |
Quick update, this is getting weirder. I tried creating a symlink from [----------] Global test environment tear-down
[==========] 62 tests from 7 test cases ran. (1560 ms total)
[ PASSED ] 62 tests.
/usr/bin/python2.7 tools/test.py --mode=release -J \
async-hooks \
default \
addons addons-napi \
doctool known_issues
=== release test-require-resolve ===
Path: parallel/test-require-resolve
assert.js:45
throw new errors.AssertionError({
^
AssertionError [ERR_ASSERTION]: '/home/benjamin/dev/javascript/node/test/fixtures/nested-index/one/index.js' === '/home/benjamin/Dev/javascript/node/test/fixtures/nested-index/one/index.js'
at Object.<anonymous> (/home/benjamin/Dev/javascript/node/test/parallel/test-require-resolve.js:33:8)
at Module._compile (module.js:607:30)
at Object.Module._extensions..js (module.js:618:10)
at Module.load (module.js:526:32)
at tryModuleLoad (module.js:489:12)
at Function.Module._load (module.js:481:3)
at Function.Module.runMain (module.js:648:10)
at startup (bootstrap_node.js:191:16)
at bootstrap_node.js:609:3
Command: out/Release/node /home/benjamin/Dev/javascript/node/test/parallel/test-require-resolve.js
[03:56|% 100|+ 2021|- 1]: Done
Makefile:209 : la recette pour la cible « test » a échouée
make: *** [test] Erreur 1 The test case in question: assert.strictEqual(
fixtures.path('nested-index', 'one', 'index.js').toLowerCase(),
require.resolve(fixtures.path('nested-index', 'one').toLowerCase())); Both paths are supposed to be lower cased, so how come the error displays 'Dev' with an upper case? And why does THIS particular module poses so much problem? It only contains an export to "hello from one!"... |
I'm running into the same issue (starting with 8.8.0, but not seeing it in 8.7.0). I added some console logging, with the following results:
Should the toLowerCase() perhaps move outside of the require.resolve()? |
Does #16486 fix the problem for you? |
@drewfish It should definitely be |
Yep, that fixed it, thanks! (I've backported this fix on our internal 8.8.0 until 8.8.1 is available.) |
Closing since #16486 landed and is a confirmed fix |
Just to be sure. Has the change been merged into master? I still got the error when pulling this morning. Otherwise, when replicating changes or building v8.8.1, the problem is fixed indeed. |
Heyr there,
I've got this error during
make test
and couldn't find another issue about it (included: end of test command):This happens consistently.
I tried re reunning
./configure
andmake
, but every timemake test
outputs this error.For the record, the output of
./configure
:make
doesn't output any error message, but last line is this one and I don't know if it's supposed to be:Thank you!
Cheers
The text was updated successfully, but these errors were encountered: