FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

lib: fix recursive watch on Linux by rubenpad · Pull Request #51049 · nodejs/node · GitHub

/ node Public

lib: fix recursive watch on Linux - #51049

Closed
rubenpad wants to merge 1 commit into
nodejs:mainfrom
rubenpad:lib-fix-recursive-watch-on-linux
Closed

lib: fix recursive watch on Linux#51049
rubenpad wants to merge 1 commit into
nodejs:mainfrom
rubenpad:lib-fix-recursive-watch-on-linux

Conversation

rubenpad commented Dec 4, 2023

Copy link
Copy Markdown

Fixes: #48437

Any changes that happen before the watch is set up are lost because the traverse call is asynchronous. I get the tests to pass changing the traverse call by this.#watchFile to watch the folder before any changes and then calling this.#watchFolder to traverse the folder's content and watch it.

Also noticed the timeout calls in the tests. I removed them because I think they're highlighting the issue.

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 Dec 4, 2023
rubenpad force-pushed the lib-fix-recursive-watch-on-linux branch from 501f1df to 2446ef6 Compare December 4, 2023 23:45
anonrig added the request-ci Add this label to start a Jenkins CI on a PR. label Dec 5, 2023
github-actions Bot removed the request-ci Add this label to start a Jenkins CI on a PR. label Dec 5, 2023

Copy link
Copy Markdown
Collaborator

Copy link
Copy Markdown
Collaborator

MoLow commented Dec 5, 2023

Copy link
Copy Markdown
Member

there seem te be related test failures:
https://ci.nodejs.org/job/node-test-commit-osx/56003/

parallel.test-fs-watch-recursive-add-file-with-url
parallel.test-fs-watch-recursive-assert-leaks

https://ci.nodejs.org/job/node-test-commit-osx-arm/14863/

parallel.test-fs-watch-recursive-symlink

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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.

Node 20 recursive file watching is misbehaving on Linux

4 participants


Back | FazBrowse Home | New Git URL