Skip to content

Commit

Permalink
chore(worker-runtime): remove worker proxy MONGOSH-1416 (#2049)
Browse files Browse the repository at this point in the history
* remove worker proxy

* break on interrupt - sync and async

* handle listeners

* fix emitter tests

* evaluationListener tests

* remove interruptor

* clean up

* istanbul

* fix ts error

* fix ci test

* context tests

* chore(node-runtime-worker-thread): remove child process indirection, use worker_threads directly

* fixup

* wip tests

* serialization

* remove serialization

* rpc tests

* clean up tests

* use setTimeout from node timers

* clean up

* add interruptor to webpack

* error message

* optional unref on setTimeout

* register worker for mocha

* fix paths for windows

* Update worker-runtime.ts

---------

Co-authored-by: Rhys Howell <[email protected]>
  • Loading branch information
mabaasit and Anemy authored Sep 2, 2024
1 parent feb0328 commit 9b5c61a
Show file tree
Hide file tree
Showing 20 changed files with 341 additions and 919 deletions.
26 changes: 19 additions & 7 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

This file was deleted.

5 changes: 3 additions & 2 deletions packages/node-runtime-worker-thread/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"node": ">=14.15.1"
},
"scripts": {
"test": "cross-env TS_NODE_PROJECT=./tsconfig.test.json mocha -r \"../../scripts/import-expansions.js\" --timeout 15000 -r ts-node/register \"./src/**/*.spec.ts\"",
"test": "cross-env TS_NODE_PROJECT=./tsconfig.test.json mocha -r \"../../scripts/import-expansions.js\" -r \"./tests/register-worker.js \" --timeout 15000 -r ts-node/register \"./src/**/*.spec.ts\"",
"pretest-ci": "node ../../scripts/run-if-package-requested.js npm run webpack-build -- --no-stats --no-devtool",
"test-ci": "node ../../scripts/run-if-package-requested.js npm test",
"test-coverage": "nyc --no-clean --cwd ../.. --reporter=none npm run test",
Expand Down Expand Up @@ -52,6 +52,7 @@
},
"dependencies": {
"interruptor": "^1.0.1",
"system-ca": "^2.0.1"
"system-ca": "^2.0.1",
"web-worker": "^1.3.0"
}
}

This file was deleted.

124 changes: 0 additions & 124 deletions packages/node-runtime-worker-thread/src/child-process-proxy.ts

This file was deleted.

Loading

0 comments on commit 9b5c61a

Please sign in to comment.