GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — spawn_sync: move process.binding('spawn_sync') to internalBinding by antsmartian · Pull Request #22260 · nodejs/node

Conversation

@antsmartian

@antsmartian antsmartian commented Aug 11, 2018 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

Migration from process.binding to internalBinding (see : #22160)

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • tests and/or benchmarks are included
  • commit message follows commit guidelines

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

bricss reacted with thumbs up emoji
All reactions
  • 👍 1 reaction
@nodejs-github-bot nodejs-github-bot added c++ Issues and PRs that require attention from people who are familiar with C++. child_process Issues and PRs related to the child_process subsystem. labels Aug 11, 2018
jasnell
jasnell approved these changes Aug 11, 2018
View reviewed changes

@jasnell jasnell left a comment

Copy link
Copy Markdown
Member

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

LGTM with good CITGM run

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@jasnell jasnell added the semver-major PRs that contain breaking changes and should be released in the next major version. label Aug 11, 2018
@antsmartian
antsmartian force-pushed the spawn_sync branch from 1286410 to e86328f Compare August 11, 2018 04:40
@jasnell jasnell mentioned this pull request Aug 11, 2018
Tracking Issue: process.binding to internalBinding #22160
Closed
32 of 33 tasks
cjihrig
cjihrig approved these changes Aug 11, 2018
View reviewed changes
trivikr
trivikr approved these changes Aug 12, 2018
View reviewed changes
jdalton
jdalton suggested changes Aug 13, 2018
View reviewed changes

@jdalton jdalton left a comment

Copy link
Copy Markdown
Member

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

Holding removals until migration is ironed out

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@jasnell

jasnell commented Aug 15, 2018

Copy link
Copy Markdown
Member

@antsmartian ... when you get a moment, can you rebase this on master then apply the following patch which will be necessary for this to proceed:

Author: James M Snell <[email protected]>
Date:   Tue Aug 14 19:36:25 2018 -0700

    [Squash] add `process.binding('spawn_sync')` to fallthrough whitelist

diff --git a/lib/internal/bootstrap/node.js b/lib/internal/bootstrap/node.js
index 08daeb1915..ffae6e4cd9 100644
--- a/lib/internal/bootstrap/node.js
+++ b/lib/internal/bootstrap/node.js
@@ -327,7 +327,7 @@
     // that are whitelisted for access via process.binding()... this is used
     // to provide a transition path for modules that are being moved over to
     // internalBinding.
-    const internalBindingWhitelist = new SafeSet(['uv']);
+    const internalBindingWhitelist = new SafeSet(['uv', 'spawn_sync']);
     process.binding = function binding(name) {
       return internalBindingWhitelist.has(name) ?
         internalBinding(name) :
diff --git a/test/parallel/test-process-binding-internalbinding-whitelist.js b/test/parallel/test-process-binding-internalbinding-whitelist.js
index ece967a0b7..cc0119917d 100644
--- a/test/parallel/test-process-binding-internalbinding-whitelist.js
+++ b/test/parallel/test-process-binding-internalbinding-whitelist.js
@@ -7,3 +7,4 @@ const assert = require('assert');
 // Assert that whitelisted internalBinding modules are accessible via
 // process.binding().
 assert(process.binding('uv'));
+assert(process.binding('spawn_sync'));
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@antsmartian

antsmartian commented Aug 15, 2018

Copy link
Copy Markdown
Contributor Author

@jasnell Yes I'm working on that. I was following up the PR : #22269, so knew its coming ! :)

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@antsmartian

antsmartian commented Aug 15, 2018

Copy link
Copy Markdown
Contributor Author

@jasnell Now it should be good to go, thanks!

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

jdalton
jdalton approved these changes Aug 15, 2018
View reviewed changes
@antsmartian
antsmartian force-pushed the spawn_sync branch 3 times, most recently from b8ab324 to 221afde Compare September 3, 2018 15:38
@antsmartian

antsmartian commented Sep 3, 2018 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor Author

@jasnell Have rebased, can we get this merge, before I get an another conflict :) Thanks for your help.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@antsmartian

antsmartian commented Sep 3, 2018

Copy link
Copy Markdown
Contributor Author

Ok seeing a lint issue, let me fix that.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

lundibundi
lundibundi approved these changes Sep 3, 2018
View reviewed changes

@lundibundi lundibundi left a comment

Copy link
Copy Markdown
Member

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

LGTM after lint fix.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@antsmartian
spawn_sync: move process.binding('spawn_sync') to internalBinding
b0addf2
@antsmartian
antsmartian force-pushed the spawn_sync branch from 221afde to b0addf2 Compare September 4, 2018 14:11
BridgeAR
BridgeAR approved these changes Sep 5, 2018
View reviewed changes
@BridgeAR

BridgeAR commented Sep 5, 2018

Copy link
Copy Markdown
Member

CI https://ci.nodejs.org/job/node-test-pull-request/17042/

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@BridgeAR BridgeAR added the author ready PRs with CI started, the required approvals, and no outstanding review comments. label Sep 5, 2018
@antsmartian

antsmartian commented Sep 11, 2018

Copy link
Copy Markdown
Contributor Author

Yet again conflicts, let me rebase it tonight.. sorry folks..

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@targos

targos commented Sep 15, 2018

Copy link
Copy Markdown
Member

Landed in 9c9c01f

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@targos targos closed this Sep 15, 2018
targos pushed a commit that referenced this pull request Sep 15, 2018
@antsmartian @targos
child_process: move process.binding('spawn_sync') to internalBinding
9c9c01f
PR-URL: #22260
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: Trivikram Kamat <[email protected]>
Reviewed-By: John-David Dalton <[email protected]>
Reviewed-By: Denys Otrishko <[email protected]>
Reviewed-By: Ruben Bridgewater <[email protected]>
@antsmartian

antsmartian commented Sep 15, 2018

Copy link
Copy Markdown
Contributor Author

@targos Thanks for rebasing, didn't find time to do it. Thanks a ton.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@antsmartian
antsmartian deleted the spawn_sync branch October 17, 2018 17:18
@coreyfarrell coreyfarrell mentioned this pull request Apr 22, 2019
process.binding('spawn_sync') is required for spawn-wrap (and thus nyc) to work. #27344
Closed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@jasnell jasnell jasnell approved these changes
@cjihrig cjihrig cjihrig approved these changes
@BridgeAR BridgeAR BridgeAR approved these changes
@trivikr trivikr trivikr approved these changes
+2 more reviewers
@jdalton jdalton jdalton approved these changes
@lundibundi lundibundi lundibundi approved these changes
Reviewers whose approvals may not affect merge requirements

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

author ready PRs with CI started, the required approvals, and no outstanding review comments. c++ Issues and PRs that require attention from people who are familiar with C++. child_process Issues and PRs related to the child_process subsystem. semver-major PRs that contain breaking changes and should be released in the next major version.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

9 participants

@antsmartian @jasnell @BridgeAR @targos @jdalton @cjihrig @lundibundi @trivikr @nodejs-github-bot
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.