Skip to content

src: allow empty --experimental-config-file - #61610

Merged
nodejs-github-bot merged 1 commit into
nodejs:mainfrom
marco-ippolito:default-config-json
Apr 16, 2026
Merged

src: allow empty --experimental-config-file#61610
nodejs-github-bot merged 1 commit into
nodejs:mainfrom
marco-ippolito:default-config-json

Conversation

@marco-ippolito

Copy link
Copy Markdown
Member

This PR makes --experimental-config-file accept no arg.
When no arg is passed, it will default to node.config.json.
--experimental-default-config-file is just an alias of --experimental-config-file.
The reason for this change is so when stable we can just remove --experimental-default-config-file and rename --experimental-config-file to --config-file.
Users can execute node with node --config-file index.js or node --config-file=foo.json index.js.

@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

Review requested:

  • @nodejs/config

@nodejs-github-botnodejs-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 Feb 1, 2026
@marco-ippolito
marco-ippolitoforce-pushed the default-config-json branch 2 times, most recently from 775234b to 9b00cedCompareFebruary 1, 2026 09:36

@pmarchinipmarchini left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM

@pmarchinipmarchini added the request-ci Add this label to start a Jenkins CI on a PR. label Feb 1, 2026
@marco-ippolitomarco-ippolito added the semver-minor PRs that contain new features and should be released in the next minor version. label Feb 1, 2026
@github-actionsgithub-actionsBot removed the request-ci Add this label to start a Jenkins CI on a PR. label Feb 1, 2026
@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

@codecov

codecovBot commented Feb 1, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 97.50000% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 89.69%. Comparing base (3f52482) to head (4bf9c84).
⚠️ Report is 3 commits behind head on main.

Files with missing linesPatch %Lines
src/node.cc87.50%0 Missing and 1 partial ⚠️
Additional details and impacted files
@@ Coverage Diff @@## main #61610 +/- ##
==========================================
- Coverage 91.55% 89.69% -1.87% 
==========================================
Files 356 706 +350 Lines 149601 218143 +68542 Branches 23395 41734 +18339 ==========================================
+ Hits 136967 195659 +58692 - Misses 12371 14412 +2041 - Partials 263 8072 +7809 
Files with missing linesCoverage Δ
lib/internal/process/pre_execution.js98.38% <100.00%> (+14.63%)⬆️
lib/internal/test_runner/runner.js93.67% <100.00%> (+0.31%)⬆️
src/node_config_file.cc83.73% <100.00%> (ø)
src/node_config_file.h100.00% <100.00%> (ø)
src/node_options.cc76.61% <100.00%> (ø)
src/node_options.h98.00% <ø> (ø)
src/node.cc76.90% <87.50%> (ø)

... and 465 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.

@marco-ippolito
marco-ippolitoforce-pushed the default-config-json branch 4 times, most recently from 3dc9b42 to 2356e3aCompareFebruary 1, 2026 14:35
Comment threadtest/parallel/test-runner-flag-propagation.js
@marco-ippolito
marco-ippolitoforce-pushed the default-config-json branch 3 times, most recently from bef68d1 to 5ce1d98CompareApril 15, 2026 10:48
@marco-ippolitomarco-ippolito added the request-ci Add this label to start a Jenkins CI on a PR. label Apr 15, 2026
@github-actionsgithub-actionsBot added request-ci-failed An error occurred while starting CI via request-ci label, and manual interventon is needed. and removed request-ci Add this label to start a Jenkins CI on a PR. labels Apr 15, 2026
@github-actions

