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

Generate package memory snapshot for validator. #2445

Merged
merged 1 commit into from
Jul 30, 2024

Conversation

dom96
Copy link
Collaborator

@dom96 dom96 commented Jul 25, 2024

Modifies memory snapshot generation to generate a package snapshot- one that only includes imports of modules that are not present in the user's worker bundle.

Reuses the existing AST walker to collect the import names and pushes them out to the validator.

Tested upstream.

@dom96 dom96 force-pushed the dominik/gen-package-snapshot-in-validator branch 3 times, most recently from 36ea3bb to b7c825d Compare July 26, 2024 17:13
@dom96 dom96 marked this pull request as ready for review July 26, 2024 17:15
@dom96 dom96 requested review from a team as code owners July 26, 2024 17:15
Copy link
Contributor

@hoodmane hoodmane left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me. Thanks!

@hoodmane
Copy link
Contributor

Changes like this are going to become annoying after we start making compat dates correspond to a fixed pyodide capnp bundle...

@dom96 dom96 force-pushed the dominik/gen-package-snapshot-in-validator branch 3 times, most recently from 9f8fba6 to cbe9294 Compare July 30, 2024 10:51
@dom96 dom96 force-pushed the dominik/gen-package-snapshot-in-validator branch from cbe9294 to cba9d27 Compare July 30, 2024 10:54
@dom96 dom96 merged commit fe8f690 into main Jul 30, 2024
9 checks passed
@dom96 dom96 deleted the dominik/gen-package-snapshot-in-validator branch July 30, 2024 12:39
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.

2 participants