Skip to content

watch: add --watch-kill-signal flag - #58719

Closed
dario-piotrowicz wants to merge 2 commits into
nodejs:mainfrom
dario-piotrowicz:dario/watch-mode-kill-signal
Closed

watch: add --watch-kill-signal flag#58719
dario-piotrowicz wants to merge 2 commits into
nodejs:mainfrom
dario-piotrowicz:dario/watch-mode-kill-signal

Conversation

@dario-piotrowicz

Copy link
Copy Markdown
Member

add the new --watch-kill-signal to allow users to customize what signal is sent to the process on restarts during watch mode

@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

Review requested:

  • @nodejs/config
  • @nodejs/test_runner

@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 Jun 15, 2025
@dario-piotrowiczdario-piotrowicz added semver-minor PRs that contain new features and should be released in the next minor version. needs-ci PRs that need a full CI run. lib / src Issues and PRs related to general changes in the lib or src directory. and removed 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 Jun 15, 2025
@dario-piotrowicz
dario-piotrowiczforce-pushed the dario/watch-mode-kill-signal branch from 1d23a46 to 96426c5CompareJune 15, 2025 18:09

@anonriganonrig 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.

Documentation changes are missing

@dario-piotrowicz
dario-piotrowiczforce-pushed the dario/watch-mode-kill-signal branch from 96426c5 to 83894cfCompareJune 15, 2025 18:18
@dario-piotrowicz

Copy link
Copy Markdown
MemberAuthor

Documentation changes are missing

Sorry my bad 🙇 , doc changes added 🙂👍

@codecov

codecovBot commented Jun 15, 2025

Copy link
Copy Markdown

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 90.08%. Comparing base (eaebfab) to head (ce4776c).
Report is 9 commits behind head on main.

Additional details and impacted files
@@ Coverage Diff @@## main #58719 +/- ##
==========================================
- Coverage 90.09% 90.08% -0.02% 
==========================================
Files 640 640 Lines 188450 188452 +2 Branches 36966 36963 -3 ==========================================
- Hits 169789 169766 -23 - Misses 11364 11404 +40 + Partials 7297 7282 -15 
Files with missing linesCoverage Δ
src/node_options.cc84.59% <100.00%> (+0.13%)⬆️
src/node_options.h97.87% <100.00%> (+0.01%)⬆️

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

@dario-piotrowicz
dario-piotrowiczforce-pushed the dario/watch-mode-kill-signal branch 2 times, most recently from 887d4b7 to f90f6beCompareJune 15, 2025 20:31
@anonriganonrig 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 Jun 15, 2025
@github-actionsgithub-actionsBot removed the request-ci Add this label to start a Jenkins CI on a PR. label Jun 15, 2025
@nodejs-github-bot

This comment was marked as outdated.

@dario-piotrowicz
dario-piotrowiczforce-pushed the dario/watch-mode-kill-signal branch from f90f6be to 973b29cCompareJune 17, 2025 21:38
@nodejs-github-bot

This comment was marked as outdated.

@dario-piotrowicz
dario-piotrowiczforce-pushed the dario/watch-mode-kill-signal branch from 973b29c to 3b17c10CompareJune 17, 2025 22:55
@nodejs-github-bot

This comment was marked as outdated.

@dario-piotrowicz
dario-piotrowiczforce-pushed the dario/watch-mode-kill-signal branch from 3b17c10 to 229863fCompareJune 18, 2025 00:01
@nodejs-github-bot

This comment was marked as outdated.

@nodejs-github-bot

This comment was marked as outdated.

@nodejs-github-bot

This comment was marked as outdated.

@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

Landed in f0a9478...4d5ee24

nodejs-github-bot pushed a commit that referenced this pull request Jun 28, 2025
add the new `--watch-kill-signal` to allow users to customize
what signal is sent to the process on restarts during watch mode
PR-URL: #58719
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com>
nodejs-github-bot pushed a commit that referenced this pull request Jun 28, 2025
PR-URL: #58719
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com>
@dario-piotrowicz
dario-piotrowicz deleted the dario/watch-mode-kill-signal branch June 29, 2025 00:57
targos pushed a commit that referenced this pull request Jul 3, 2025
add the new `--watch-kill-signal` to allow users to customize
what signal is sent to the process on restarts during watch mode
PR-URL: #58719
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com>
targos pushed a commit that referenced this pull request Jul 3, 2025
PR-URL: #58719
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com>
nodejs-github-bot added a commit that referenced this pull request Jul 8, 2025
Notable changes:
crypto:
* (SEMVER-MINOR) support outputLength option in crypto.hash for XOF functions (Aditi) #58121
doc:
* (SEMVER-MINOR) add all watch-mode related flags to node.1 (Dario Piotrowicz) #58719
fs:
* (SEMVER-MINOR) add disposable mkdtempSync (Kevin Gibbons) #58516
permission:
* (SEMVER-MINOR) propagate permission model flags on spawn (Rafael Gonzaga) #58853
sqlite:
* (SEMVER-MINOR) add support for readBigInts option in db connection level (Miguel Marcondes Filho) #58697
src,permission:
* (SEMVER-MINOR) add support to permission.has(addon) (Rafael Gonzaga) #58951
watch:
* (SEMVER-MINOR) add `--watch-kill-signal` flag (Dario Piotrowicz) #58719
PR-URL: #58993
@RafaelGSS

Copy link
Copy Markdown
Member

@dario-piotrowicz we should have set the stability of this API. Usually, we start with 1.1 (Active Development), but that's not mandatory.

@dario-piotrowicz

Copy link
Copy Markdown
MemberAuthor

@dario-piotrowicz we should have set the stability of this API. Usually, we start with 1.1 (Active Development), but that's not mandatory.

Mh... I see, yes that's a good point... although for something this small and trivial I didn't even consider that 🤔

Would you like me to open a doc PR to add the stability?

@RafaelGSS

Copy link
Copy Markdown
Member

I think that would be great. I'd say to mark it as 1.1, but no need to emit a warning on usage.

@dario-piotrowicz

Copy link
Copy Markdown
MemberAuthor

I think that would be great. I'd say to mark it as 1.1, but no need to emit a warning on usage.

#58997 🙂

RafaelGSS pushed a commit that referenced this pull request Jul 9, 2025
Notable changes:
crypto:
* (SEMVER-MINOR) support outputLength option in crypto.hash for XOF functions (Aditi) #58121
doc:
* (SEMVER-MINOR) add all watch-mode related flags to node.1 (Dario Piotrowicz) #58719
fs:
* (SEMVER-MINOR) add disposable mkdtempSync (Kevin Gibbons) #58516
permission:
* (SEMVER-MINOR) propagate permission model flags on spawn (Rafael Gonzaga) #58853
sqlite:
* (SEMVER-MINOR) add support for readBigInts option in db connection level (Miguel Marcondes Filho) #58697
src,permission:
* (SEMVER-MINOR) add support to permission.has(addon) (Rafael Gonzaga) #58951
watch:
* (SEMVER-MINOR) add `--watch-kill-signal` flag (Dario Piotrowicz) #58719
PR-URL: #58993
@ASAav123ASAav123 mentioned this pull request Jul 9, 2025
2 tasks
aduh95 pushed a commit that referenced this pull request Jul 21, 2025
add the new `--watch-kill-signal` to allow users to customize
what signal is sent to the process on restarts during watch mode
PR-URL: #58719
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com>
aduh95 pushed a commit that referenced this pull request Jul 21, 2025
PR-URL: #58719
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com>
aduh95 pushed a commit that referenced this pull request Jul 24, 2025
add the new `--watch-kill-signal` to allow users to customize
what signal is sent to the process on restarts during watch mode
PR-URL: #58719
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com>
aduh95 pushed a commit that referenced this pull request Jul 24, 2025
PR-URL: #58719
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com>
aduh95 added a commit that referenced this pull request Jul 28, 2025
Notable changes:
deps:
* (SEMVER-MINOR) update amaro to 1.1.0 (Node.js GitHub Bot) #56350
doc:
* add islandryu to collaborators (Shima Ryuhei) #58714
esm:
* (SEMVER-MINOR) implement `import.meta.main` (Joe) #57804
fs:
* (SEMVER-MINOR) allow correct handling of burst in fs-events with AsyncIterator (Philipp Dunkel) #58490
module:
* (SEMVER-MINOR) remove experimental warning from type stripping (Marco Ippolito) #56350
* (SEMVER-MINOR) unflag `--experimental-strip-types` (Marco Ippolito) #56350
permission:
* (SEMVER-MINOR) propagate permission model flags on spawn (Rafael Gonzaga) #58853
sqlite:
* (SEMVER-MINOR) add support for `readBigInts` option in db connection level (Miguel Marcondes Filho) #58697
src,permission:
* (SEMVER-MINOR) add support to `permission.has(addon)` (Rafael Gonzaga) #58951
url:
* (SEMVER-MINOR) add `fileURLToPathBuffer` API (James M Snell) #58700
watch:
* (SEMVER-MINOR) add `--watch-kill-signal` flag (Dario Piotrowicz) #58719
worker:
* (SEMVER-MINOR) make `Worker` async disposable (James M Snell) #58385
PR-URL: #59256
Co-authored-by: Antoine du Hamel <duhamelantoine1995@gmail.com>
aduh95 added a commit that referenced this pull request Jul 31, 2025
Notable changes:
deps:
* (SEMVER-MINOR) update amaro to 1.1.0 (Node.js GitHub Bot) #56350
doc:
* add islandryu to collaborators (Shima Ryuhei) #58714
esm:
* (SEMVER-MINOR) implement `import.meta.main` (Joe) #57804
fs:
* (SEMVER-MINOR) allow correct handling of burst in fs-events with AsyncIterator (Philipp Dunkel) #58490
module:
* (SEMVER-MINOR) remove experimental warning from type stripping (Marco Ippolito) #56350
* (SEMVER-MINOR) unflag `--experimental-strip-types` (Marco Ippolito) #56350
permission:
* (SEMVER-MINOR) propagate permission model flags on spawn (Rafael Gonzaga) #58853
sqlite:
* (SEMVER-MINOR) add support for `readBigInts` option in db connection level (Miguel Marcondes Filho) #58697
src,permission:
* (SEMVER-MINOR) add support to `permission.has(addon)` (Rafael Gonzaga) #58951
url:
* (SEMVER-MINOR) add `fileURLToPathBuffer` API (James M Snell) #58700
watch:
* (SEMVER-MINOR) add `--watch-kill-signal` flag (Dario Piotrowicz) #58719
worker:
* (SEMVER-MINOR) make `Worker` async disposable (James M Snell) #58385
PR-URL: #59256
Co-authored-by: Antoine du Hamel <duhamelantoine1995@gmail.com>
aduh95 added a commit that referenced this pull request Jul 31, 2025
Notable changes:
deps:
* (SEMVER-MINOR) update amaro to 1.1.0 (Node.js GitHub Bot) #56350
doc:
* add islandryu to collaborators (Shima Ryuhei) #58714
esm:
* (SEMVER-MINOR) implement `import.meta.main` (Joe) #57804
fs:
* (SEMVER-MINOR) allow correct handling of burst in fs-events with AsyncIterator (Philipp Dunkel) #58490
module:
* (SEMVER-MINOR) remove experimental warning from type stripping (Marco Ippolito) #56350
* (SEMVER-MINOR) unflag `--experimental-strip-types` (Marco Ippolito) #56350
permission:
* (SEMVER-MINOR) propagate permission model flags on spawn (Rafael Gonzaga) #58853
sqlite:
* (SEMVER-MINOR) add support for `readBigInts` option in db connection level (Miguel Marcondes Filho) #58697
src,permission:
* (SEMVER-MINOR) add support to `permission.has(addon)` (Rafael Gonzaga) #58951
url:
* (SEMVER-MINOR) add `fileURLToPathBuffer` API (James M Snell) #58700
watch:
* (SEMVER-MINOR) add `--watch-kill-signal` flag (Dario Piotrowicz) #58719
worker:
* (SEMVER-MINOR) make `Worker` async disposable (James M Snell) #58385
PR-URL: #59256
Co-authored-by: Antoine du Hamel <duhamelantoine1995@gmail.com>
mete0rfish pushed a commit to mete0rfish/node-contribute that referenced this pull request Aug 9, 2025
Notable changes:
deps:
* (SEMVER-MINOR) update amaro to 1.1.0 (Node.js GitHub Bot) nodejs#56350
doc:
* add islandryu to collaborators (Shima Ryuhei) nodejs#58714
esm:
* (SEMVER-MINOR) implement `import.meta.main` (Joe) nodejs#57804
fs:
* (SEMVER-MINOR) allow correct handling of burst in fs-events with AsyncIterator (Philipp Dunkel) nodejs#58490
module:
* (SEMVER-MINOR) remove experimental warning from type stripping (Marco Ippolito) nodejs#56350
* (SEMVER-MINOR) unflag `--experimental-strip-types` (Marco Ippolito) nodejs#56350
permission:
* (SEMVER-MINOR) propagate permission model flags on spawn (Rafael Gonzaga) nodejs#58853
sqlite:
* (SEMVER-MINOR) add support for `readBigInts` option in db connection level (Miguel Marcondes Filho) nodejs#58697
src,permission:
* (SEMVER-MINOR) add support to `permission.has(addon)` (Rafael Gonzaga) nodejs#58951
url:
* (SEMVER-MINOR) add `fileURLToPathBuffer` API (James M Snell) nodejs#58700
watch:
* (SEMVER-MINOR) add `--watch-kill-signal` flag (Dario Piotrowicz) nodejs#58719
worker:
* (SEMVER-MINOR) make `Worker` async disposable (James M Snell) nodejs#58385
PR-URL: nodejs#59256
Co-authored-by: Antoine du Hamel <duhamelantoine1995@gmail.com>
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

author readyPRs that have at least one approval, no pending requests for changes, and a CI started.commit-queue-rebaseAdd this label to allow the Commit Queue to land a PR in several commits.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

@dario-piotrowicz@nodejs-github-bot@RafaelGSS@anonrig@atlowChemi