Skip to content
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

Draft
wants to merge 14 commits into
base: master
Choose a base branch
from
Draft

test coverage over bundles #11100

wants to merge 14 commits into from

Conversation

turadg
Copy link
Member

@turadg turadg commented Mar 10, 2025

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

Copy link

cloudflare-workers-and-pages bot commented Mar 10, 2025

Deploying agoric-sdk with  Cloudflare Pages  Cloudflare Pages

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

View logs

@turadg turadg force-pushed the 1817-bundle-coverage branch from 608f963 to 6f954ac Compare March 10, 2025 23:58
moduleFormat: 'test',
[Symbol.for('exports')]: exports,
});
id = `b1-test-exports-${Math.random()}`;
Copy link
Member

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.

@mhofman
Copy link
Member

mhofman commented Mar 11, 2025

Draft until this doesn't have to patch Endo (next Endo rev )

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

Comment on lines +79 to +81
// Copy all the properties so this object can be hardened.
const exports = { ...pathOrExports };
return bundleTestExports(exports);
Copy link
Member

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?

Copy link
Member

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants