Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

stream: add errored and closed props #40696

Closed
wants to merge 4 commits into from

Conversation

ronag
Copy link
Member

@ronag ronag commented Nov 2, 2021

No description provided.

@ronag ronag added the stream Issues and PRs related to the stream subsystem. label Nov 2, 2021
@nodejs-github-bot nodejs-github-bot added the needs-ci PRs that need a full CI run. label Nov 2, 2021
@ronag ronag force-pushed the stream-props branch 3 times, most recently from 0bf098c to 998dd7c Compare November 2, 2021 10:34
@ronag ronag marked this pull request as ready for review November 2, 2021 10:35
@ronag
Copy link
Member Author

ronag commented Nov 2, 2021

@nodejs/streams

@ronag ronag force-pushed the stream-props branch 2 times, most recently from 6328b07 to 5c04583 Compare November 2, 2021 10:40
Copy link
Member

@mcollina mcollina left a comment

Choose a reason for hiding this comment

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

lgtm

@ronag ronag added request-ci Add this label to start a Jenkins CI on a PR. and removed needs-ci PRs that need a full CI run. labels Nov 2, 2021
@github-actions github-actions bot removed the request-ci Add this label to start a Jenkins CI on a PR. label Nov 2, 2021
@nodejs-github-bot
Copy link
Collaborator

@ronag ronag added the author ready PRs that have at least one approval, no pending requests for changes, and a CI started. label Nov 2, 2021

* {boolean}

Is `true` after `'close'` has been emitted.
Copy link
Member

Choose a reason for hiding this comment

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

Nit: Is it also true while it is being emitted? Personally, I'd interpret "after 'close' has been emitted" as in the following snippet, but that's probably not what is meant.

let value = false;
const e = new (require('events').EventEmitter)();

e.addListener('close', () => console.log(value)); // prints false

e.emit('close');

// *after* close has been emitted
value = true;

Copy link
Member Author

Choose a reason for hiding this comment

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

true enough, but that's how the other props that work similarly are also documented.


<!-- YAML
added: v8.0.0
-->

* {boolean}

Is `true` after `'close'` has been emitted.
Copy link
Member

Choose a reason for hiding this comment

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

Dito.

@mscdex mscdex added the needs-citgm PRs that need a CITGM CI run. label Nov 2, 2021
@mscdex
Copy link
Contributor

mscdex commented Nov 2, 2021

This should probably have a CITGM run.

@ronag ronag added semver-major PRs that contain breaking changes and should be released in the next major version. and removed author ready PRs that have at least one approval, no pending requests for changes, and a CI started. labels Nov 2, 2021
Copy link
Member

@benjamingr benjamingr left a comment

Choose a reason for hiding this comment

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

For what it's worth I am not sure this is preferable to statics (which can easily be backported)

@ronag ronag added request-ci Add this label to start a Jenkins CI on a PR. and removed needs-citgm PRs that need a CITGM CI run. labels Nov 4, 2021
@github-actions github-actions bot removed the request-ci Add this label to start a Jenkins CI on a PR. label Nov 4, 2021
@ronag ronag added the commit-queue Add this label to land a pull request using GitHub Actions. label Nov 10, 2021
@nodejs-github-bot nodejs-github-bot added commit-queue-failed An error occurred while landing this pull request using GitHub Actions. and removed commit-queue Add this label to land a pull request using GitHub Actions. labels Nov 12, 2021
@nodejs-github-bot
Copy link
Collaborator

Commit Queue failed
- Loading data for nodejs/node/pull/40696
✔  Done loading data for nodejs/node/pull/40696
----------------------------------- PR info ------------------------------------
Title      stream: add errored and closed props (#40696)
Author     Robert Nagy  (@ronag)
Branch     ronag:stream-props -> nodejs:master
Labels     stream, semver-major, author ready
Commits    4
 - stream: add errored and closed props
 - fixup
 - fixup
 - fixup
Committers 1
 - Robert Nagy 
PR-URL: https://github.com/nodejs/node/pull/40696
Reviewed-By: Matteo Collina 
Reviewed-By: Benjamin Gruenbaum 
Reviewed-By: James M Snell 
------------------------------ Generated metadata ------------------------------
PR-URL: https://github.com/nodejs/node/pull/40696
Reviewed-By: Matteo Collina 
Reviewed-By: Benjamin Gruenbaum 
Reviewed-By: James M Snell 
--------------------------------------------------------------------------------
   ℹ  This PR was created on Tue, 02 Nov 2021 10:27:13 GMT
   ✔  Approvals: 3
   ✔  - Matteo Collina (@mcollina) (TSC): https://github.com/nodejs/node/pull/40696#pullrequestreview-799321929
   ✔  - Benjamin Gruenbaum (@benjamingr): https://github.com/nodejs/node/pull/40696#pullrequestreview-795708212
   ✔  - James M Snell (@jasnell) (TSC): https://github.com/nodejs/node/pull/40696#pullrequestreview-802483347
   ✔  Last GitHub Actions successful
   ℹ  Last Full PR CI on 2021-11-10T09:49:58Z: https://ci.nodejs.org/job/node-test-pull-request/40812/
   ℹ  Last CITGM CI on 2021-11-06T18:42:52Z: https://ci.nodejs.org/view/Node.js-citgm/job/citgm-smoker/2790/
- Querying data for job/node-test-pull-request/40812/
   ✔  Last Jenkins CI successful
--------------------------------------------------------------------------------
   ✔  No git cherry-pick in progress
   ✔  No git am in progress
   ✔  No git rebase in progress
--------------------------------------------------------------------------------
- Bringing origin/master up to date...
From https://github.com/nodejs/node
 * branch                  master     -> FETCH_HEAD
   2d368da19f..8ee9e1a1aa  master     -> origin/master
✔  origin/master is now up-to-date
master is out of sync with origin/master. Mismatched commits:
 - a2ae06435b src,crypto: refactor `crypto_tls.*`
 - 8ee9e1a1aa src,crypto: refactor `crypto_tls.*`
--------------------------------------------------------------------------------
HEAD is now at 8ee9e1a1aa src,crypto: refactor `crypto_tls.*`
   ✔  Reset to origin/master
- Downloading patch for 40696
From https://github.com/nodejs/node
 * branch                  refs/pull/40696/merge -> FETCH_HEAD
✔  Fetched commits as 8ee9e1a1aaf5..f4416e00b290
--------------------------------------------------------------------------------
Auto-merging doc/api/stream.md
[master 6efdeb1fd5] stream: add errored and closed props
 Author: Robert Nagy 
 Date: Tue Nov 2 12:01:48 2021 +0200
 7 files changed, 110 insertions(+), 7 deletions(-)
[master e35f3a9bcc] fixup
 Author: Robert Nagy 
 Date: Thu Nov 4 23:00:13 2021 +0200
 1 file changed, 6 deletions(-)
[master b703ad992e] fixup
 Author: Robert Nagy 
 Date: Fri Nov 5 22:50:05 2021 +0200
 1 file changed, 1 insertion(+), 1 deletion(-)
[master 653829552e] fixup
 Author: Robert Nagy 
 Date: Fri Nov 5 22:50:45 2021 +0200
 1 file changed, 1 insertion(+), 1 deletion(-)
   ✔  Patches applied
There are 4 commits in the PR. Attempting autorebase.
Rebasing (2/8)

Executing: git node land --amend --yes
--------------------------------- New Message ----------------------------------
stream: add errored and closed props

PR-URL: #40696
Reviewed-By: Matteo Collina matteo.collina@gmail.com
Reviewed-By: Benjamin Gruenbaum benjamingr@gmail.com
Reviewed-By: James M Snell jasnell@gmail.com

[detached HEAD 5ffadcd02c] stream: add errored and closed props
Author: Robert Nagy ronagy@icloud.com
Date: Tue Nov 2 12:01:48 2021 +0200
7 files changed, 110 insertions(+), 7 deletions(-)
Rebasing (3/8)
Rebasing (4/8)

Executing: git node land --amend --yes
--------------------------------- New Message ----------------------------------
fixup

PR-URL: #40696
Reviewed-By: Matteo Collina matteo.collina@gmail.com
Reviewed-By: Benjamin Gruenbaum benjamingr@gmail.com
Reviewed-By: James M Snell jasnell@gmail.com

[detached HEAD 495de13e0f] fixup
Author: Robert Nagy ronagy@icloud.com
Date: Thu Nov 4 23:00:13 2021 +0200
1 file changed, 6 deletions(-)
Rebasing (5/8)
Rebasing (6/8)

Executing: git node land --amend --yes
--------------------------------- New Message ----------------------------------
fixup

n

PR-URL: #40696
Reviewed-By: Matteo Collina matteo.collina@gmail.com
Reviewed-By: Benjamin Gruenbaum benjamingr@gmail.com
Reviewed-By: James M Snell jasnell@gmail.com

[detached HEAD b73e6c86b0] fixup
Author: Robert Nagy ronagy@icloud.com
Date: Fri Nov 5 22:50:05 2021 +0200
1 file changed, 1 insertion(+), 1 deletion(-)
Rebasing (7/8)
Rebasing (8/8)

Executing: git node land --amend --yes
--------------------------------- New Message ----------------------------------
fixup

n

PR-URL: #40696
Reviewed-By: Matteo Collina matteo.collina@gmail.com
Reviewed-By: Benjamin Gruenbaum benjamingr@gmail.com
Reviewed-By: James M Snell jasnell@gmail.com

[detached HEAD b453535aad] fixup
Author: Robert Nagy ronagy@icloud.com
Date: Fri Nov 5 22:50:45 2021 +0200
1 file changed, 1 insertion(+), 1 deletion(-)

Successfully rebased and updated refs/heads/master.

ℹ Use --fixupAll option, squash the PR manually or land the PR from the command line.

https://github.com/nodejs/node/actions/runs/1436426233

@aduh95 aduh95 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. and removed commit-queue-failed An error occurred while landing this pull request using GitHub Actions. labels Nov 12, 2021
@nodejs-github-bot nodejs-github-bot removed the commit-queue Add this label to land a pull request using GitHub Actions. label Nov 12, 2021
@nodejs-github-bot
Copy link
Collaborator

Commit Queue failed
- Loading data for nodejs/node/pull/40696
✔  Done loading data for nodejs/node/pull/40696
----------------------------------- PR info ------------------------------------
Title      stream: add errored and closed props (#40696)
Author     Robert Nagy  (@ronag)
Branch     ronag:stream-props -> nodejs:master
Labels     stream, semver-major, author ready, commit-queue-squash
Commits    4
 - stream: add errored and closed props
 - fixup
 - fixup
 - fixup
Committers 1
 - Robert Nagy 
PR-URL: https://github.com/nodejs/node/pull/40696
Reviewed-By: Matteo Collina 
Reviewed-By: Benjamin Gruenbaum 
Reviewed-By: James M Snell 
------------------------------ Generated metadata ------------------------------
PR-URL: https://github.com/nodejs/node/pull/40696
Reviewed-By: Matteo Collina 
Reviewed-By: Benjamin Gruenbaum 
Reviewed-By: James M Snell 
--------------------------------------------------------------------------------
   ℹ  This PR was created on Tue, 02 Nov 2021 10:27:13 GMT
   ✔  Approvals: 3
   ✔  - Matteo Collina (@mcollina) (TSC): https://github.com/nodejs/node/pull/40696#pullrequestreview-799321929
   ✔  - Benjamin Gruenbaum (@benjamingr): https://github.com/nodejs/node/pull/40696#pullrequestreview-795708212
   ✔  - James M Snell (@jasnell) (TSC): https://github.com/nodejs/node/pull/40696#pullrequestreview-802483347
   ✔  Last GitHub Actions successful
   ℹ  Last Full PR CI on 2021-11-12T21:48:13Z: https://ci.nodejs.org/job/node-test-pull-request/40812/
   ℹ  Last CITGM CI on 2021-11-12T21:48:13Z: https://ci.nodejs.org/view/Node.js-citgm/job/citgm-smoker/2790/
- Querying data for job/node-test-pull-request/40812/
   ✔  Last Jenkins CI successful
--------------------------------------------------------------------------------
   ✔  No git cherry-pick in progress
   ✔  No git am in progress
   ✔  No git rebase in progress
--------------------------------------------------------------------------------
- Bringing origin/master up to date...
From https://github.com/nodejs/node
 * branch                  master     -> FETCH_HEAD
✔  origin/master is now up-to-date
- Downloading patch for 40696
From https://github.com/nodejs/node
 * branch                  refs/pull/40696/merge -> FETCH_HEAD
✔  Fetched commits as d10085bcb1f4..f4416e00b290
--------------------------------------------------------------------------------
Auto-merging doc/api/stream.md
[master 110fb7c8f1] stream: add errored and closed props
 Author: Robert Nagy 
 Date: Tue Nov 2 12:01:48 2021 +0200
 7 files changed, 110 insertions(+), 7 deletions(-)
[master 53b5a15660] fixup
 Author: Robert Nagy 
 Date: Thu Nov 4 23:00:13 2021 +0200
 1 file changed, 6 deletions(-)
[master 1eadfb9bc3] fixup
 Author: Robert Nagy 
 Date: Fri Nov 5 22:50:05 2021 +0200
 1 file changed, 1 insertion(+), 1 deletion(-)
[master 5526975255] fixup
 Author: Robert Nagy 
 Date: Fri Nov 5 22:50:45 2021 +0200
 1 file changed, 1 insertion(+), 1 deletion(-)
   ✔  Patches applied
There are 4 commits in the PR. Attempting autorebase.
Rebasing (2/8)

Executing: git node land --amend --yes
--------------------------------- New Message ----------------------------------
stream: add errored and closed props

PR-URL: #40696
Reviewed-By: Matteo Collina matteo.collina@gmail.com
Reviewed-By: Benjamin Gruenbaum benjamingr@gmail.com
Reviewed-By: James M Snell jasnell@gmail.com

[detached HEAD 0ab4dc4354] stream: add errored and closed props
Author: Robert Nagy ronagy@icloud.com
Date: Tue Nov 2 12:01:48 2021 +0200
7 files changed, 110 insertions(+), 7 deletions(-)
Rebasing (3/8)
Rebasing (4/8)

Executing: git node land --amend --yes
--------------------------------- New Message ----------------------------------
fixup

PR-URL: #40696
Reviewed-By: Matteo Collina matteo.collina@gmail.com
Reviewed-By: Benjamin Gruenbaum benjamingr@gmail.com
Reviewed-By: James M Snell jasnell@gmail.com

[detached HEAD 63e9b466fb] fixup
Author: Robert Nagy ronagy@icloud.com
Date: Thu Nov 4 23:00:13 2021 +0200
1 file changed, 6 deletions(-)
Rebasing (5/8)
Rebasing (6/8)

Executing: git node land --amend --yes
--------------------------------- New Message ----------------------------------
fixup

n

PR-URL: #40696
Reviewed-By: Matteo Collina matteo.collina@gmail.com
Reviewed-By: Benjamin Gruenbaum benjamingr@gmail.com
Reviewed-By: James M Snell jasnell@gmail.com

[detached HEAD 0ebc54abe5] fixup
Author: Robert Nagy ronagy@icloud.com
Date: Fri Nov 5 22:50:05 2021 +0200
1 file changed, 1 insertion(+), 1 deletion(-)
Rebasing (7/8)
Rebasing (8/8)

Executing: git node land --amend --yes
--------------------------------- New Message ----------------------------------
fixup

n

PR-URL: #40696
Reviewed-By: Matteo Collina matteo.collina@gmail.com
Reviewed-By: Benjamin Gruenbaum benjamingr@gmail.com
Reviewed-By: James M Snell jasnell@gmail.com

[detached HEAD 706596534e] fixup
Author: Robert Nagy ronagy@icloud.com
Date: Fri Nov 5 22:50:45 2021 +0200
1 file changed, 1 insertion(+), 1 deletion(-)

Successfully rebased and updated refs/heads/master.

✔ 0ab4dc4354190e42b923e36c61ba869da08ab344
✔ 0:0 skipping fixes-url fixes-url
✔ 0:0 blank line after title line-after-title
✔ 0:0 line-lengths are valid line-length
✔ 0:0 metadata is at end of message metadata-end
✔ 1:8 PR-URL is valid. pr-url
✔ 0:0 reviewers are valid reviewers
✔ 0:0 valid subsystems subsystem
✔ 0:0 Title is formatted correctly. title-format
✔ 0:0 Title is <= 50 columns. title-length
✖ 63e9b466fb741d60281f500b39c4e63513f36144
✔ 0:0 skipping fixes-url fixes-url
✔ 0:0 blank line after title line-after-title
✔ 0:0 line-lengths are valid line-length
✔ 0:0 metadata is at end of message metadata-end
✔ 1:8 PR-URL is valid. pr-url
✔ 0:0 reviewers are valid reviewers
✖ 0:0 Missing subsystem. subsystem
✔ 0:0 Title is formatted correctly. title-format
✔ 0:0 Title is <= 50 columns. title-length
✖ 0ebc54abe504afdda3a134d1763bee31c600047a
✔ 0:0 skipping fixes-url fixes-url
✔ 0:0 blank line after title line-after-title
✔ 0:0 line-lengths are valid line-length
✔ 0:0 metadata is at end of message metadata-end
✔ 3:8 PR-URL is valid. pr-url
✔ 0:0 reviewers are valid reviewers
✖ 0:0 Missing subsystem. subsystem
✔ 0:0 Title is formatted correctly. title-format
✔ 0:0 Title is <= 50 columns. title-length
✖ 706596534e0ccde7a52a2504fb1cc976cc3383c6
✔ 0:0 skipping fixes-url fixes-url
✔ 0:0 blank line after title line-after-title
✔ 0:0 line-lengths are valid line-length
✔ 0:0 metadata is at end of message metadata-end
✔ 3:8 PR-URL is valid. pr-url
✔ 0:0 reviewers are valid reviewers
✖ 0:0 Missing subsystem. subsystem
✔ 0:0 Title is formatted correctly. title-format
✔ 0:0 Title is <= 50 columns. title-length
ℹ Please fix the commit message and try again.

https://github.com/nodejs/node/actions/runs/1454898010

@nodejs-github-bot nodejs-github-bot added the commit-queue-failed An error occurred while landing this pull request using GitHub Actions. label Nov 12, 2021
@ronag
Copy link
Member Author

ronag commented Nov 13, 2021

Landed in f217025

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 pending requests for changes, and a CI started. commit-queue-failed An error occurred while landing this 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. semver-major PRs that contain breaking changes and should be released in the next major version. stream Issues and PRs related to the stream subsystem.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants