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

Conversation

@addaleax

@addaleax addaleax commented Oct 7, 2018

Copy link
Copy Markdown
Member
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
@addaleax
zlib: move process.binding('zlib') to internalBinding
7765c16
@nodejs-github-bot

nodejs-github-bot commented Oct 7, 2018

Copy link
Copy Markdown
Collaborator

@addaleax build started: https://ci.nodejs.org/blue/organizations/jenkins/node-test-pull-request-lite-pipeline/detail/node-test-pull-request-lite-pipeline/1147/pipeline

All reactions

Sorry, something went wrong.

Uh oh!

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

@nodejs-github-bot nodejs-github-bot added c++ Issues and PRs that require attention from people who are familiar with C++. zlib Issues and PRs related to the zlib module and its compression dependencies. labels Oct 7, 2018
cjihrig
cjihrig approved these changes Oct 7, 2018
View reviewed changes
devsnek
devsnek approved these changes Oct 7, 2018
View reviewed changes
lpinca
lpinca approved these changes Oct 7, 2018
View reviewed changes
trivikr
trivikr approved these changes Oct 7, 2018
View reviewed changes
starkwang
starkwang approved these changes Oct 8, 2018
View reviewed changes
jasnell
jasnell approved these changes Oct 8, 2018
View reviewed changes
@addaleax

addaleax commented Oct 9, 2018

Copy link
Copy Markdown
Member Author

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

All reactions

Sorry, something went wrong.

Uh oh!

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

thefourtheye
thefourtheye approved these changes Oct 9, 2018
View reviewed changes
thefourtheye
thefourtheye approved these changes Oct 9, 2018
View reviewed changes

@thefourtheye thefourtheye left a comment

Copy link
Copy Markdown
Contributor

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.

Isn't this a major change?

Sorry, something went wrong.

Uh oh!

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

All reactions
@cjihrig cjihrig added the semver-major PRs that contain breaking changes and should be released in the next major version. label Oct 9, 2018
@cjihrig

cjihrig commented Oct 9, 2018

Copy link
Copy Markdown
Contributor

Yes, it's part of the larger #22160. I've added the label.

All reactions

Sorry, something went wrong.

Uh oh!

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

@jasnell jasnell mentioned this pull request Oct 9, 2018
Tracking Issue: process.binding to internalBinding #22160
Closed
32 of 33 tasks
@addaleax

addaleax commented Oct 9, 2018

Copy link
Copy Markdown
Member Author

@thefourtheye @cjihrig Can you explain why this is semver-major? We specifically have the whitelist in internal/bootstrap/node.js to avoid breakage, any this doesn’t introduce any new runtime or documentation deprecation.

thefourtheye 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 Oct 9, 2018

Copy link
Copy Markdown
Member

We have been treating these all as semver-major even with the whitelist, just to be extra careful.

All reactions

Sorry, something went wrong.

Uh oh!

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

@addaleax

addaleax commented Oct 10, 2018 •
edited
Loading

Uh oh!

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

Copy link
Copy Markdown
Member Author

I get that we can decide to be careful if we can imagine a chance of breakage – but process.binding('zlib') is the only thing being changed here, and that keeps working and returns the same object.

I’m sorry, but labelling these PRs semver-major seems to have no effect to me except creating merge future conflicts.

If there are no firm objections, I’ll remove the label here and for the other PRs that added whitelisted modules. If you do have an objection, I’d really appreciate a reason or even just example code using process.binding() that would break.

All reactions

Sorry, something went wrong.

Uh oh!

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

@jasnell

jasnell commented Oct 10, 2018

Copy link
Copy Markdown
Member

The process.binding method had been replaced entirely to enable the whitelist. It should be ok but we can't guarantee it. I'd prefer semver-major.

All reactions

Sorry, something went wrong.

Uh oh!

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

@danbev

danbev commented Oct 10, 2018

Copy link
Copy Markdown
Contributor

Travis CI is failing on a missing subsystem but this does not seem correct as the commit does have a subsystem specified.

All reactions

Sorry, something went wrong.

Uh oh!

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

@addaleax

addaleax commented Oct 10, 2018

Copy link
Copy Markdown
Member Author

@Trott ^^^ ?

All reactions

Sorry, something went wrong.

Uh oh!

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

@Trott

Trott commented Oct 10, 2018 •
edited
Loading

Uh oh!

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

Copy link
Copy Markdown
Member

@Trott ^^^ ?

Travis does this:

$ git clone --depth=50 https://github.com/nodejs/node.git nodejs/node
$ cd nodejs/node
$ git fetch origin +refs/pull/23307/merge:
$ git checkout -qf FETCH_HEAD

For some reason, in this case but not in other pull requests as far as I have seen, that results in a merge commit only.

$ git log -2
commit 32b0d865929eff831bd6c00f7784ae74e06ebbca
Merge: eddfa2c52e 7765c16c72
Author: Anna Henningsen <[email protected]>
Date:   Wed Oct 10 00:49:29 2018 +0000

    Merge 7765c16c72eeb9572b347357c5eb482030d69dd2 into eddfa2c52ee91e657c1a3e42815e6dff960a7fe3

commit eddfa2c52ee91e657c1a3e42815e6dff960a7fe3
Author: Rich Trott <[email protected]>
Date:   Mon Sep 24 21:54:13 2018 -0700

    doc: simplify governance info in README intro
    
    Remove unnecessary wordiness in the governance sentence. It appears very
    early in the README so it should be short and clear. This also removes
    an instance of passive voice.
    
    PR-URL: https://github.com/nodejs/node/pull/23320
    Reviewed-By: Colin Ihrig <[email protected]>
    Reviewed-By: Vse Mozhet Byt <[email protected]>
    Reviewed-By: James M Snell <[email protected]>
$

The merge commit is skipped for commit linting, and since there are no other commits in the PR, this ends up linting the very first commit ever added to Node.js which indeed does not have a subsystem.

$ git log 9d7895c567
commit 9d7895c567e8f38abfff35da1b6d6d6a0a06f9aa
Author: Ryan <[email protected]>
Date:   Mon Feb 16 01:02:00 2009 +0100

    add dependencies
$

If someone more knowledgable about git can explain why this PR results in a merge commit when others apparently do not, I'd be grateful. I'm guessing that the PR branch is missing some commits on master that edit the same files as this PR, so there's a merge that has to happen? But that's a guess. If so, I imagine a rebase would fix the issue for this PR. Will have to think about how to fix it more globally, though...

addaleax reacted with thumbs up emoji addaleax reacted with laugh emoji
All reactions
  • 👍 1 reaction
  • 😄 1 reaction

Sorry, something went wrong.

Uh oh!

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

@Trott

Trott commented Oct 10, 2018

Copy link
Copy Markdown
Member

I think I can fix it in a robust way using TRAVIS_COMMIT environment variable or something similar. PR coming soon...

All reactions

Sorry, something went wrong.

Uh oh!

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

Trott added a commit to Trott/io.js that referenced this pull request Oct 10, 2018
@Trott
tools: make Travis commit linting more robust
ae9c90c
Use $TRAVIS_COMMIT_RANGE in .travis.yml to avoid merge commits in some
situations.

Refs: nodejs#23307 (comment)
@Trott Trott mentioned this pull request Oct 10, 2018
tools: make Travis commit linting more robust #23397
Closed
2 tasks done
@Trott

Trott commented Oct 10, 2018

Copy link
Copy Markdown
Member

#23397 should fix that Travis issue. Feel free to head over to approve fast-tracking.

All reactions

Sorry, something went wrong.

Uh oh!

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

Trott added a commit to Trott/io.js that referenced this pull request Oct 10, 2018
@Trott
tools: make Travis commit linting more robust
a1edecc
Use $TRAVIS_COMMIT_RANGE in .travis.yml to avoid merge commits in some
situations.

Refs: nodejs#23307 (comment)

PR-URL: nodejs#23397
Reviewed-By: Anna Henningsen <[email protected]>
Reviewed-By: Daniel Bevenius <[email protected]>
@Trott

Trott commented Oct 10, 2018

Copy link
Copy Markdown
Member

Travis issue (hopefully) fixed in a1edecc. A rebase here to get those changes should show a clean Travis lint run (although I suspect a rebase would have fixed it anyway).

All reactions

Sorry, something went wrong.

Uh oh!

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

targos pushed a commit that referenced this pull request Oct 10, 2018
@Trott @targos
tools: make Travis commit linting more robust
acc4a76
Use $TRAVIS_COMMIT_RANGE in .travis.yml to avoid merge commits in some
situations.

Refs: #23307 (comment)

PR-URL: #23397
Reviewed-By: Anna Henningsen <[email protected]>
Reviewed-By: Daniel Bevenius <[email protected]>
@addaleax

addaleax commented Oct 12, 2018

Copy link
Copy Markdown
Member Author

Landed in 09c42f4

All reactions

Sorry, something went wrong.

Uh oh!

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

@addaleax addaleax closed this Oct 12, 2018
@addaleax
addaleax deleted the zlib-internalbinding branch October 12, 2018 21:58
addaleax added a commit that referenced this pull request Oct 12, 2018
@addaleax
zlib: move process.binding('zlib') to internalBinding
09c42f4
PR-URL: #23307
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: Gus Caplan <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
Reviewed-By: Trivikram Kamat <[email protected]>
Reviewed-By: Weijia Wang <[email protected]>
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Sakthipriyan Vairamani <[email protected]>
jasnell pushed a commit that referenced this pull request Oct 17, 2018
@Trott @jasnell
tools: make Travis commit linting more robust
6ce06b5
Use $TRAVIS_COMMIT_RANGE in .travis.yml to avoid merge commits in some
situations.

Refs: #23307 (comment)

PR-URL: #23397
Reviewed-By: Anna Henningsen <[email protected]>
Reviewed-By: Daniel Bevenius <[email protected]>
jasnell pushed a commit that referenced this pull request Oct 17, 2018
@addaleax @jasnell
zlib: move process.binding('zlib') to internalBinding
4f48ddb
PR-URL: #23307
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: Gus Caplan <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
Reviewed-By: Trivikram Kamat <[email protected]>
Reviewed-By: Weijia Wang <[email protected]>
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Sakthipriyan Vairamani <[email protected]>
@Trott Trott mentioned this pull request Oct 18, 2018
timers: run nextTicks after each immediate and timer #22842
Closed
3 tasks done
MylesBorins pushed a commit that referenced this pull request Nov 26, 2018
@Trott @MylesBorins
tools: make Travis commit linting more robust
42664c9
Use $TRAVIS_COMMIT_RANGE in .travis.yml to avoid merge commits in some
situations.

Refs: #23307 (comment)

PR-URL: #23397
Reviewed-By: Anna Henningsen <[email protected]>
Reviewed-By: Daniel Bevenius <[email protected]>
rvagg pushed a commit that referenced this pull request Nov 28, 2018
@Trott @rvagg
tools: make Travis commit linting more robust
2a8a28c
Use $TRAVIS_COMMIT_RANGE in .travis.yml to avoid merge commits in some
situations.

Refs: #23307 (comment)

PR-URL: #23397
Reviewed-By: Anna Henningsen <[email protected]>
Reviewed-By: Daniel Bevenius <[email protected]>
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
@lpinca lpinca lpinca approved these changes
@cjihrig cjihrig cjihrig approved these changes
@trivikr trivikr trivikr approved these changes
+3 more reviewers
@thefourtheye thefourtheye thefourtheye approved these changes
@devsnek devsnek devsnek approved these changes
@starkwang starkwang starkwang 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

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. zlib Issues and PRs related to the zlib module and its compression dependencies.

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.

11 participants

@addaleax @nodejs-github-bot @cjihrig @jasnell @danbev @Trott @thefourtheye @lpinca @devsnek @starkwang @trivikr
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.