-
Notifications
You must be signed in to change notification settings - Fork 231
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
exit and vatStore are not provided consistently across all vat workers #2643
Comments
Oh, interesting, to test this reliably, I think I'll need to implement #512 by making |
Eh, I'll fix this now and leave this open until the tests are added, to maintain momentum. |
Some unfortunate code duplication meant the nodeworker/subprocess-node workers were lacking vatstoreGet, vatstoreSet, and vatstoreDelete. And everything but the local worker was lacking syscall.exit. refs #2643 , but doesn't close it because I want to (eventually) write proper tests for this
Some unfortunate code duplication meant the nodeworker/subprocess-node workers were lacking vatstoreGet, vatstoreSet, and vatstoreDelete. And everything but the local worker was lacking syscall.exit. refs #2643 , but doesn't close it because I want to (eventually) write proper tests for this
This got fixed as a side-effect of #2671, which refactored |
Describe the bug
While working on adding
syscall.dropImports
tests (#2635), I noticed that we weren't consistently providing all vat worker types with access to theexit
andvatStoreGet/Set/Delete
syscalls. The xsnap worker lackedexit
, while the subprocess-node and subprocess-nodeworker types lacked bothexit
and thevatStore
trio.The root problem is the unfortunate duplication of the
const syscall =
in all four worker types (src/kernel/vatManager/{syscall,supervisor-nodeworker,supervisor-subprocess-node,supervisor-subprocess-xsnap}.js
). One of these days we should find a tidy way to refactor those.I'll update the
syscall
definitions, and add more calls totest/workers/vat-target.js
to exercise all four cases.The text was updated successfully, but these errors were encountered: