镜像站点 · 本页由第三方 GitHub 只读镜像提供,非 GitHub 官方站点,不接受任何登录或凭据输入。前往 github.com
Skip to content

test-require-symlink error on Windows 10 #23596

Description

@S0ulDrag0n
  • Version: v10.3.0
  • Platform: 64-bit (Windows)
  • Subsystem: vsbuild test
running 'python tools\test.py --mode=release  -J default doctool addons addons-napi'
Skipping pseudo-tty tests, as pseudo terminals are not available on Windows.
=== release test-require-symlink ===
Path: parallel/test-require-symlink
assert.js:86
  throw new AssertionError(obj);
  ^

AssertionError [ERR_ASSERTION]: Expected values to be strictly equal:
+ actual - expected

+ 'INCORRECT_VERSION'
- 'CORRECT_VERSION'
    at test (C:\Users\s0ul-\Documents\Github\node\node\test\parallel\test-require-symlink.js:69:10)
    at Object.<anonymous> (C:\Users\s0ul-\Documents\Github\node\node\test\parallel\test-require-symlink.js:60:1)
    at Module._compile (internal/modules/cjs/loader.js:706:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:717:10)
    at Module.load (internal/modules/cjs/loader.js:604:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:543:12)
    at Function.Module._load (internal/modules/cjs/loader.js:535:3)
    at Function.Module.runMain (internal/modules/cjs/loader.js:759:12)
    at startup (internal/bootstrap/node.js:303:19)
    at bootstrapNodeJSCore (internal/bootstrap/node.js:866:3)
Command: C:\Users\s0ul-\Documents\Github\node\node\Release\node.exe --preserve-symlinks C:\Users\s0ul-\Documents\Github\node\node\test\parallel\test-require-symlink.js
=== release test-tty-stdin-pipe ===
Path: parallel/test-tty-stdin-pipee test-url-format-invalid-input
Command: C:\Users\s0ul-\Documents\Github\node\node\Release\node.exe C:\Users\s0ul-\Documents\Github\node\node\test\parallel\test-tty-stdin-pipe.js
--- TIMEOUT ---

This issue occurs when running the tests on Windows with Windows Defender Firewall off while connected to a wireless network. This was executed in a command prompt with administrator privileges on Windows 10 ver 1803 (build 17134.345).

Activity

  1. changed the title [-]test-require-symlink[/-] [+]test-require-symlink error on Windows 10[/+] on Oct 12, 2018
  2. spectacularGavin commented on Oct 12, 2018

    @spectacularGavin

    I had the same error when you have Symlink permissions when running as Administrator. Since admin has symlink permissions. The test seems to skip when you do not have symlink permissions.

    The return value required by the fooModule (foo.js within the tmp dir)

    { 
    	dep1: { 
    		bar: { 
    			version: 'CORRECT_VERSION' 
    		},
    		dep2: { 
    			bar: { 
    				version: 'INCORRECT_VERSION' 
    			} 
    		} 
    	},
    	dep2: { 
    		bar: { 
    			version: 'INCORRECT_VERSION' 
    		} 
    	} 
    }

    Looks like dep2,js requires the incorrect bar.js

  3. added
    windowsIssues and PRs related to the Windows platform.
    testIssues and PRs related to Node.js core tests and test infrastructure.
    on Oct 12, 2018
  4. S0ulDrag0n commented on Oct 13, 2018

    @S0ulDrag0n
    Author

    I've re-ran it again without administrative privileges. One error did come up relating to a parallel HTTP test if I remember correctly. However after running it again after and subsequently, the error is not showing up any more so I am unfortunately unable to report that one.

  5. spectacularGavin commented on Oct 13, 2018

    @spectacularGavin

    After a bit of digging, it seems that module-require-symlink\node_modules\dep1\node_modules\dep2 is linked two levels down to module-require-symlink\node_modules\dep2. I'm not quite sure how require resolves it's path but since module-require-symlink\node_modules\dep2 has no node_modules\bar it resolved to module-require-symlink\node_modules\bar which has the incorrect version. I apologize in advance if I'm just spouting nonsense here.

  6. bzoz commented on Oct 16, 2018

    @bzoz
    Contributor

    Fix in #23691, thanks for reporting this!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    testIssues and PRs related to Node.js core tests and test infrastructure.windowsIssues and PRs related to the Windows platform.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions