Skip to content

sea: support execArgv in sea config #59314

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

joyeecheung
Copy link
Member

@joyeecheung joyeecheung commented Aug 1, 2025

The execArgv field can be used to specify Node.js-specific arguments that will be automatically applied when the single executable application starts. This allows application developers to configure Node.js runtime options without requiring end users to be aware of these flags.

This implements point 1 in #51688 (comment) - and leaves point 2 open, which can be implemented together or as a follow-up. It would be helpful to get some feedback about whether that plan is good enough for different use cases before I send this for code review. Currently the behavior in this PR is point 1 + the "env" option in point 2 by default.

Refs: #51688
Refs: #55573
Refs: nodejs/single-executable#100

@nodejs-github-bot
Copy link
Collaborator

Review requested:

  • @nodejs/single-executable

@nodejs-github-bot nodejs-github-bot added c++ Issues and PRs that require attention from people who are familiar with C++. needs-ci PRs that need a full CI run. single-executable Issues and PRs related to single-executable applications labels Aug 1, 2025
The `execArgv` field can be used to specify Node.js-specific
arguments that will be automatically applied when the single
executable application starts. This allows application developers
to configure Node.js runtime options without requiring end users
to be aware of these flags.
@joyeecheung joyeecheung marked this pull request as ready for review August 11, 2025 09:44
@nodejs-github-bot
Copy link
Collaborator

@addaleax addaleax added author ready PRs that have at least one approval, no pending requests for changes, and a CI started. commit-queue Add this label to land a pull request using GitHub Actions. labels Aug 12, 2025
@nodejs-github-bot nodejs-github-bot removed the commit-queue Add this label to land a pull request using GitHub Actions. label Aug 12, 2025
@nodejs-github-bot
Copy link
Collaborator

Commit Queue failed
- Loading data for nodejs/node/pull/59314
✔  Done loading data for nodejs/node/pull/59314
----------------------------------- PR info ------------------------------------
Title      sea: support execArgv in sea config (#59314)
Author     Joyee Cheung <joyeec9h3@gmail.com> (@joyeecheung)
Branch     joyeecheung:sea-cli -> nodejs:main
Labels     c++, author ready, needs-ci, single-executable
Commits    1
 - sea: support execArgv in sea config
Committers 1
 - Joyee Cheung <joyeec9h3@gmail.com>
PR-URL: https://github.com/nodejs/node/pull/59314
Refs: https://github.com/nodejs/node/issues/51688
Refs: https://github.com/nodejs/node/issues/55573
Refs: https://github.com/nodejs/single-executable/issues/100
Reviewed-By: Anna Henningsen <anna@addaleax.net>
------------------------------ Generated metadata ------------------------------
PR-URL: https://github.com/nodejs/node/pull/59314
Refs: https://github.com/nodejs/node/issues/51688
Refs: https://github.com/nodejs/node/issues/55573
Refs: https://github.com/nodejs/single-executable/issues/100
Reviewed-By: Anna Henningsen <anna@addaleax.net>
--------------------------------------------------------------------------------
   ℹ  This PR was created on Fri, 01 Aug 2025 13:18:06 GMT
   ✔  Approvals: 1
   ✔  - Anna Henningsen (@addaleax): https://github.com/nodejs/node/pull/59314#pullrequestreview-3111580320
   ✘  Last GitHub CI failed
   ℹ  Last Full PR CI on 2025-08-11T09:44:55Z: https://ci.nodejs.org/job/node-test-pull-request/68557/
- Querying data for job/node-test-pull-request/68557/
   ✔  Last Jenkins CI successful
--------------------------------------------------------------------------------
   ✔  Aborted `git node land` session in /home/runner/work/node/node/.ncu
https://github.com/nodejs/node/actions/runs/16914688343

@nodejs-github-bot nodejs-github-bot added the commit-queue-failed An error occurred while landing this pull request using GitHub Actions. label Aug 12, 2025
@joyeecheung
Copy link
Member Author

Removed the unused variable that triggered -Werror

@nodejs-github-bot
Copy link
Collaborator

Copy link

codecov bot commented Aug 12, 2025

Codecov Report

❌ Patch coverage is 83.05085% with 10 lines in your changes missing coverage. Please review.
⚠️ Please upload report for BASE (main@013190d). Learn more about missing BASE report.
⚠️ Report is 11 commits behind head on main.

Files with missing lines Patch % Lines
src/node_sea.cc 83.05% 6 Missing and 4 partials ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##             main   #59314   +/-   ##
=======================================
  Coverage        ?   89.86%           
=======================================
  Files           ?      656           
  Lines           ?   193012           
  Branches        ?    37860           
=======================================
  Hits            ?   173449           
  Misses          ?    12117           
  Partials        ?     7446           
Files with missing lines Coverage Δ
src/node_sea.cc 86.68% <83.05%> (ø)
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
author ready PRs that have at least one approval, no pending requests for changes, and a CI started. c++ Issues and PRs that require attention from people who are familiar with C++. commit-queue-failed An error occurred while landing this pull request using GitHub Actions. needs-ci PRs that need a full CI run. single-executable Issues and PRs related to single-executable applications
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants