-
Notifications
You must be signed in to change notification settings - Fork 212
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(swingset)!: remove support for non-XS metering
We no longer care about injected (Node.js) -based metering: XS is the only platform where we can reasonably+efficiently meter code. This removes support for passing `{ managerType: 'local', metered: true }` to `createVat()`. Doing so will throw an exception when the vatManager is invoked. Using just `{ metered: true }` is also an error when the swingset `config.defaultManagerType` is not set to `xs-worker`. Applications that want metered dynamic vats (i.e. all of them) should set `config.defaultManagerType = 'xs-worker'` to avoid this. This commit removes support throughout swingset: * `transformMetering` is no longer passed from controller to kernel to the local vatManager, and the transform is no longer applied to `inescapableTransforms` to ensure sub-Compartments are also transformed * `getMeter` is no longer placed on `inescapableLexicals` * `replaceGlobalMeter` is no longer passed through to `supervisor-helper`, where it was used to disable metering at the end of each crank * the kernel `meterManager` facilities were removed * all tests of metering non-XS workers are removed, including a test that exercised sub-Compartments (which was specific to the injection approach) Some tests have been modernized slightly, to use `controller.kpResolution` instead of appending strings to testLog, and to use `prepare-test-env-ava` instead of `@agoric/install-ses`. Dependency updates: Swingset no longer uses `@agoric/install-metering-and-ses`, or the `tame-metering`/`transform-metering` packages. A vestigal dependency on `babel-parser` (left over from the transform-tildot days) was removed. Swingset still depends upon `babel-standalone`, to pre-load before `lockdown` in `prepare-test-env-ava`. closes #3518
- Loading branch information
Showing
19 changed files
with
99 additions
and
677 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.