-
Notifications
You must be signed in to change notification settings - Fork 233
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
test coverage over bundles #11100
base: master
Are you sure you want to change the base?
test coverage over bundles #11100
Conversation
Deploying agoric-sdk with
|
Latest commit: |
670e08f
|
Status: | ✅ Deploy successful! |
Preview URL: | https://aafbc22d.agoric-sdk.pages.dev |
Branch Preview URL: | https://1817-bundle-coverage.agoric-sdk.pages.dev |
608f963
to
6f954ac
Compare
packages/zoe/tools/setup-zoe.js
Outdated
moduleFormat: 'test', | ||
[Symbol.for('exports')]: exports, | ||
}); | ||
id = `b1-test-exports-${Math.random()}`; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Interesting, this will also ensure that bundleAndInstall
is only used from the privileged start compartment.
I'd like to emphasize this one. The next Endo version introduces a revamped bundler, and maintaining coverage through the endo sync will be invaluable for @kriskowal |
// Copy all the properties so this object can be hardened. | ||
const exports = { ...pathOrExports }; | ||
return bundleTestExports(exports); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does anyone harden the returned bundle?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
FYI the version that ended up landing is quite a bit different.
refs: #1817
Description
Code coverage for bundles in unit tests!
Draft until this doesn't have to patch Endo (next Endo rev )
Security Considerations
Scaling Considerations
Documentation Considerations
Testing Considerations
Upgrade Considerations