fs: add signal option to fs.stat()#57775
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #57775 +/- ##
==========================================
- Coverage 90.24% 90.22% -0.02%
==========================================
Files 635 635
Lines 187588 187596 +8
Branches 36860 36858 -2
==========================================
- Hits 169292 169266 -26
- Misses 11060 11111 +51
+ Partials 7236 7219 -17
🚀 New features to boost your workflow:
|
LiviaMedeiros
left a comment
There was a problem hiding this comment.
The commit message after subsystem should start with imperative verb and probably be more specific, maybe something like fs: add signal option to fs.stat()?
291c8a6 to
911f8da
Compare
thank you very much, I will be more careful with this, sometimes I make the wrong sentence 🙏 |
f9b0d0d to
9fcffb4
Compare
LiviaMedeiros
left a comment
There was a problem hiding this comment.
Doesn't necessarily have to be in scope of this PR, but i think we'll also need signal option for Sync and Promises API of this function, and also for the lstat version; ideally within same semver-minor release so there's no discrepancy between these functions.
targos
left a comment
There was a problem hiding this comment.
Test is writing a temporary file in the cwd. It should use common API instead
|
@mertcanaltin ... can you please remove the merge commit from this and use rebase instead to catch it up? |
171a72d to
99ec837
Compare
thank you I used rebase |
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
There was a problem hiding this comment.
This adds quite a lot of complexity. Is that something we really want to support? I feel like a stat call should be fine not to be able to abort?
I am going to run the benchmarks to see how much overhead this adds for the common case.
https://ci.nodejs.org/view/Node.js%20benchmark/job/benchmark-node-micro-benchmarks/1719/
|
@BridgeAR I looked at this benchmark, but the benchmark result fails. Can you restart this benchmark line? |
|
On the question of whether we really want to support this, I'm fine in general with the change but I also don't see it as being all that useful given the additional complexity. |
2533e72 to
35d459f
Compare
ceab296 to
7c66528
Compare
|
hello I tried to fix the complex structure |
|
Landed in 7b6a072 |
add signal option to fs.stat() for #57751