-
Notifications
You must be signed in to change notification settings - Fork 774
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
5.0.0 Test suite broken on Node.js 8.x and 9.x #536
Comments
Confirmed issue; investigating. |
This is weird; it seems the Node.js I'm not sure how |
You should open an issue against the main repo.... This may be something
broken in libuv
…On Jan 10, 2018 9:45 AM, "Ryan Zimmerman" ***@***.***> wrote:
This is weird; it seems the Node.js copyFile and copyFileSync methods
aren't consistent between Mac and Linux. On Mac, it seems to always
preserve timestamps, while the timestamp is changed on Linux. Here's a test
case repo: https://github.com/RyanZim/fs-copy-file-test Note that this is
testing the fs methods directly; not fs-extra. The tests pass on Linux,
as the timestamps are changed; they fail on Mac since the timestamps are
preserved.
I'm not sure how fs-extra should handle this.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#536 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAecV10JVQAWkfeDHad2VddVi5dC8kI6ks5tJM0FgaJpZM4RY1jo>
.
|
@MylesBorins I assume you mean https://github.com/nodejs/node when you say the main repo? |
Indeed, sorry for not being exact
… On Jan 10, 2018, at 10:02 AM, Ryan Zimmerman ***@***.***> wrote:
@MylesBorins <https://github.com/mylesborins> I assume you mean https://github.com/nodejs/node <https://github.com/nodejs/node> when you say the main repo?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub <#536 (comment)>, or mute the thread <https://github.com/notifications/unsubscribe-auth/AAecVzXGxxLTAtjMn_302WG5eYwAfpkIks5tJNECgaJpZM4RY1jo>.
|
Just did a quick search, and it seems this was already reported on the end of another issue: nodejs/node#15793 (comment). Not sure if it's wise to open a new issue about this. |
That seems to be a different issue. It's requesting the exact option tested in the broken test: when |
@joyeecheung The issue is about a slightly different thing, but the linked comment is what we're talking about:
|
From nodejs/node#15793 (comment):
I don't know C, so I can't do any hacking on libuv. Should we try to just hack around this in JS internally? |
@RyanZim Even if you implement preserveTimestamp in core, the timestamps will still be the same by default on Mac and Windows, so the tests will still fail unless you deliberately update the timestamps when the option is false. |
@MylesBorins So do you think there's any chance of this getting fixed at the Node/libuv level, or do we just have to deal with this? |
Hey guys 👋 I came across this issue while hunting down the same problem in I handled it by calling fs.futimes() to manually change the timestamps back to the source file's timestamps. You end up having to re-open the destination file, but it doesn't seem to kill performance. While I agree that the consistency issue should be fixed in node or libuv, this might be a usable workaround. Hope that helps! |
there's an open issue for v5 - jprichardson/node-fs-extra#536
I discussed this with @jprichardson and we've decided that when |
Done in #563; will be released later this month. |
fs-extra
version: 5.0.0 || masterThe test for this module is not currently passing with Node.js 8.x or 9.x. and it appears to be 0bd5279 that broke it
The text was updated successfully, but these errors were encountered: