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 — js_stream: move process.binding('js_stream') to internalBinding by antsmartian · Pull Request #22239 · nodejs/node

Conversation

@antsmartian

@antsmartian antsmartian commented Aug 10, 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.

All reactions
@nodejs-github-bot nodejs-github-bot added the c++ Issues and PRs that require attention from people who are familiar with C++. label Aug 10, 2018
@addaleax addaleax added the semver-major PRs that contain breaking changes and should be released in the next major version. label Aug 10, 2018
addaleax
addaleax approved these changes Aug 10, 2018
View reviewed changes
jasnell
jasnell approved these changes Aug 10, 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
@maclover7

maclover7 commented Aug 10, 2018

Copy link
Copy Markdown
Contributor

CI: https://ci.nodejs.org/job/node-test-pull-request/16344/
(will start a CITGM run after the current job is finished)

All reactions

Sorry, something went wrong.

Uh oh!

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

cjihrig
cjihrig approved these changes Aug 10, 2018
View reviewed changes
devsnek
devsnek approved these changes Aug 10, 2018
View reviewed changes
@jasnell jasnell mentioned this pull request Aug 10, 2018
Tracking Issue: process.binding to internalBinding #22160
Closed
32 of 33 tasks
@maclover7

maclover7 commented Aug 10, 2018

Copy link
Copy Markdown
Contributor

CITGM: https://ci.nodejs.org/job/citgm-smoker/1501

All reactions

Sorry, something went wrong.

Uh oh!

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

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 from master then apply the following patch that will be required for this to proceed:

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

    [Squash] add `process.binding('js_stream')` 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', 'js_stream']);
     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('js_stream'));
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
@jasnell

jasnell commented Aug 19, 2018

Copy link
Copy Markdown
Member

@antsmartian ... this will need another rebase now that some of the other conversions to internalBinding have landed.

All reactions

Sorry, something went wrong.

Uh oh!

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

@antsmartian

antsmartian commented Aug 20, 2018

Copy link
Copy Markdown
Contributor Author

@jasnell Taken care, guess it should be all good now.

jasnell reacted with thumbs up emoji
All reactions
  • 👍 1 reaction

Sorry, something went wrong.

Uh oh!

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

@jasnell

jasnell commented Aug 20, 2018

Copy link
Copy Markdown
Member

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

All reactions

Sorry, something went wrong.

Uh oh!

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

@jasnell

jasnell commented Aug 20, 2018

Copy link
Copy Markdown
Member

Just noticed that this used a merge commit and it's failing CI because of it. Can you squash this down to a single commit and use rebase to catch it up to master. We don't use merge commits at all.

All reactions

Sorry, something went wrong.

Uh oh!

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

@antsmartian
antsmartian force-pushed the js_stream branch 2 times, most recently from 79a2ed6 to 7b888fa Compare August 21, 2018 01:39
@antsmartian

antsmartian commented Aug 21, 2018

Copy link
Copy Markdown
Contributor Author

@jasnell Sorry, didn't notice that. Now its all green.. thanks for your support.

All reactions

Sorry, something went wrong.

Uh oh!

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

joyeecheung
joyeecheung approved these changes Aug 21, 2018
View reviewed changes
@jasnell

jasnell commented Aug 21, 2018

Copy link
Copy Markdown
Member

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

All reactions

Sorry, something went wrong.

Uh oh!

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

@jasnell jasnell added the author ready PRs with CI started, the required approvals, and no outstanding review comments. label Aug 21, 2018
@jasnell

jasnell commented Aug 24, 2018

Copy link
Copy Markdown
Member

@antsmartian ... unfortunately this will need another rebase

All reactions

Sorry, something went wrong.

Uh oh!

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

@antsmartian

antsmartian commented Aug 26, 2018

Copy link
Copy Markdown
Contributor Author

@jasnell Done.

All reactions

Sorry, something went wrong.

Uh oh!

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

@addaleax addaleax removed the author ready PRs with CI started, the required approvals, and no outstanding review comments. label Sep 2, 2018
@addaleax

addaleax commented Sep 2, 2018

Copy link
Copy Markdown
Member

And, yet another rebase is necessary … sorry :(

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

@addaleax No worries, I have an another PR which also needs rebase, will do it tonight and ping you.

All reactions

Sorry, something went wrong.

Uh oh!

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

@antsmartian
antsmartian force-pushed the js_stream branch from 97b7369 to 77a2399 Compare September 3, 2018 15:48
@antsmartian

antsmartian commented Sep 3, 2018

Copy link
Copy Markdown
Contributor Author

@addaleax Rebased it, now it should be good I guess.. cc @jasnell

All reactions

Sorry, something went wrong.

Uh oh!

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

lundibundi
lundibundi reviewed 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.

There is one more usage in lib/internal/wrap_js_stream.js, do we not want to change that as well?

Sorry, something went wrong.

Uh oh!

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

All reactions
BridgeAR
BridgeAR approved these changes Sep 5, 2018
View reviewed changes

@BridgeAR BridgeAR 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 @lundibundi s comment addressed.

Sorry, something went wrong.

Uh oh!

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

All reactions
@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.

@antsmartian
js_stream: move process.binding('js_stream') to internalBinding
732e502
@antsmartian
antsmartian force-pushed the js_stream branch from 77a2399 to 732e502 Compare September 15, 2018 15:07
@antsmartian

antsmartian commented Sep 15, 2018 •
edited
Loading

Uh oh!

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

Copy link
Copy Markdown
Contributor Author

Ping @nodejs/collaborators . Can we merge this please, before I get another conflict :) Thanks!

Edit: Looks like I can't ping teams. So pinging few people : @BridgeAR @addaleax @jasnell @trivikr

All reactions

Sorry, something went wrong.

Uh oh!

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

@trivikr

trivikr commented Sep 16, 2018

Copy link
Copy Markdown
Member

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

antsmartian reacted with thumbs up emoji antsmartian reacted with heart emoji
All reactions
  • 👍 1 reaction
  • ❤️ 1 reaction

Sorry, something went wrong.

Uh oh!

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

@trivikr trivikr added the author ready PRs with CI started, the required approvals, and no outstanding review comments. label Sep 16, 2018
trivikr
trivikr approved these changes Sep 16, 2018
View reviewed changes
@addaleax

addaleax commented Sep 17, 2018

Copy link
Copy Markdown
Member

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

All reactions

Sorry, something went wrong.

Uh oh!

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

@addaleax

addaleax commented Sep 18, 2018

Copy link
Copy Markdown
Member

Landed in dcc0c2c

All reactions

Sorry, something went wrong.

Uh oh!

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

@addaleax addaleax closed this Sep 18, 2018
addaleax pushed a commit that referenced this pull request Sep 18, 2018
@antsmartian @addaleax
lib: move process.binding('js_stream') to internalBinding
dcc0c2c
PR-URL: #22239
Reviewed-By: Anna Henningsen <[email protected]>
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: Gus Caplan <[email protected]>
Reviewed-By: Trivikram Kamat <[email protected]>
Reviewed-By: John-David Dalton <[email protected]>
Reviewed-By: Joyee Cheung <[email protected]>
Reviewed-By: Ruben Bridgewater <[email protected]>
@antsmartian

antsmartian commented Sep 18, 2018

Copy link
Copy Markdown
Contributor Author

@addaleax Thanks !

All reactions

Sorry, something went wrong.

Uh oh!

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

@antsmartian
antsmartian deleted the js_stream branch September 18, 2018 11:40
This was referenced Sep 18, 2018
CI failures: 20180918 nodejs/reliability#16
Closed
Investigate flaky test-worker-syntax-error-file #22762
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
@addaleax addaleax addaleax approved these changes
@cjihrig cjihrig cjihrig approved these changes
@joyeecheung joyeecheung joyeecheung approved these changes
@BridgeAR BridgeAR BridgeAR approved these changes
@trivikr trivikr trivikr approved these changes
+3 more reviewers
@lundibundi lundibundi lundibundi left review comments
@jdalton jdalton jdalton approved these changes
@devsnek devsnek devsnek 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++. 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.

12 participants

@antsmartian @maclover7 @jasnell @addaleax @trivikr @jdalton @cjihrig @joyeecheung @devsnek @BridgeAR @lundibundi @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.