Skip to content

watch: get flags from execArgv#61779

Open
efekrskl wants to merge 2 commits intonodejs:mainfrom
efekrskl:fix/watch-mode-env-collision
Open

watch: get flags from execArgv#61779
efekrskl wants to merge 2 commits intonodejs:mainfrom
efekrskl:fix/watch-mode-env-collision

Conversation

@efekrskl
Copy link
Contributor

Fixes #61412

This seems to be a regression from cec1bd5, where watch mode switched to spawning the child using getOptionsAsFlagsFromBinding() instead of process.execArgv and the original flag ordering is not preserved.

@nodejs-github-bot nodejs-github-bot added the needs-ci PRs that need a full CI run. label Feb 11, 2026
@codecov
Copy link

codecov bot commented Feb 11, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 89.73%. Comparing base (9a237cd) to head (062f3a5).
⚠️ Report is 11 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #61779      +/-   ##
==========================================
- Coverage   89.73%   89.73%   -0.01%     
==========================================
  Files         675      675              
  Lines      204674   204674              
  Branches    39330    39327       -3     
==========================================
- Hits       183667   183665       -2     
- Misses      13283    13295      +12     
+ Partials     7724     7714      -10     

see 32 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.

@MoLow MoLow added the request-ci Add this label to start a Jenkins CI on a PR. label Feb 11, 2026
@github-actions github-actions bot removed the request-ci Add this label to start a Jenkins CI on a PR. label Feb 11, 2026
@nodejs-github-bot
Copy link
Collaborator

@nodejs-github-bot
Copy link
Collaborator

@MoLow MoLow added the commit-queue Add this label to land a pull request using GitHub Actions. label Feb 12, 2026
Copy link
Member

@marco-ippolito marco-ippolito left a comment

Choose a reason for hiding this comment

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

Thanks for fixing this, LGTM

@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 Feb 13, 2026
@nodejs-github-bot
Copy link
Collaborator

Commit Queue failed
- Loading data for nodejs/node/pull/61779
✔  Done loading data for nodejs/node/pull/61779
----------------------------------- PR info ------------------------------------
Title      watch: get flags from execArgv (#61779)
   ⚠  Could not retrieve the email or name of the PR author's from user's GitHub profile!
Branch     efekrskl:fix/watch-mode-env-collision -> nodejs:main
Labels     needs-ci
Commits    2
 - watch: get flags from execArgv
 - watch: add test for checking cli flag order
Committers 1
 - Efe Karasakal <dogukankrskl@gmail.com>
PR-URL: https://github.com/nodejs/node/pull/61779
Reviewed-By: Moshe Atlow <moshe@atlow.co.il>
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Marco Ippolito <marcoippolito54@gmail.com>
------------------------------ Generated metadata ------------------------------
PR-URL: https://github.com/nodejs/node/pull/61779
Reviewed-By: Moshe Atlow <moshe@atlow.co.il>
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Marco Ippolito <marcoippolito54@gmail.com>
--------------------------------------------------------------------------------
   ℹ  This PR was created on Wed, 11 Feb 2026 20:22:19 GMT
   ✔  Approvals: 4
   ✔  - Moshe Atlow (@MoLow): https://github.com/nodejs/node/pull/61779#pullrequestreview-3787523699
   ✔  - Yagiz Nizipli (@anonrig) (TSC): https://github.com/nodejs/node/pull/61779#pullrequestreview-3788303435
   ✔  - Colin Ihrig (@cjihrig): https://github.com/nodejs/node/pull/61779#pullrequestreview-3790845539
   ✔  - Marco Ippolito (@marco-ippolito) (TSC): https://github.com/nodejs/node/pull/61779#pullrequestreview-3791379219
   ✔  Last GitHub CI successful
   ℹ  Last Full PR CI on 2026-02-12T02:02:21Z: https://ci.nodejs.org/job/node-test-pull-request/71318/
- Querying data for job/node-test-pull-request/71318/
✔  Build data downloaded
   ✔  Last Jenkins CI successful
--------------------------------------------------------------------------------
   ✔  No git cherry-pick in progress
   ✔  No git am in progress
   ✔  No git rebase in progress
--------------------------------------------------------------------------------
- Bringing origin/main up to date...
From https://github.com/nodejs/node
 * branch                  main       -> FETCH_HEAD
✔  origin/main is now up-to-date
- Downloading patch for 61779
From https://github.com/nodejs/node
 * branch                  refs/pull/61779/merge -> FETCH_HEAD
✔  Fetched commits as 37ff1ea989af..062f3a59e10b
--------------------------------------------------------------------------------
[main 87c45433c0] watch: get flags from execArgv
 Author: Efe Karasakal <dogukankrskl@gmail.com>
 Date: Wed Feb 11 20:58:01 2026 +0100
 1 file changed, 4 insertions(+), 5 deletions(-)
[main 3392abc167] watch: add test for checking cli flag order
 Author: Efe Karasakal <dogukankrskl@gmail.com>
 Date: Wed Feb 11 21:12:26 2026 +0100
 1 file changed, 29 insertions(+)
   ✔  Patches applied
There are 2 commits in the PR. Attempting autorebase.
(node:394) [DEP0190] DeprecationWarning: Passing args to a child process with shell option true can lead to security vulnerabilities, as the arguments are not escaped, only concatenated.
(Use `node --trace-deprecation ...` to show where the warning was created)
Rebasing (2/4)
Executing: git node land --amend --yes
--------------------------------- New Message ----------------------------------
watch: get flags from execArgv

PR-URL: #61779
Reviewed-By: Moshe Atlow <moshe@atlow.co.il>
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Marco Ippolito <marcoippolito54@gmail.com>

[detached HEAD 6e9e077ccb] watch: get flags from execArgv
Author: Efe Karasakal <dogukankrskl@gmail.com>
Date: Wed Feb 11 20:58:01 2026 +0100
1 file changed, 4 insertions(+), 5 deletions(-)
Rebasing (3/4)
Rebasing (4/4)
Executing: git node land --amend --yes
--------------------------------- New Message ----------------------------------
watch: add test for checking cli flag order

PR-URL: #61779
Reviewed-By: Moshe Atlow <moshe@atlow.co.il>
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Marco Ippolito <marcoippolito54@gmail.com>

[detached HEAD 73d6c35029] watch: add test for checking cli flag order
Author: Efe Karasakal <dogukankrskl@gmail.com>
Date: Wed Feb 11 21:12:26 2026 +0100
1 file changed, 29 insertions(+)
Successfully rebased and updated refs/heads/main.

ℹ Add commit-queue-squash label to land the PR as one commit, or commit-queue-rebase to land as separate commits.

https://github.com/nodejs/node/actions/runs/22002004722

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

Labels

commit-queue-failed An error occurred while landing this pull request using GitHub Actions. needs-ci PRs that need a full CI run.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

dotenv: override does not behave correctly with watch enabled

6 participants