Skip to content
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

fs: make mutating options in readdir() not affect results #56057

Conversation

LiviaMedeiros
Copy link
Contributor

@LiviaMedeiros LiviaMedeiros commented Nov 28, 2024

The callback version is implemented in sync way (see #56006), so its test should pass without adjustments.

@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 Nov 28, 2024
Copy link

codecov bot commented Nov 28, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 88.00%. Comparing base (9c046ea) to head (aa7c1ef).
Report is 52 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main   #56057   +/-   ##
=======================================
  Coverage   88.00%   88.00%           
=======================================
  Files         656      656           
  Lines      189131   189138    +7     
  Branches    36009    36001    -8     
=======================================
+ Hits       166439   166455   +16     
+ Misses      15853    15849    -4     
+ Partials     6839     6834    -5     
Files with missing lines Coverage Δ
lib/fs.js 93.27% <100.00%> (+<0.01%) ⬆️
lib/internal/fs/promises.js 97.56% <100.00%> (+<0.01%) ⬆️

... and 28 files with indirect coverage changes

@LiviaMedeiros LiviaMedeiros added the blocked PRs that are blocked by other issues or PRs. label Nov 29, 2024
@LiviaMedeiros
Copy link
Contributor Author

To be safe, Callback API test blocked until #56041 lands (the test can be moved to that PR).

@LiviaMedeiros LiviaMedeiros force-pushed the fs-readdir-async-options-mutation branch from 5dcdd50 to d09a59e Compare December 7, 2024 09:53
@LiviaMedeiros LiviaMedeiros force-pushed the fs-readdir-async-options-mutation branch from d09a59e to 779031f Compare December 7, 2024 09:56
@LiviaMedeiros LiviaMedeiros added commit-queue-rebase Add this label to allow the Commit Queue to land a PR in several commits. request-ci Add this label to start a Jenkins CI on a PR. and removed blocked PRs that are blocked by other issues or PRs. labels Dec 7, 2024
@LiviaMedeiros LiviaMedeiros force-pushed the fs-readdir-async-options-mutation branch from ff33adc to aa7c1ef Compare December 7, 2024 10:03
@LiviaMedeiros
Copy link
Contributor Author

Rebased on main on top of 53356c3, now it patches both Callback and Promises APIs.

In callback version, copy is made only for recursive mode.

@github-actions github-actions bot added request-ci-failed An error occurred while starting CI via request-ci label, and manual interventon is needed. and removed request-ci Add this label to start a Jenkins CI on a PR. labels Dec 7, 2024

This comment was marked as resolved.

@nodejs-github-bot
Copy link
Collaborator

@LiviaMedeiros LiviaMedeiros removed the request-ci-failed An error occurred while starting CI via request-ci label, and manual interventon is needed. label Dec 7, 2024
@nodejs-github-bot
Copy link
Collaborator

@nodejs-github-bot
Copy link
Collaborator

@nodejs-github-bot
Copy link
Collaborator

@nodejs-github-bot
Copy link
Collaborator

@lpinca lpinca added the commit-queue Add this label to land a pull request using GitHub Actions. label Dec 12, 2024
@nodejs-github-bot nodejs-github-bot removed the commit-queue Add this label to land a pull request using GitHub Actions. label Dec 12, 2024
@nodejs-github-bot
Copy link
Collaborator

Landed in 743eacc...9109965

nodejs-github-bot pushed a commit that referenced this pull request Dec 12, 2024
PR-URL: #56057
Reviewed-By: Rafael Gonzaga <rafael.nunu@hotmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Juan José Arboleda <soyjuanarbol@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
nodejs-github-bot pushed a commit that referenced this pull request Dec 12, 2024
PR-URL: #56057
Reviewed-By: Rafael Gonzaga <rafael.nunu@hotmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Juan José Arboleda <soyjuanarbol@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
targos pushed a commit that referenced this pull request Dec 13, 2024
PR-URL: #56057
Reviewed-By: Rafael Gonzaga <rafael.nunu@hotmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Juan José Arboleda <soyjuanarbol@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
targos pushed a commit that referenced this pull request Dec 13, 2024
PR-URL: #56057
Reviewed-By: Rafael Gonzaga <rafael.nunu@hotmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Juan José Arboleda <soyjuanarbol@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
aduh95 pushed a commit that referenced this pull request Dec 18, 2024
PR-URL: #56057
Reviewed-By: Rafael Gonzaga <rafael.nunu@hotmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Juan José Arboleda <soyjuanarbol@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
aduh95 pushed a commit that referenced this pull request Dec 18, 2024
PR-URL: #56057
Reviewed-By: Rafael Gonzaga <rafael.nunu@hotmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Juan José Arboleda <soyjuanarbol@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
commit-queue-rebase Add this label to allow the Commit Queue to land a PR in several commits. 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.

8 participants