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

test: deflake fs-promises-watch #40863

Merged
merged 1 commit into from
Nov 21, 2021

Conversation

lpinca
Copy link
Member

@lpinca lpinca commented Nov 18, 2021

Change the contents of the file every 100 milliseconds until the watcher
notices the change. This is already done in the callback based version
of the test (test-fs-watch.js).

Fixes: #37637

Change the contents of the file every 100 milliseconds until the watcher
notices the change. This is already done in the callback based version
of the test (`test-fs-watch.js`).

Fixes: nodejs#37637
@nodejs-github-bot nodejs-github-bot added needs-ci PRs that need a full CI run. test Issues and PRs related to the tests. labels Nov 18, 2021
@lpinca
Copy link
Member Author

lpinca commented Nov 18, 2021

Before:

$ ./tools/test.py -J --repeat=1000 test/parallel/test-fs-promises-watch.js 
=== release test-fs-promises-watch ===                   
Path: parallel/test-fs-promises-watch
Command: out/Release/node /Users/luigi/code/node/test/parallel/test-fs-promises-watch.js
--- TIMEOUT ---
=== release test-fs-promises-watch ===                   
Path: parallel/test-fs-promises-watch
Command: out/Release/node /Users/luigi/code/node/test/parallel/test-fs-promises-watch.js
--- TIMEOUT ---
=== release test-fs-promises-watch ===                   
Path: parallel/test-fs-promises-watch
Command: out/Release/node /Users/luigi/code/node/test/parallel/test-fs-promises-watch.js
--- TIMEOUT ---
=== release test-fs-promises-watch ===                   
Path: parallel/test-fs-promises-watch
Command: out/Release/node /Users/luigi/code/node/test/parallel/test-fs-promises-watch.js
--- TIMEOUT ---
=== release test-fs-promises-watch ===                   
Path: parallel/test-fs-promises-watch
Command: out/Release/node /Users/luigi/code/node/test/parallel/test-fs-promises-watch.js
--- TIMEOUT ---
=== release test-fs-promises-watch ===                   
Path: parallel/test-fs-promises-watch
Command: out/Release/node /Users/luigi/code/node/test/parallel/test-fs-promises-watch.js
--- TIMEOUT ---
=== release test-fs-promises-watch ===                   
Path: parallel/test-fs-promises-watch
Command: out/Release/node /Users/luigi/code/node/test/parallel/test-fs-promises-watch.js
--- TIMEOUT ---
=== release test-fs-promises-watch ===                   
Path: parallel/test-fs-promises-watch
Command: out/Release/node /Users/luigi/code/node/test/parallel/test-fs-promises-watch.js
--- TIMEOUT ---
[02:10|% 100|+ 992|-   8]: Done

After:

$ ./tools/test.py -J --repeat=1000 test/parallel/test-fs-promises-watch.js 
[00:14|% 100|+ 1000|-   0]: Done

Thanks to @Linkgoron for the investigation.

@Trott Trott added the request-ci Add this label to start a Jenkins CI on a PR. label Nov 19, 2021
@github-actions github-actions bot removed the request-ci Add this label to start a Jenkins CI on a PR. label Nov 19, 2021
@nodejs-github-bot
Copy link
Collaborator

@nodejs-github-bot
Copy link
Collaborator

@nodejs-github-bot
Copy link
Collaborator

@nodejs-github-bot
Copy link
Collaborator

CI: https://ci.nodejs.org/job/node-test-pull-request/41028/

@Trott Trott added the commit-queue Add this label to land a pull request using GitHub Actions. label Nov 21, 2021
@nodejs-github-bot nodejs-github-bot removed the commit-queue Add this label to land a pull request using GitHub Actions. label Nov 21, 2021
@nodejs-github-bot nodejs-github-bot merged commit c6352f5 into nodejs:master Nov 21, 2021
@nodejs-github-bot
Copy link
Collaborator

Landed in c6352f5

@lpinca lpinca deleted the deflake/fs-promises-watch branch November 21, 2021 18:34
targos pushed a commit that referenced this pull request Nov 26, 2021
Change the contents of the file every 100 milliseconds until the watcher
notices the change. This is already done in the callback based version
of the test (`test-fs-watch.js`).

Fixes: #37637

PR-URL: #40863
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Nitzan Uziely <linkgoron@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Yongsheng Zhang <zyszys98@gmail.com>
danielleadams pushed a commit that referenced this pull request Jan 30, 2022
Change the contents of the file every 100 milliseconds until the watcher
notices the change. This is already done in the callback based version
of the test (`test-fs-watch.js`).

Fixes: #37637

PR-URL: #40863
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Nitzan Uziely <linkgoron@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Yongsheng Zhang <zyszys98@gmail.com>
danielleadams pushed a commit that referenced this pull request Feb 1, 2022
Change the contents of the file every 100 milliseconds until the watcher
notices the change. This is already done in the callback based version
of the test (`test-fs-watch.js`).

Fixes: #37637

PR-URL: #40863
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Nitzan Uziely <linkgoron@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Yongsheng Zhang <zyszys98@gmail.com>
@danielleadams danielleadams mentioned this pull request Feb 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs-ci PRs that need a full CI run. test Issues and PRs related to the tests.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

investigate flaky test-fs-promises-watch on macOS
7 participants