Skip to content

test: deflake test-watch-mode-files_watcher - #67298

Open
inoway46 wants to merge 1 commit into
nodejs:mainfrom
inoway46:test-deflake-watch-mode-files-watcher
Open

inoway46 wants to merge 1 commit into
nodejs:mainfrom
inoway46:test-deflake-watch-mode-files-watcher

Conversation

@inoway46

@inoway46 inoway46 commented Nov 6, 2026 •

Copy link
Copy Markdown
Contributor

Some test cases made a single change right after creating a watcher, and on macOS that change could be missed because libuv starts the FSEvents stream asynchronously. This makes them keep changing the file until the watcher reports it, as the other cases already do.

Before the fix, the test timed out 4/2000 on macOS.
After the fix, it passed 2000/2000: https://github.com/inoway46/node/actions/runs/42192877091

Refs: https://github.com/nodejs/node/actions/runs/42177414954
Refs: nodejs/reliability#1715

Some test cases made a single change right after creating a watcher.
On macOS, libuv starts the FSEvents stream asynchronously, so that
change could be missed and the test hung until it timed out.

Keep making the change until the watcher reports it, as the other
cases in the file already do.

Refs: nodejs/reliability#1715
Refs: nodejs/reliability#1644
Signed-off-by: inoway46 <inoueyuya416@gmail.com>
@nodejs-github-bot nodejs-github-bot added needs-ci PRs that need a full CI run. test Issues and PRs related to Node.js core tests and test infrastructure. labels Nov 6, 2026
@inoway46
inoway46 marked this pull request as ready for review November 6, 2026 10:37
@codecov

codecov Bot commented Nov 6, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 90.68%. Comparing base (be6f8f8) to head (d1c2643).
⚠️ Report is 4 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main   #67298   +/-   ##
=======================================
  Coverage   90.67%   90.68%           
=======================================
  Files         797      797           
  Lines      279607   279607           
  Branches    53782    53782           
=======================================
+ Hits       253526   253553   +27     
+ Misses      16359    16340   -19     
+ Partials     9722     9714    -8     

see 26 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.

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 Node.js core tests and test infrastructure.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants