Skip to content

[v8.x] Update libuv - #24103

Closed
MylesBorins wants to merge 10 commits into
nodejs:v8.x-stagingfrom
MylesBorins:update-libuv
Closed

[v8.x] Update libuv#24103
MylesBorins wants to merge 10 commits into
nodejs:v8.x-stagingfrom
MylesBorins:update-libuv

Conversation

@MylesBorins

Copy link
Copy Markdown
Contributor

8.x is currently using libuv 1.19.2

Time to update?

I recall there was a regression that blocked updating to 1.20.0, but I believe that has been fixed

closes: #23833

@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

@nodejs-github-botnodejs-github-bot added build Issues and PRs related to build files or the CI. libuv Issues and PRs related to the libuv dependency or the uv binding. v8.x labels Nov 5, 2018
@MylesBorins

MylesBorins commented Nov 5, 2018

Copy link
Copy Markdown
ContributorAuthor

Notable changes:
- uv_fs_copyfile() adds support for copy-on-write behavior.
- uv_relative_path() now uses the long directory name
for handle->dirw.
- File operations on files > 2 GB on 32-bit platforms are
working again.
- uv_fs_fchmod() on Windows works on files with the
Archive flag cleared.
Fixes: nodejs#19170Fixes: nodejs#19455Fixes: nodejs#12803
PR-URL: nodejs#19758
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Santiago Gimeno <santiago.gimeno@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
PR-URL: nodejs#20129Fixes: nodejs#20112Fixes: nodejs#19903
Reviewed-By: Myles Borins <myles.borins@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
Refs: nodejs#19377
PR-URL: nodejs#20585
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: James M Snell <jasnell@gmail.com>
There is already a check in place to prevent stdin and the IPC
channel from sharing a file descriptor. This commit adds a
similar check to stdout and stderr.
Refs: libuv/libuv#1851
Refs: libuv/libuv#1897
PR-URL: nodejs#21466
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Santiago Gimeno <santiago.gimeno@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Notable changes:
- Building via cmake is now supported.
PR-URL: libuv/libuv#1850
- Stricter checks have been added to prevent watching the same
file descriptor multiple times.
PR-URL: libuv/libuv#1851
Refs: nodejs#3604
- An IPC deadlock on Windows has been fixed.
PR-URL: libuv/libuv#1843Fixes: nodejs#9706Fixes: nodejs#7657
- uv_fs_lchown() has been added.
PR-URL: libuv/libuv#1826
Refs: nodejs#19868
- uv_fs_copyfile() sets errno on error.
PR-URL: libuv/libuv#1881Fixes: nodejs#21329
- uv_fs_fchmod() supports -A files on Windows.
PR-URL: libuv/libuv#1819
Refs: nodejs#12803
PR-URL: nodejs#21466
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Santiago Gimeno <santiago.gimeno@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
PR-URL: nodejs#21731
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Santiago Gimeno <santiago.gimeno@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Notable changes:
- Restores compatibility with the old IPC protocol.
- Adds uv_open_osfhandle().
- Adds uv_os_{get,set}priority().
PR-URL: nodejs#22365Fixes: nodejs#21671Fixes: nodejs#15433
Refs: nodejs#21675
Refs: nodejs/node-addon-api#304
Refs: nodejs/abi-stable-node#318
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
PR-URL: nodejs#22997
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
bnoordhuisand others added 2 commits November 5, 2018 12:32
An upcoming change in libuv will remove the artificial EISDIR error.
Update the test to reflect that.
Refs: libuv/libuv#2025
PR-URL: nodejs#23330
Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com>
Reviewed-By: Santiago Gimeno <santiago.gimeno@gmail.com>
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
PR-URL: nodejs#23336
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Gus Caplan <me@gus.host>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
Reviewed-By: Refael Ackermann <refack@gmail.com>
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com>
Fixes: nodejs#23043Fixes: nodejs#21773Fixes: nodejs#16601Fixes: nodejs#22999Fixes: nodejs#23219Fixes: nodejs#23066Fixes: nodejs#23067Fixes: nodejs#23089
@MylesBorins

Copy link
Copy Markdown
ContributorAuthor

Doing some quick review

had to drop 49e5f0a from #21466, missing test from #19971... is this something we need to consider?

@addaleaxaddaleax changed the title Update libuv[v8.x] Update libuvNov 5, 2018
@addaleax

Copy link
Copy Markdown
Member

if (common.isFreeBSD)
// `fs.readFile('/')` does not fail on AIX and FreeBSD because you can open
// and read the directory there.
if (common.isAIX || common.isFreeBSD)

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.

/CC @nodejs/platform-aix

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

LGTM if AIX stakeholders are OK with change

@refackrefack added the aix Issues and PRs related to the AIX platform. label Nov 5, 2018
@refack

This comment has been minimized.

@addaleaxaddaleax added the semver-minor PRs that contain new features and should be released in the next minor version. label Nov 5, 2018
@addaleax

Copy link
Copy Markdown
Member

@refack That's from an old CI run, when the other commits weren't in here (that particular problem should have been fixed by de6095c)

@refack

Copy link
Copy Markdown
Contributor

For new CI ci.nodejs.org/job/node-test-pull-request/18343:

  • osx fail is infra - worker taken offline
  • arm7 fail is infra - worker taken offline
  • Windows fail suspicious?
    10:55:48 not ok 527 sequential/test-http2-ping-flood
    10:55:48 ---
    10:55:48 duration_ms: 0.781
    10:55:48 severity: crashed
    10:55:48 exitcode: -1073741819
    10:55:48 stack: |-
    10:55:48 ...
    

@MylesBorins

Copy link
Copy Markdown
ContributorAuthor

MylesBorins pushed a commit that referenced this pull request Nov 11, 2018
Notable changes:
- uv_fs_copyfile() adds support for copy-on-write behavior.
- uv_relative_path() now uses the long directory name
for handle->dirw.
- File operations on files > 2 GB on 32-bit platforms are
working again.
- uv_fs_fchmod() on Windows works on files with the
Archive flag cleared.
Backport-PR-URL: #24103Fixes: #19170Fixes: #19455Fixes: #12803
PR-URL: #19758
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Santiago Gimeno <santiago.gimeno@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
MylesBorins pushed a commit that referenced this pull request Nov 11, 2018
Backport-PR-URL: #24103
PR-URL: #20129Fixes: #20112Fixes: #19903
Reviewed-By: Myles Borins <myles.borins@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
MylesBorins pushed a commit that referenced this pull request Nov 11, 2018
Backport-PR-URL: #24103
Refs: #19377
PR-URL: #20585
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: James M Snell <jasnell@gmail.com>
MylesBorins pushed a commit that referenced this pull request Nov 11, 2018
There is already a check in place to prevent stdin and the IPC
channel from sharing a file descriptor. This commit adds a
similar check to stdout and stderr.
Backport-PR-URL: #24103
Refs: libuv/libuv#1851
Refs: libuv/libuv#1897
PR-URL: #21466
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Santiago Gimeno <santiago.gimeno@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
MylesBorins pushed a commit that referenced this pull request Nov 11, 2018
Notable changes:
- Building via cmake is now supported.
PR-URL: libuv/libuv#1850
- Stricter checks have been added to prevent watching the same
file descriptor multiple times.
PR-URL: libuv/libuv#1851
Refs: #3604
- An IPC deadlock on Windows has been fixed.
PR-URL: libuv/libuv#1843Fixes: #9706Fixes: #7657
- uv_fs_lchown() has been added.
PR-URL: libuv/libuv#1826
Refs: #19868
- uv_fs_copyfile() sets errno on error.
PR-URL: libuv/libuv#1881Fixes: #21329
- uv_fs_fchmod() supports -A files on Windows.
PR-URL: libuv/libuv#1819
Refs: #12803
Backport-PR-URL: #24103
PR-URL: #21466
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Santiago Gimeno <santiago.gimeno@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
MylesBorins pushed a commit that referenced this pull request Nov 11, 2018
Backport-PR-URL: #24103
PR-URL: #21731
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Santiago Gimeno <santiago.gimeno@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
MylesBorins pushed a commit that referenced this pull request Nov 11, 2018
Notable changes:
- Restores compatibility with the old IPC protocol.
- Adds uv_open_osfhandle().
- Adds uv_os_{get,set}priority().
Backport-PR-URL: #24103
PR-URL: #22365Fixes: #21671Fixes: #15433
Refs: #21675
Refs: nodejs/node-addon-api#304
Refs: nodejs/abi-stable-node#318
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
MylesBorins pushed a commit that referenced this pull request Nov 11, 2018
Backport-PR-URL: #24103
PR-URL: #22997
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
MylesBorins pushed a commit that referenced this pull request Nov 11, 2018
An upcoming change in libuv will remove the artificial EISDIR error.
Update the test to reflect that.
Refs: libuv/libuv#2025
Backport-PR-URL: #24103
PR-URL: #23330
Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com>
Reviewed-By: Santiago Gimeno <santiago.gimeno@gmail.com>
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
MylesBorins pushed a commit that referenced this pull request Nov 11, 2018
Backport-PR-URL: #24103
PR-URL: #23336
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Gus Caplan <me@gus.host>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
Reviewed-By: Refael Ackermann <refack@gmail.com>
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com>
Fixes: #23043Fixes: #21773Fixes: #16601Fixes: #22999Fixes: #23219Fixes: #23066Fixes: #23067Fixes: #23089
@MylesBorins

Copy link
Copy Markdown
ContributorAuthor

ci was green!

landed in 26d145a...62dd1d7

@BethGriggs can you rebase the 8.x release

Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

aixIssues and PRs related to the AIX platform.buildIssues and PRs related to build files or the CI.libuvIssues and PRs related to the libuv dependency or the uv binding.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.

6 participants

@MylesBorins@nodejs-github-bot@addaleax@refack@cjihrig@bnoordhuis