You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Playwright tests have been working when widgets belong to a workspace ("apps" directory), but it seems that after switching to a single "App" (widget directory), see tests failing in pull request for gateway, the tests will break with the error:
[WebServer] node:events:495
throw er; // Unhandled 'error' event
^
Error: ENOENT: no such file or directory, watch '/Users/ebraem/workspace/near/nearbuilders/sdks.near/test-results/.playwright-artifacts-4/'
at FSWatcher.<computed> (node:internal/fs/watchers:247:19)
at Object.watch (node:fs:2418:34)
at Gaze._watchDir (/Users/ebraem/workspace/near/nearbuilders/sdks.near/node_modules/gaze/lib/gaze.js:314:30)
at /Users/ebraem/workspace/near/nearbuilders/sdks.near/node_modules/gaze/lib/gaze.js:387:10
at iterate (/Users/ebraem/workspace/near/nearbuilders/sdks.near/node_modules/gaze/lib/helper.js:69:5)
at /Users/ebraem/workspace/near/nearbuilders/sdks.near/node_modules/gaze/lib/helper.js:78:11
at /Users/ebraem/workspace/near/nearbuilders/sdks.near/node_modules/gaze/lib/gaze.js:452:5
at iterate (/Users/ebraem/workspace/near/nearbuilders/sdks.near/node_modules/gaze/lib/helper.js:69:5)
at /Users/ebraem/workspace/near/nearbuilders/sdks.near/node_modules/gaze/lib/helper.js:78:11
at /Users/ebraem/workspace/near/nearbuilders/sdks.near/node_modules/gaze/lib/gaze.js:452:5
Emitted 'error' event on Gaze instance at:
at Gaze.emit (/Users/ebraem/workspace/near/nearbuilders/sdks.near/node_modules/gaze/lib/gaze.js:102:32)
at Gaze._handleError (/Users/ebraem/workspace/near/nearbuilders/sdks.near/node_modules/gaze/lib/gaze.js:468:15)
at Gaze._watchDir (/Users/ebraem/workspace/near/nearbuilders/sdks.near/node_modules/gaze/lib/gaze.js:331:17)
at /Users/ebraem/workspace/near/nearbuilders/sdks.near/node_modules/gaze/lib/gaze.js:387:10
[... lines matching original stack trace ...]
at /Users/ebraem/workspace/near/nearbuilders/sdks.near/node_modules/gaze/lib/gaze.js:452:5 {
errno: -2,
syscall: 'watch',
code: 'ENOENT',
path: '/Users/ebraem/workspace/near/nearbuilders/sdks.near/test-results/.playwright-artifacts-4/',
filename: '/Users/ebraem/workspace/near/nearbuilders/sdks.near/test-results/.playwright-artifacts-4/'
}
This error is happening in the web server (bos workspace dev server) during tests, it is killing the web server, and then tests are failing after this because the server is dead and tests can no longer run.
Gaze is used by bos-workspace to watch for changes in files to retrigger builds. There seems to be an issue with Gaze as an App vs Workspace, that is is trying to watch playwright artifacts??? I'm not sure.
It will need investigation.
As part of this ticket, we can also replace Gaze with the more battle-tested Chokidar.
The text was updated successfully, but these errors were encountered:
Playwright tests have been working when widgets belong to a workspace ("apps" directory), but it seems that after switching to a single "App" (widget directory), see tests failing in pull request for gateway, the tests will break with the error:
This error is happening in the web server (bos workspace dev server) during tests, it is killing the web server, and then tests are failing after this because the server is dead and tests can no longer run.
Gaze is used by bos-workspace to watch for changes in files to retrigger builds. There seems to be an issue with Gaze as an App vs Workspace, that is is trying to watch playwright artifacts??? I'm not sure.
It will need investigation.
As part of this ticket, we can also replace Gaze with the more battle-tested Chokidar.
The text was updated successfully, but these errors were encountered: