FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Enable passthrough IPC in watch mode by znewsham · Pull Request #50890 · nodejs/node · GitHub

/ node Public

Enable passthrough IPC in watch mode - #50890

Merged
nodejs-github-bot merged 9 commits into
nodejs:mainfrom
znewsham:znewsham/watch-with-ipc
May 9, 2024
Merged

Enable passthrough IPC in watch mode#50890
nodejs-github-bot merged 9 commits into
nodejs:mainfrom
znewsham:znewsham/watch-with-ipc

Conversation

Copy link
Copy Markdown
Contributor

Fixes #50880

When spawning a node process in watch mode, from another node process, there is currently no way to get IPC between the parent and the child. This PR enables this bi-directional flow:

  • parent -> watcher -> child
  • child -> watcher -> parent

This setup is useful in situations where you have a process responsible for building and running a client/server application which needs to be made aware (via IPC) that it's client bundle has changed and needs to be re-served, without restarting the server.

nodejs-github-bot added needs-ci PRs that need a full CI run. v18.x labels Nov 24, 2023

Copy link
Copy Markdown
Contributor

I think this should be directed towards the main branch

Copy link
Copy Markdown
Contributor Author

I think this should be directed towards the main branch

I confess, I'm not totally clear on the branching structure. I'd like this to be available in node 18, are you suggesting I point at v18.x or somewhere else?

Copy link
Copy Markdown
Contributor

So the general process is we land changes onto the main branch of this repo and then changes are backported to the release lines you can read about it here https://github.com/nodejs/node/blob/main/doc/contributing/backporting-to-release-lines.md
so for your case your branch should towards the main branch and after this change is approved and landed it shall be backported by the releasers to the 18.x branch and be available in 18.x

MoLow commented Nov 24, 2023

Copy link
Copy Markdown
Member

please also resolve conflicts

Copy link
Copy Markdown
Contributor Author

This will almost certainly require a backport PR

noting the original commit for my reference later: ad2131716bdd45d4279a9780f50e11e1aa4302ef

znewsham changed the base branch from v18.x-staging to main November 24, 2023 14:56
znewsham force-pushed the znewsham/watch-with-ipc branch from ad21317 to 1c04659 Compare November 24, 2023 14:58
debadree25 added watch-mode Issues and PRs related to watch mode and removed v18.x labels Nov 25, 2023

debadree25 left a comment

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.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Could you fix the first commit message according to the guidelines https://github.com/nodejs/node/blob/main/doc/contributing/pull-requests.md#commit-message-guidelines , and these few linting issues that it complains about.

znewsham force-pushed the znewsham/watch-with-ipc branch 2 times, most recently from 1b82c7f to 2fa9259 Compare November 25, 2023 18:20

Copy link
Copy Markdown
Contributor Author

Both of those are fixed - for some reason I can't get eslint to play nice with vscode - but the linting is now resolved.

MoLow 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.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Changes LGTM, but I think the test can be simplified more

MoLow 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.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

LGTM

MoLow requested a review from benjamingr November 27, 2023 11:50

benjamingr left a comment
edited
Loading

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.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Nice

znewsham commented Dec 4, 2023

Copy link
Copy Markdown
Contributor Author

Just want to check on the next steps here - the contribution guide suggests I should kick off the CI build and add an "Author Ready" label - I don't believe I have permissions to do either

debadree25 added request-ci Add this label to start a Jenkins CI on a PR. author ready PRs that have at least one approval, no outstanding review comments, and a CI started. labels Dec 4, 2023
github-actions Bot removed the request-ci Add this label to start a Jenkins CI on a PR. label Dec 4, 2023

Copy link
Copy Markdown
Collaborator

znewsham commented Dec 4, 2023

Copy link
Copy Markdown
Contributor Author

What's the best way to debug failures on specific architectures? E.g.,
node-test-commit-arm-fanned
node-test-commit-linuxone-rhel8-s390x

I could probably get myself access to an arm machine if necessary

znewsham commented May 8, 2024

Copy link
Copy Markdown
Contributor Author

@MoLow I apologise, the failing test was caused by a previously fixed test that the rebase must have removed (an extraneous ' in the expected test result). Could you please re-trigger the CI run

MoLow added the request-ci Add this label to start a Jenkins CI on a PR. label May 9, 2024
github-actions Bot 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 May 9, 2024

github-actions Bot commented May 9, 2024

Copy link
Copy Markdown
Contributor
Failed to start CI
   ⚠  Something was pushed to the Pull Request branch since the last approving review.
   ✘  Refusing to run CI on potentially unsafe PR
https://github.com/nodejs/node/actions/runs/9014337858

MoLow added request-ci Add this label to start a Jenkins CI on a PR. and removed request-ci-failed An error occurred while starting CI via request-ci label, and manual interventon is needed. labels May 9, 2024
github-actions Bot removed the request-ci Add this label to start a Jenkins CI on a PR. label May 9, 2024

Copy link
Copy Markdown
Collaborator

Copy link
Copy Markdown
Collaborator

Copy link
Copy Markdown
Collaborator

Copy link
Copy Markdown
Collaborator

Copy link
Copy Markdown
Collaborator

Copy link
Copy Markdown
Collaborator

MoLow added commit-queue Add this label to land a pull request using GitHub Actions. commit-queue-squash Add this label to instruct the Commit Queue to squash all the PR commits into the first one. labels May 9, 2024
nodejs-github-bot removed the commit-queue Add this label to land a pull request using GitHub Actions. label May 9, 2024
nodejs-github-bot merged commit 70995bd into nodejs:main May 9, 2024

Copy link
Copy Markdown
Collaborator

Landed in 70995bd

znewsham commented May 9, 2024

Copy link
Copy Markdown
Contributor Author

@MoLow thanks for your help in getting this across the line - I've read through the contribution guide (and the backporting guide), but it still isn't clear to me which release this will appear in (or when) - will it be a minor version increase in v22, or does it have to wait until v23? Is backporting to v20 (or even v18, it's not clear what "maintenance" means) an option?

targos pushed a commit that referenced this pull request May 11, 2024
PR-URL: #50890
Reviewed-By: Moshe Atlow <moshe@atlow.co.il>
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>

MoLow commented May 11, 2024

Copy link
Copy Markdown
Member

It should get to all active releases (20, 21, 22)

marco-ippolito pushed a commit that referenced this pull request Jun 17, 2024
PR-URL: #50890
Reviewed-By: Moshe Atlow <moshe@atlow.co.il>
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
soophoo pushed a commit to soophoo/node that referenced this pull request Jun 20, 2024
PR-URL: nodejs#50890
Reviewed-By: Moshe Atlow <moshe@atlow.co.il>
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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 outstanding review comments, and a CI started. commit-queue-squash Add this label to instruct the Commit Queue to squash all the PR commits into the first one. needs-ci PRs that need a full CI run. watch-mode Issues and PRs related to watch mode

Projects

None yet

Development

Successfully merging this pull request may close these issues.

--watch mode disables IPC communication between a spawning process and the actual child process

6 participants


Back | FazBrowse Home | New Git URL