Copy link
Copy Markdown
Contributor
Failed to start CI
- Validating Jenkins credentials
✔ Jenkins credentials valid
- Querying data for job/node-test-pull-request/71151/
[SyntaxError: Unexpected token '<', ..." https://github.com/nodejs/node/actions/runs/24459748339

@marco-ippolitomarco-ippolito removed the request-ci-failed An error occurred while starting CI via request-ci label, and manual interventon is needed. label Apr 15, 2026
@marco-ippolitomarco-ippolito added the request-ci Add this label to start a Jenkins CI on a PR. label Apr 15, 2026
@github-actionsgithub-actionsBot added request-ci-failed An error occurred while starting CI via request-ci label, and manual interventon is needed. and removed request-ci Add this label to start a Jenkins CI on a PR. labels Apr 15, 2026
@github-actions

Copy link
Copy Markdown
Contributor
Failed to start CI
- Validating Jenkins credentials
✔ Jenkins credentials valid
- Querying data for job/node-test-pull-request/71151/
[SyntaxError: Unexpected token '<', ..." https://github.com/nodejs/node/actions/runs/24461444173

@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

@marco-ippolitomarco-ippolito removed the request-ci-failed An error occurred while starting CI via request-ci label, and manual interventon is needed. label Apr 15, 2026
@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

@marco-ippolitomarco-ippolito added the commit-queue Add this label to land a pull request using GitHub Actions. label Apr 16, 2026
@nodejs-github-botnodejs-github-bot removed the commit-queue Add this label to land a pull request using GitHub Actions. label Apr 16, 2026
@nodejs-github-bot
nodejs-github-bot merged commit 2071c44 into nodejs:mainApr 16, 2026
71 checks passed
@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

Landed in 2071c44

aduh95 pushed a commit that referenced this pull request May 5, 2026
PR-URL: #61610
Reviewed-By: Pietro Marchini <pietro.marchini94@gmail.com>
Reviewed-By: Moshe Atlow <moshe@atlow.co.il>
@aduh95aduh95 mentioned this pull request May 5, 2026
aduh95 added a commit that referenced this pull request May 5, 2026
Notable changes:
buffer:
* (SEMVER-MINOR) add `end` parameter (Robert Nagy) #62390
crypto:
* (SEMVER-MINOR) accept key data in `crypto.diffieHellman()` and cleanup DH jobs (Filip Skokan) #62527
* (SEMVER-MINOR) implement `randomUUIDv7()` (nabeel378) #62553
debugger:
* (SEMVER-MINOR) add edit-free runtime expression probes to `node inspect` (Joyee Cheung) #62713
fs:
* (SEMVER-MINOR) add `signal` option to `fs.stat()` (Mert Can Altin) #57775
* (SEMVER-MINOR) expose frsize field in statfs (Jinho Jang) #62277
http:
* (SEMVER-MINOR) harden `ClientRequest` options merge (Matteo Collina) #63082
* (SEMVER-MINOR) add `req.signal` to `IncomingMessage` (Akshat) #62541
lib,src,test,doc:
* (SEMVER-MINOR) add `node:ffi` module (Colin Ihrig) #62072
process:
* (SEMVER-MINOR) throw on `execve(2)` failure instead of aborting (Bryan English) #62878
src:
* (SEMVER-MINOR) allow empty `--experimental-config-file` (Marco Ippolito) #61610
stream:
* (SEMVER-MINOR) propagate destruction in `duplexPair` (Ahmed Elhor) #61098
test_runner:
* (SEMVER-MINOR) align mock timeout api (sangwook) #62820
* (SEMVER-MINOR) add mock-timers support for `AbortSignal.timeout` (DeveloperViraj) #60751
* (SEMVER-MINOR) support test order randomization (Pietro Marchini) #61747
util:
* (SEMVER-MINOR) colorize text with hex colors (Guilherme Araújo) #61556
PR-URL: #63137
aduh95 added a commit that referenced this pull request May 6, 2026
Notable changes:
buffer:
* (SEMVER-MINOR) add `end` parameter (Robert Nagy) #62390
crypto:
* (SEMVER-MINOR) accept key data in `crypto.diffieHellman()` and cleanup DH jobs (Filip Skokan) #62527
* (SEMVER-MINOR) implement `randomUUIDv7()` (nabeel378) #62553
debugger:
* (SEMVER-MINOR) add edit-free runtime expression probes to `node inspect` (Joyee Cheung) #62713
fs:
* (SEMVER-MINOR) add `signal` option to `fs.stat()` (Mert Can Altin) #57775
* (SEMVER-MINOR) expose frsize field in statfs (Jinho Jang) #62277
http:
* (SEMVER-MINOR) harden `ClientRequest` options merge (Matteo Collina) #63082
* (SEMVER-MINOR) add `req.signal` to `IncomingMessage` (Akshat) #62541
lib,src,test,doc:
* (SEMVER-MINOR) add `node:ffi` module (Colin Ihrig) #62072
process:
* (SEMVER-MINOR) throw on `execve(2)` failure instead of aborting (Bryan English) #62878
src:
* (SEMVER-MINOR) allow empty `--experimental-config-file` (Marco Ippolito) #61610
stream:
* (SEMVER-MINOR) propagate destruction in `duplexPair` (Ahmed Elhor) #61098
test_runner:
* (SEMVER-MINOR) align mock timeout api (sangwook) #62820
* (SEMVER-MINOR) add mock-timers support for `AbortSignal.timeout` (DeveloperViraj) #60751
* (SEMVER-MINOR) support test order randomization (Pietro Marchini) #61747
util:
* (SEMVER-MINOR) colorize text with hex colors (Guilherme Araújo) #61556
PR-URL: #63137
aduh95 added a commit that referenced this pull request May 7, 2026
Notable changes:
buffer:
* (SEMVER-MINOR) add `end` parameter (Robert Nagy) #62390
crypto:
* (SEMVER-MINOR) accept key data in `crypto.diffieHellman()` and cleanup DH jobs (Filip Skokan) #62527
* (SEMVER-MINOR) implement `randomUUIDv7()` (nabeel378) #62553
debugger:
* (SEMVER-MINOR) add edit-free runtime expression probes to `node inspect` (Joyee Cheung) #62713
fs:
* (SEMVER-MINOR) add `signal` option to `fs.stat()` (Mert Can Altin) #57775
* (SEMVER-MINOR) expose frsize field in statfs (Jinho Jang) #62277
http:
* (SEMVER-MINOR) harden `ClientRequest` options merge (Matteo Collina) #63082
* (SEMVER-MINOR) add `req.signal` to `IncomingMessage` (Akshat) #62541
lib,src,test,doc:
* (SEMVER-MINOR) add `node:ffi` module (Colin Ihrig) #62072
process:
* (SEMVER-MINOR) throw on `execve(2)` failure instead of aborting (Bryan English) #62878
src:
* (SEMVER-MINOR) allow empty `--experimental-config-file` (Marco Ippolito) #61610
stream:
* (SEMVER-MINOR) propagate destruction in `duplexPair` (Ahmed Elhor) #61098
test_runner:
* (SEMVER-MINOR) align mock timeout api (sangwook) #62820
* (SEMVER-MINOR) add mock-timers support for `AbortSignal.timeout` (DeveloperViraj) #60751
* (SEMVER-MINOR) support test order randomization (Pietro Marchini) #61747
util:
* (SEMVER-MINOR) colorize text with hex colors (Guilherme Araújo) #61556
PR-URL: #63137
const result = await spawnPromisified(process.execPath, [
'--experimental-config-file',
'i-do-not-exist.json',
'--experimental-config-file=i-do-not-exist.json',

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I don't really get this change, is it an unrelated no-op? It's making the change not land cleanly on v24.x-staging, should I simply forgo those?

marco-ippolito added a commit to marco-ippolito/node that referenced this pull request May 30, 2026
PR-URL: nodejs#61610
Reviewed-By: Pietro Marchini <pietro.marchini94@gmail.com>
Reviewed-By: Moshe Atlow <moshe@atlow.co.il>
Signed-off-by: Marco Ippolito <marcoippolito54@gmail.com>
aduh95 pushed a commit that referenced this pull request Jul 21, 2026
PR-URL: #61610
Backport-PR-URL: #63659
Signed-off-by: Marco Ippolito <marcoippolito54@gmail.com>
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
aduh95 added a commit that referenced this pull request Jul 21, 2026
Notable changes:
buffer:
* (SEMVER-MINOR) implement `blob.textStream()` (Matthew Aitken) #64036
deps:
* (SEMVER-MINOR) update OpenSSL build config to support compression (Tim Perry) #62217
doc:
* (SEMVER-MINOR) update `blockList` stability status to release candidate (alphaleadership) #63050
* mark `stream.compose` stable (Matteo Collina) #62562
esm:
* (SEMVER-MINOR) add `--experimental-import-text` flag (Efe) #62300
fs:
* (SEMVER-MINOR) support caller-supplied `readFile()` buffers (Matteo Collina) #63634
http:
* (SEMVER-MINOR) add `httpValidation` option to configure header value validation (RajeshKumar11) #61597
net:
* (SEMVER-MINOR) support `TCP_KEEPINTVL` and `TCP_KEEPCNT` in setKeepAlive (Guy Bedford) #63825
perf_hooks:
* (SEMVER-MINOR) sample delay per event loop iteration (Pablo Erhard) #62935
src:
* (SEMVER-MINOR) allow empty `--experimental-config-file` (Marco Ippolito) #61610
stream:
* (SEMVER-MINOR) expose `ReadableStreamTee` (Matteo Collina) #64195
tls:
* (SEMVER-MINOR) report negotiated TLS groups (Filip Skokan) #64119
* (SEMVER-MINOR) add `certificateCompression` option (Tim Perry) #62217
PR-URL: #64654
aduh95 pushed a commit that referenced this pull request Jul 22, 2026
PR-URL: #61610
Backport-PR-URL: #63659
Signed-off-by: Marco Ippolito <marcoippolito54@gmail.com>
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
aduh95 pushed a commit that referenced this pull request Jul 30, 2026
PR-URL: #61610
Backport-PR-URL: #63659
Signed-off-by: Marco Ippolito <marcoippolito54@gmail.com>
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
aduh95 added a commit that referenced this pull request Jul 30, 2026
Notable changes:
buffer:
* (SEMVER-MINOR) implement `blob.textStream()` (Matthew Aitken) #64036
deps:
* (SEMVER-MINOR) update OpenSSL build config to support compression (Tim Perry) #62217
doc:
* (SEMVER-MINOR) update `blockList` stability status to release candidate (alphaleadership) #63050
* mark `stream.compose` stable (Matteo Collina) #62562
esm:
* (SEMVER-MINOR) add `--experimental-import-text` flag (Efe) #62300
fs:
* (SEMVER-MINOR) support caller-supplied `readFile()` buffers (Matteo Collina) #63634
http:
* (SEMVER-MINOR) add `httpValidation` option to configure header value validation (RajeshKumar11) #61597
net:
* (SEMVER-MINOR) support `TCP_KEEPINTVL` and `TCP_KEEPCNT` in `setKeepAlive` (Guy Bedford) #63825
perf_hooks:
* (SEMVER-MINOR) sample delay per event loop iteration (Pablo Erhard) #62935
src:
* (SEMVER-MINOR) allow empty `--experimental-config-file` (Marco Ippolito) #61610
stream:
* (SEMVER-MINOR) expose `ReadableStreamTee` (Matteo Collina) #64195
tls:
* (SEMVER-MINOR) report negotiated TLS groups (Filip Skokan) #64119
* (SEMVER-MINOR) add `certificateCompression` option (Tim Perry) #62217
PR-URL: #64654
aduh95 added a commit that referenced this pull request Aug 3, 2026
Notable changes:
buffer:
* (SEMVER-MINOR) implement `blob.textStream()` (Matthew Aitken) #64036
deps:
* (SEMVER-MINOR) update OpenSSL build config to support compression (Tim Perry) #62217
doc:
* (SEMVER-MINOR) update `blockList` stability status to release candidate (alphaleadership) #63050
* mark `stream.compose` stable (Matteo Collina) #62562
esm:
* (SEMVER-MINOR) add `--experimental-import-text` flag (Efe) #62300
fs:
* (SEMVER-MINOR) support caller-supplied `readFile()` buffers (Matteo Collina) #63634
http:
* (SEMVER-MINOR) add `httpValidation` option to configure header value validation (RajeshKumar11) #61597
net:
* (SEMVER-MINOR) support `TCP_KEEPINTVL` and `TCP_KEEPCNT` in `setKeepAlive` (Guy Bedford) #63825
perf_hooks:
* (SEMVER-MINOR) sample delay per event loop iteration (Pablo Erhard) #62935
src:
* (SEMVER-MINOR) allow empty `--experimental-config-file` (Marco Ippolito) #61610
stream:
* (SEMVER-MINOR) expose `ReadableStreamTee` (Matteo Collina) #64195
tls:
* (SEMVER-MINOR) report negotiated TLS groups (Filip Skokan) #64119
* (SEMVER-MINOR) add `certificateCompression` option (Tim Perry) #62217
PR-URL: #64654
Sign up for freeto 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++.lib / srcIssues and PRs related to general changes in the lib or src directory.needs-ciPRs that need a full CI run.semver-minorPRs that contain new features and should be released in the next minor version.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants

@marco-ippolito@nodejs-github-bot@MoLow@aduh95@pmarchini