Repository navigation
Investigate flaky test-fs-watch-non-recursive on Windows #40728
Description
Activity
- addedflaky-testIssues and PRs involving tests that fail intermittently in CI.Issues and PRs involving tests that fail intermittently in CI.windowsIssues and PRs related to the Windows platform.Issues and PRs related to the Windows platform.
on Nov 5, 2021 It seems this first appears in nodejs/reliability#92, the referenced PRs don't seem to be related so I suspect it's an issue with the test.
I'm am totally unable to make this test pass on my Windows machine, even if I increase the timeouts.
Maybe the issue is with some recent Windows update?- addedfsIssues and PRs related to file-system APIs and the fs module.Issues and PRs related to file-system APIs and the fs module.
on Nov 8, 2021 @nodejs/platform-windows
It seems that the creation of file
testsubdir/watch.txtchanges the modification time oftestsubdir- which seems correct to me.I wonder that this test ever passed.
Adding e.g.
fs.writeFileSync(filepath, 'init');before starting the watcher avoids this and test passes on my machine. But I'm not sure if this changes the intention of test.It seems that the creation of file testsubdir/watch.txt changes the modification time of testsubdir - which seems correct to me.
The commit that added this test was 515607a with the message
fs: make fs.watch() non-recursive by default Fixes a behavioral regression introduced in commit 691b9eb.So I guess the intended behavior is that the changes shouldn't be notified in this case.
I looked into the logs a bit more and it seems this first (as far as the reliability bot records) appeared in nodejs/reliability#68, none of the referenced PRs seem to be related, either. I'd say it's time to mark this as flaky already.
- added a commit that references this issue
on Nov 21, 2021 I've opened #40916 but I'm unable to reproduce the issue on my Windows machine.
$ npx envinfo --system System: OS: Windows 10 10.0.19044 CPU: (8) x64 Intel(R) Core(TM) i7-6700 CPU @ 3.40GHz Memory: 3.88 GB / 7.90 GBWindows 10 10.0.19044
Is this the latest version of Windows 10?
Yes, updated a few minutes ago.
I tested again on a different (slower) Windows machine. Problem is not reproducible there but once I have VSCode running in background the test starts to fail (still executed without debugger from command line).
Maybe VSCode does also some watching which causes such side effects.
On the machine I tested first the test is flaky without VSCode running but fails stable if it runs in background.
I've VSCode and a virtual machine (Windows 10 on Hyper-V) running but I can't reproduce.
- added a commit that references this issue
on Nov 23, 2021 - added a commit that references this issue
on Nov 26, 2021 - added 2 commits that reference this issue
on Jan 30, 2022 - added a commit that references this issue
on Sep 23, 2024 - added a commit that references this issue
on Oct 4, 2024
test-fs-watch-non-recursivehttps://ci.nodejs.org/job/node-test-binary-windows-js-suites/12089/RUN_SUBSET=2,nodes=win10-COMPILED_BY-vs2019/testReport/junit/(root)/test/pummel_test_fs_watch_non_recursive/