Skip to content

Conversation

joyeecheung
Copy link
Member

@joyeecheung joyeecheung commented Mar 16, 2023

This implements the ideas discussed in nodejs/single-executable#58. This changes the SEA contract in that:

  1. The data injected is now a blob whose layout is controlled by us (generated with --experimental-sea-config), this makes it possible to include other resources into the SEA other than just the JS code
  2. The configuration is now JSON-based (accepted by --experimental-sea-config) which allows for more flexibility.

Refs: nodejs/single-executable#58

@nodejs-github-bot
Copy link
Collaborator

Review requested:

  • @nodejs/single-executable
  • @nodejs/startup
  • @nodejs/tsc

@nodejs-github-bot nodejs-github-bot added c++ Issues and PRs that require attention from people who are familiar with C++. lib / src Issues and PRs related to general changes in the lib or src directory. needs-ci PRs that need a full CI run. labels Mar 16, 2023
@joyeecheung joyeecheung force-pushed the sea-blob branch 2 times, most recently from 0f67d94 to c43ae7c Compare March 28, 2023 19:58
@joyeecheung
Copy link
Member Author

Updated the documentation a bit, still needs to write a bunch of tests...

@joyeecheung joyeecheung force-pushed the sea-blob branch 4 times, most recently from 8654fbd to 807b866 Compare April 4, 2023 17:09
@joyeecheung joyeecheung changed the title POC: use JSON configuration and blob content for SEA src: use JSON configuration and blob content for SEA Apr 4, 2023
@joyeecheung joyeecheung changed the title src: use JSON configuration and blob content for SEA sea: use JSON configuration and blob content for SEA Apr 4, 2023
@joyeecheung joyeecheung marked this pull request as ready for review April 4, 2023 17:12
@nodejs-github-bot
Copy link
Collaborator

@joyeecheung
Copy link
Member Author

Added tests and documentation. @nodejs/single-executable PTAL thanks!

Copy link
Member

@tony-go tony-go left a comment

Choose a reason for hiding this comment

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

👏🏼 Awesome

@nodejs-github-bot
Copy link
Collaborator

@joyeecheung joyeecheung added commit-queue Add this label to land a pull request using GitHub Actions. commit-queue-squash Add this label to instruct the Commit Queue to squash all the PR commits into the first one. labels Apr 9, 2023
@nodejs-github-bot nodejs-github-bot removed the commit-queue Add this label to land a pull request using GitHub Actions. label Apr 9, 2023
@nodejs-github-bot nodejs-github-bot merged commit 491a5c9 into nodejs:main Apr 9, 2023
@nodejs-github-bot
Copy link
Collaborator

Landed in 491a5c9

@RaisinTen
Copy link
Member

@joyeecheung should this be labelled as a notable-change PRs with changes that should be highlighted in changelogs. because this changes how this feature is supposed to be used?

@joyeecheung joyeecheung added the notable-change PRs with changes that should be highlighted in changelogs. label Apr 12, 2023
@github-actions
Copy link
Contributor

The notable-change PRs with changes that should be highlighted in changelogs. label has been added by @joyeecheung.

Please suggest a text for the release notes if you'd like to include a more detailed summary, then proceed to update the PR description with the text or a link to the notable change suggested text comment.

@joyeecheung
Copy link
Member Author

Good idea. Done.

@RaisinTen
Copy link
Member

FYI @joyeecheung:

Originally posted by @RafaelGSS in #47381 (comment)

I'll include both in the "Other notable changes" section. In case you feel it should be placed in the same section as V8/Permission Model changes, update the PR (#47125 and #47233) description according to the bot request.

Should we add some release notes for this change?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

c++ Issues and PRs that require attention from people who are familiar with C++. commit-queue-squash Add this label to instruct the Commit Queue to squash all the PR commits into the first one. lib / src Issues and PRs related to general changes in the lib or src directory. needs-ci PRs that need a full CI run. notable-change PRs with changes that should be highlighted in changelogs. single-executable Issues and PRs related to single-executable applications

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants