| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
|
Still failing for me. Failed test # 8
/Users/evan/dev/code/forks/io.js/test/sequential/test-repl-persistent-history.js:197
throw err;
^
AssertionError: '> \'=^.^=\'' === '> \'42\''
at Writable.write [as _write] (/Users/evan/dev/code/forks/io.js/test/sequential/test-repl-persistent-history.js:194:18)
at doWrite (_stream_writable.js:292:12)
at writeOrBuffer (_stream_writable.js:278:5)
at Writable.write (_stream_writable.js:207:11)
at REPLServer._writeToOutput (readline.js:219:17)
at REPLServer.Interface._refreshLine (readline.js:259:8)
at REPLServer.Interface._historyPrev (readline.js:572:10)
at REPLServer.Interface._ttyWrite (readline.js:858:14)
at ActionStream.onkeypress (readline.js:105:10)
at emitTwo (events.js:87:13)
|
Sorry, something went wrong.
|
Yep, that fixes it for me. We should probably run CI though to be safe. |
Sorry, something went wrong.
Sorry, something went wrong.
|
LGTM if the CI is happy |
Sorry, something went wrong.
|
Hmm, windows isn't liking the cleanup, maybe I'll just have to refresh the tmpdir. not ok 875 - test-repl-persistent-history.js # c:\workspace\node-test-commit-windows\nodes\win2012r2\test\sequential\test-repl-persistent-history.js:213 # if (err) throw err; # ^ # # Error: EPERM: operation not permitted, open 'c:\workspace\node-test-commit-windows\nodes\win2012r2\test\tmp.0\.node_repl_history' # at Error (native) |
Sorry, something went wrong.
Sorry, something went wrong.
|
Uh, ok.. Hrmmm. New windows (and ARM) failure from common.refreshTmpDir()... not ok 875 - test-repl-persistent-history.js # c:\workspace\node-test-commit-windows\nodes\win2012r2\test\common.js:34 # throw e; # ^ # # Error: ENOTEMPTY: directory not empty, rmdir 'c:\workspace\node-test-commit-windows\nodes\win2012r2\test\tmp.0' # at Error (native) # at Object.fs.rmdirSync (fs.js:763:18) # at rmdirSync (c:\workspace\node-test-commit-windows\nodes\win2012r2\test\common.js:49:10) # at rimrafSync (c:\workspace\node-test-commit-windows\nodes\win2012r2\test\common.js:25:7) # at Object.exports.refreshTmpDir (c:\workspace\node-test-commit-windows\nodes\win2012r2\test\common.js:55:3) # at REPLServer.<anonymous> (c:\workspace\node-test-commit-windows\nodes\win2012r2\test\sequential\test-repl-persistent-history.js:211:16) # at emitNone (events.js:72:20) # at REPLServer.emit (events.js:166:7) # at REPLServer.Interface.close (readline.js:285:8) # at REPLServer.replClose [as close] (repl.js:486:29) |
Sorry, something went wrong.
|
I think it needed to wait for I/O to close. Fingers crossed... CI again: https://jenkins-iojs.nodesource.com/job/node-test-pull-request/88/ |
Sorry, something went wrong.
|
CI still not happy on Windows :[ not ok 875 - test-repl-persistent-history.js # c:\workspace\node-test-commit-windows\nodes\win2008r2\test\common.js:34 # throw e; # ^ # # Error: ENOTEMPTY: directory not empty, rmdir 'c:\workspace\node-test-commit-windows\nodes\win2008r2\test\tmp.0' # at Error (native) # at Object.fs.rmdirSync (fs.js:763:18) # at rmdirSync (c:\workspace\node-test-commit-windows\nodes\win2008r2\test\common.js:49:10) # at rimrafSync (c:\workspace\node-test-commit-windows\nodes\win2008r2\test\common.js:25:7) # at Object.exports.refreshTmpDir (c:\workspace\node-test-commit-windows\nodes\win2008r2\test\common.js:55:3) # at Immediate.setupTest (c:\workspace\node-test-commit-windows\nodes\win2008r2\test\sequential\test-repl-persistent-history.js:163:23) # at Immediate.immediate._onImmediate (timers.js:423:18) # at processImmediate [as _immediateCallback] (timers.js:371:17) |
Sorry, something went wrong.
|
I'm not sure what's up with that. Somehow this is failing: https://github.com/nodejs/node/blob/master/test/common.js#L15-L57 Specifically: https://github.com/nodejs/node/blob/master/test/common.js#L45-L48 I thought it might have been if the history file was written to after it starts clearing the files but I don't think that is possible... |
Sorry, something went wrong.
|
Might be a Windows quirk: isaacs/rimraf#72 I think it must be intermittent, but we should still attempt an workaround later. Maybe give the CI a few more runs? |
Sorry, something went wrong.
|
@evanlucas on the back burner right now. I think It can be fixed by replacing the refreshTmpDir with a function that checks if the file exists with a stat, and then unlinks if it does. |
Sorry, something went wrong.
|
I think this can be worked around by running the rmDirSync a few times. I dealt with these Windows issues before and I think running 10-20 times usually does the job. It's an ugly hack indeed. |
Sorry, something went wrong.
|
Hopefully this last patch fixed those stupid windows issues. https://jenkins-iojs.nodesource.com/job/node-test-pull-request/182/ |
Sorry, something went wrong.
|
Hmm, the rebase failed on that. here's a manual run: https://jenkins-iojs.nodesource.com/job/node-test-commit/339/ |
Sorry, something went wrong.
|
Ugh. EPERM. Whatever that means in this context. |
Sorry, something went wrong.
|
Might as well install a full rimraf and be done with it, I know that it can handle EPERM at least. |
Sorry, something went wrong.
Sorry, something went wrong.
|
Ok this EPERM isn't coming from the unlinkSync though. I think it's coming from fs.open in internal/repl...? |
Sorry, something went wrong.
This test is already being investigated, but until a solution is found it should be marked flaky. Ref: nodejs#2319 Ref: nodejs#2356
This test is already being investigated, but until a solution is found it should be marked flaky. Ref: nodejs#2319 Ref: nodejs#2356 PR-URL: nodejs#2659 Reviewed-By: orangemocha - Alexis Campailla <orangemocha@nodejs.org>
|
cc @nodejs/collaborators PTAL at the last commit |
Sorry, something went wrong.
There was a problem hiding this comment.
@silverwind @evanlucas can I get a last LGTM on this? this works without any even minor breaking changes now.
Sorry, something went wrong.
|
Ok, just pulled down and tested. I've run the tests hundreds of times now and haven't had them fail. LGTM |
Sorry, something went wrong.
- Now cleans up the history file unless told otherwise. - Now also logs which test case failed. - Waits for flush after repl close if necessary. Fixes: nodejs#2319 PR-URL: nodejs#2356 Reviewed-By: Roman Reiss <me@silverwind.io> Reviewed By: Evan Lucas <evanlucas@me.com>
Previously the wrong end of the history was limited on load. PR-URL: nodejs#2356 Reviewed-By: Roman Reiss <me@silverwind.io> Reviewed By: Evan Lucas <evanlucas@me.com>
|
Thanks, landed in d8db757...73b7e05 @nodejs/lts this is something we want in v4.x. |
Sorry, something went wrong.
Previously the wrong end of the history was limited on load. PR-URL: #2356 Reviewed-By: Roman Reiss <me@silverwind.io> Reviewed By: Evan Lucas <evanlucas@me.com>
Emitting 'close' before the history has flushed is somewhat incorrect and rather confusing. This also makes the 'close' event always asynchronous for consistency. Refs: nodejs#2356 PR-URL: nodejs#3435 Reviewed By: Evan Lucas <evanlucas@me.com> Reviewed-By: Trevor Norris <trev.norris@gmail.com>
Previously the wrong end of the history was limited on load. PR-URL: #2356 Reviewed-By: Roman Reiss <me@silverwind.io> Reviewed By: Evan Lucas <evanlucas@me.com>
Sorry, something went wrong.
Previously the wrong end of the history was limited on load. PR-URL: #2356 Reviewed-By: Roman Reiss <me@silverwind.io> Reviewed By: Evan Lucas <evanlucas@me.com>
| Back | FazBrowse Home | New Git URL |
Fix the history limiting to take the most recent. History additions are unshifted in readline.
Now tests the saved repl history size limiting.
Cleans up the test a bunch in the process, and also adds some debug so you can figure out which test case failed if it fails. Let me know if there is a better way to do that.