Open justinmk3 opened 2 months ago
This is becoming much more frequent, for example https://github.com/aws/aws-toolkit-vscode/pull/5944
Potential solution: add "**/node_modules/**"
to the files.watcherExclude
vscode setting, before running tests in CI.
Problem
The
Linux Unit Tests
CI jobs show these (non-fatal, currently) errors indicating that something is crawling files innode_modules
and trying to watchpackage.json
Expected behavior
Toolkit/Q code should not create lots of file watchers. #2382 (Good news: this may be a CI-only issue; see "Analysis" below.)
This issue is currently not "fatal" (doesn't fail CI or interfere with tests ... yet). But:
Analysis
…/aws-toolkit-vscode/node_modules/…/package.json
paths indicate that this may be happening from the test runner or other tooling, rather than the Toolkit application code. Because that isn't the "test workspace", that's the source tree.watchedFiles
modules suffers from the fact that its "exclude" feature doesn't actually prevent watchers from being created. it only skips the events at runtime.createFilesystemWatcher
indicate that recursive patterns for a workspace are supposedly handled by vscode to avoid duplicate watchers ?