-
Notifications
You must be signed in to change notification settings - Fork 310
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
Implements support for external package loading in validator. #3140
Conversation
ce98a0a
to
3a04883
Compare
955a8e3
to
5b3d644
Compare
// TODO: fix this. | ||
await getPyodide(); |
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.
If I remove this call then some of our workerd tests fail under asan.
https://paste.cfdata.org/GdKtTZYLiz6LktnWP5gP
Hood mentioned this may be related to the isolate pool changes. @danlapid any ideas what might be going on here?
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.
Had to remove it again. No way around it. I'll probably disable these tests under asan for now but we should fix this asap, this asan issue is likely lurking there right now and just isn't being triggered.
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.
Pool code hasn't been merged yet so I don't see how it might be related
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.
Alright, I'll merge this in for now and ask the team if they have any ideas about how to debug this.
@@ -44,6 +45,7 @@ class SitePackagesDir { | |||
path: '', | |||
name: '', | |||
parts: [], | |||
reader: null, |
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.
What about setting reader: EmbeddedPackagesTarReader
and removing the node.reader ?? EmbeddedPackagesTarReader
logic in snapshot.ts
? Would that work?
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.
Probably, but doesn't matter much. I plan to get rid of EmbeddedPackagesTarReader
in a follow up PR.
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.
I made a few minor questions and suggestions.
f9a3602
to
601d573
Compare
601d573
to
5e90d9b
Compare
5e90d9b
to
5fada36
Compare
Moves package loading to
prepareWasmLinearMemory
so thatpreloadDynamicLibs
can use the loaded packages instead of the embedded ones.Also fixes a stack-use-after-scope error in
getPyodidePackage
Test Plan