Skip to content

sea: reject malformed --node-options values - #64803

Closed
Archkon wants to merge 1 commit into
nodejs:mainfrom
Archkon:sea5
Closed

sea: reject malformed --node-options values#64803
Archkon wants to merge 1 commit into
nodejs:mainfrom
Archkon:sea5

Conversation

@Archkon

@Archkon Archkon commented Jul 28, 2026

Copy link
Copy Markdown

Propagate tokenization errors from ParseNodeOptionsEnvVar through FixupArgsForSEA and abort startup with an invalid command-line status instead of applying partially parsed options.

@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

Review requested:

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

@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 Jul 28, 2026
Propagate tokenization errors from ParseNodeOptionsEnvVar through
FixupArgsForSEA and abort startup with an invalid command-line status
instead of applying partially parsed options.

Signed-off-by: Archkon <180910180+Archkon@users.noreply.github.com>
@codecov

codecov Bot commented Jul 28, 2026

Copy link
Copy Markdown

Codecov Report

βœ… All modified and coverable lines are covered by tests.
βœ… Project coverage is 90.14%. Comparing base (6a3d80f) to head (ee1ca50).
⚠️ Report is 199 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #64803      +/-   ##
==========================================
- Coverage   90.16%   90.14%   -0.03%     
==========================================
  Files         744      744              
  Lines      242518   242550      +32     
  Branches    45705    45699       -6     
==========================================
- Hits       218670   218635      -35     
- Misses      15357    15401      +44     
- Partials     8491     8514      +23     
Files with missing lines Coverage Ξ”
src/node.cc 77.10% <100.00%> (+0.17%) ⬆️
src/node_sea.cc 89.40% <100.00%> (-0.13%) ⬇️
src/node_sea.h 100.00% <ΓΈ> (ΓΈ)

... and 39 files with indirect coverage changes

πŸš€ 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.

@avivkeller avivkeller added author ready PRs that have at least one approval, no pending requests for changes, and a CI started. request-ci Add this label to start a Jenkins CI on a PR. labels Aug 5, 2026
@github-actions github-actions Bot removed the request-ci Add this label to start a Jenkins CI on a PR. label Aug 5, 2026
@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

@Archkon

This comment was marked as spam.

@jasnell jasnell added the commit-queue Add this label to land a pull request using GitHub Actions. label Aug 8, 2026
@nodejs-github-bot nodejs-github-bot added commit-queue-failed An error occurred while landing this pull request using GitHub Actions. and removed commit-queue Add this label to land a pull request using GitHub Actions. labels Aug 8, 2026
@nodejs-github-bot

Copy link
Copy Markdown
Collaborator
Commit Queue failed
- Loading data for nodejs/node/pull/64803
βœ”  Done loading data for nodejs/node/pull/64803
----------------------------------- PR info ------------------------------------
Title      sea: reject malformed --node-options values (#64803)
   ⚠  Could not retrieve the email or name of the PR author's from user's GitHub profile!
Branch     Archkon:sea5 -> nodejs:main
Labels     c++, author ready, needs-ci, single-executable
Commits    1
 - sea: reject malformed --node-options values
Committers 1
 - Archkon <180910180+Archkon@users.noreply.github.com>
PR-URL: https://github.com/nodejs/node/pull/64803
Reviewed-By: James M Snell <jasnell@gmail.com>
------------------------------ Generated metadata ------------------------------
PR-URL: https://github.com/nodejs/node/pull/64803
Reviewed-By: James M Snell <jasnell@gmail.com>
--------------------------------------------------------------------------------
   β„Ή  This PR was created on Tue, 28 Jul 2026 11:14:57 GMT
   βœ”  Approvals: 1
   βœ”  - James M Snell (@jasnell) (TSC): https://github.com/nodejs/node/pull/64803#pullrequestreview-4838561230
   ✘  1 GitHub CI job(s) failed:
   ✘    - x86_64-darwin: with shared libraries / build: FAILURE (https://github.com/nodejs/node/actions/runs/30359390795/job/90275679554)
   ✘  15 GitHub CI job(s) cancelled:
   ✘    - test-tarball-linux: CANCELLED (https://github.com/nodejs/node/actions/runs/30359390085/job/90276855889)
   ✘    - coverage-linux: CANCELLED (https://github.com/nodejs/node/actions/runs/30359390194/job/90275169419)
   ✘    - lint-js-and-md: CANCELLED (https://github.com/nodejs/node/actions/runs/30359390226/job/90276327817)
   ✘    - test-macOS: CANCELLED (https://github.com/nodejs/node/actions/runs/30359390321/job/90275178023)
   ✘    - coverage-windows: CANCELLED (https://github.com/nodejs/node/actions/runs/30359390455/job/90275132120)
   ✘    - test-linux (ubuntu-24.04-arm): CANCELLED (https://github.com/nodejs/node/actions/runs/30359390486/job/90275170435)
   ✘    - test-linux (ubuntu-24.04): CANCELLED (https://github.com/nodejs/node/actions/runs/30359390486/job/90275170497)
   ✘    - aarch64-darwin: with shared libraries / build: CANCELLED (https://github.com/nodejs/node/actions/runs/30359390795/job/90275679427)
   ✘    - x86_64-linux: with shared libraries / build: CANCELLED (https://github.com/nodejs/node/actions/runs/30359390795/job/90275679472)
   ✘    - aarch64-linux: with shared boringssl-0.20260526.0 / build: CANCELLED (https://github.com/nodejs/node/actions/runs/30359390795/job/90275830670)
   ✘    - aarch64-linux: with shared openssl-1.1.1w / build: CANCELLED (https://github.com/nodejs/node/actions/runs/30359390795/job/90275830709)
   ✘    - aarch64-linux: with shared openssl-3.5.7 / build: CANCELLED (https://github.com/nodejs/node/actions/runs/30359390795/job/90275830715)
   ✘    - aarch64-linux: with shared openssl-4.0.1 / build: CANCELLED (https://github.com/nodejs/node/actions/runs/30359390795/job/90275830720)
   ✘    - aarch64-linux: with shared openssl-3.6.3 / build: CANCELLED (https://github.com/nodejs/node/actions/runs/30359390795/job/90275830776)
   ✘    - aarch64-linux: with shared openssl-3.0.21 / build: CANCELLED (https://github.com/nodejs/node/actions/runs/30359390795/job/90275830779)
   β„Ή  Last Full PR CI on 2026-08-05T02:23:34Z: https://ci.nodejs.org/job/node-test-pull-request/75495/
- Querying data for job/node-test-pull-request/75495/
βœ”  Build data downloaded
   βœ”  Last Jenkins CI successful
--------------------------------------------------------------------------------
   βœ”  Aborted `git node land` session in /home/runner/work/node/node/.ncu
https://github.com/nodejs/node/actions/runs/31265478955

avivkeller pushed a commit that referenced this pull request Aug 9, 2026
Propagate tokenization errors from ParseNodeOptionsEnvVar through
FixupArgsForSEA and abort startup with an invalid command-line status
instead of applying partially parsed options.

Signed-off-by: Archkon <180910180+Archkon@users.noreply.github.com>
PR-URL: #64803
Reviewed-By: James M Snell <jasnell@gmail.com>
@avivkeller

Copy link
Copy Markdown
Member

Landed in abbf086

@avivkeller avivkeller closed this Aug 9, 2026
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