Skip to content

fs: extend signal option to lstat, fstat and promises API - #63143

Open
mertcanaltin wants to merge 10 commits into
nodejs:mainfrom
mertcanaltin:mert/fs-stat-parity
Open

fs: extend signal option to lstat, fstat and promises API#63143
mertcanaltin wants to merge 10 commits into
nodejs:mainfrom
mertcanaltin:mert/fs-stat-parity

Conversation

@mertcanaltin

Copy link
Copy Markdown
Member

Stacked on top of #63142. Adds AbortSignal support to fs.lstat, fs.fstat, fsPromises.stat, fsPromises.lstat, fsPromises.fstat and filehandle.stat to match fs.stat. Addresses @LiviaMedeiros's parity request from #57775.

Will rebase once #63142 lands.

Refs: #57775

@nodejs-github-bot nodejs-github-bot added fs Issues and PRs related to the fs subsystem / file system. needs-ci PRs that need a full CI run. labels May 6, 2026
@mertcanaltin
mertcanaltin force-pushed the mert/fs-stat-parity branch from b700b01 to face7e9 Compare May 6, 2026 05:18
@mertcanaltin
mertcanaltin force-pushed the mert/fs-stat-parity branch from face7e9 to d310519 Compare May 7, 2026 19:42
@codecov

codecov Bot commented May 7, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 90.32%. Comparing base (f914e45) to head (86d82f3).
⚠️ Report is 112 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #63143      +/-   ##
==========================================
- Coverage   92.07%   90.32%   -1.75%     
==========================================
  Files         399      751     +352     
  Lines      177007   249847   +72840     
  Branches    27381    47199   +19818     
==========================================
+ Hits       162978   225686   +62708     
- Misses      13716    15549    +1833     
- Partials      313     8612    +8299     
Files with missing lines Coverage Δ
lib/fs.js 98.38% <100.00%> (+4.18%) ⬆️
lib/internal/fs/promises.js 93.11% <100.00%> (+2.45%) ⬆️

... and 482 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Comment thread doc/api/fs.md Outdated
Comment thread doc/api/fs.md Outdated
Comment thread doc/api/fs.md Outdated
Comment thread doc/api/fs.md Outdated
Comment thread lib/internal/fs/promises.js
Comment thread lib/internal/fs/promises.js
Comment thread lib/internal/fs/promises.js
Comment thread lib/internal/fs/promises.js
@mertcanaltin
mertcanaltin requested a review from atlowChemi May 24, 2026 18:00
Comment thread lib/internal/fs/promises.js Outdated
@mertcanaltin
mertcanaltin requested a review from jasnell May 25, 2026 15:32
mertcanaltin and others added 10 commits August 13, 2026 23:12
Signed-off-by: Mert Can Altin <mertgold60@gmail.com>
Signed-off-by: Mert Can Altin <mertgold60@gmail.com>
Co-authored-by: Chemi Atlow <chemi@atlow.co.il>
Co-authored-by: Chemi Atlow <chemi@atlow.co.il>
Co-authored-by: Chemi Atlow <chemi@atlow.co.il>
Co-authored-by: Chemi Atlow <chemi@atlow.co.il>
Co-authored-by: Chemi Atlow <chemi@atlow.co.il>
Add validateObject before reading options.signal in the promises
stat, lstat and fstat, matching the rest of the module. Import the
PromiseWithResolvers primordial and drop the now-unused
kResistStopPropagation left over from the raceWithSignal rewrite.
Co-authored-by: James M Snell <jasnell@gmail.com>
@mertcanaltin

Copy link
Copy Markdown
Member Author

I solved conflict.

@MikeMcC399 MikeMcC399 added request-ci Add this label to start a Jenkins CI on a PR. and removed request-ci Add this label to start a Jenkins CI on a PR. labels Aug 20, 2026
@MikeMcC399

MikeMcC399 commented Aug 20, 2026

Copy link
Copy Markdown
Contributor

Will rebase once #63142 lands.

#63142 is still open.

Edit: A new review (approval) is also required before Jenkins CI can be run. resolved

@MikeMcC399 MikeMcC399 added the request-ci Add this label to start a Jenkins CI on a PR. label Aug 20, 2026
@github-actions github-actions Bot removed the request-ci Add this label to start a Jenkins CI on a PR. label Aug 20, 2026
@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

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

Labels

fs Issues and PRs related to the fs subsystem / file system. needs-ci PRs that need a full CI run.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants