Repository navigation
test: possible flaky test-repl.js #4823
Description
Activity
- addedreplIssues and PRs related to the REPL subsystem.Issues and PRs related to the REPL subsystem.testIssues and PRs related to Node.js core tests and test infrastructure.Issues and PRs related to Node.js core tests and test infrastructure.
on Jan 23, 2016 @techjeffharris on what platform? Is still happening?
Ubuntu Gnome 15.10 node v5.x. whichever version was current on Nodesource's ppa the day that I posted that comment.. I'm guessing that it was 5.5 or 5.4. sorry I didn't note that at the time >_<
This test is flaky on any slow machine because it has a 5s timeout in the code. Here is such a failure on RPi1: https://ci.nodejs.org/job/node-test-binary-arm/1468/RUN_SUBSET=3,nodes=pi1-raspbian-wheezy/tapTestReport/test.tap-97/
This failure in the opening comment looks different, though.
Except for one build failure, stress test for this came up clean. https://ci.nodejs.org/job/node-stress-single-test/765/
I'm going to close this. Feel free to comment or re-open if it recurs or if you otherwise think it should not be closed at this time.
Not sure if issue should be reopened, but it seems what this test fails if (for some reason) NODE_PATH contains /usr/lib/nodejs and this way node can load all internal libraries without --expose_internal flag.
I guess some old version of node.js or something else could set this variable. I encountered this issue on PC what had node v0.10.x some time ago.
Running test with NODE_DEBUG=module shows what module is loaded from /usr/lib/nodejs:$ NODE_DEBUG=module node ./test/parallel/test-repl [...] sending "require(\"internal/repl\")" MODULE 9395: Module._load REQUEST internal/repl parent: <repl> MODULE 9395: looking for "internal/repl" in ["/home/ubuntu/node/repl/node_modules","/home/ubuntu/node/node_modules","/home/ubuntu/node_modules","/home/node_modules","/node_modules","/usr/lib/nodejs","/home/ubuntu/.node_modules","/home/ubuntu/.node_libraries","/usr/lib/node","/usr/lib/nodejs","/home/ubuntu/.node_modules","/home/ubuntu/.node_libraries","/usr/lib/node"] MODULE 9395: load "/usr/lib/nodejs/internal/repl.js" for module "/usr/lib/nodejs/internal/repl.js" [...] Unix data: "{ createInternalRepl: [Function: createRepl] }\nnode via Unix socket> ", expecting /^Error: Cannot find module 'internal\/repl'/ assert.js:85 throw new assert.AssertionError({ ^ AssertionError: null == true at Socket.<anonymous> (/home/ubuntu/node/test/parallel/test-repl.js:76:16) at emitOne (events.js:96:13) at Socket.emit (events.js:188:7) at readableAddChunk (_stream_readable.js:176:18) at Socket.Readable.push (_stream_readable.js:134:10) at Pipe.onread (net.js:548:20)```
I just filed my first PR #4822 and a test in test-repl.js failed.
@chrisdickinson recommended that I create an issue and /CC @Trott