Skip to content

child_process: align fork/spawn stdio error msg - #11044

Closed
sam-github wants to merge 1 commit into
nodejs:masterfrom
sam-github:revert-10866
Closed

child_process: align fork/spawn stdio error msg #11044
sam-github wants to merge 1 commit into
nodejs:masterfrom
sam-github:revert-10866

Conversation

@sam-github

@sam-githubsam-github commented Jan 27, 2017

Copy link
Copy Markdown
Contributor

fork()'s support for .stdio strings in 3268863 used a different
TypeError string from spawn, unnecessarily.

@nodejs-github-botnodejs-github-bot added the child_process Issues and PRs related to the child_process subsystem. label Jan 27, 2017
jasnell
jasnell previously approved these changes Jan 27, 2017
@sam-github

Copy link
Copy Markdown
ContributorAuthor

@mscdex approved?

Do I need to wait 2 days, or can I revert once there are two approvals?

cjihrig
cjihrig previously approved these changes Jan 27, 2017

@cjihrigcjihrig 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. However, if @mscdex's request to change the error message was the only thing outstanding, couldn't it just be updated here?

@mscdex

Copy link
Copy Markdown
Contributor

If nobody else had any questions/suggestions about the original changes, then it would probably be easier to just change the error message here instead of revert + change.

@sam-github

Copy link
Copy Markdown
ContributorAuthor

OK, I'll revise this PR to be an update of the error message. On monday, though. Cheers.

@sam-githubsam-github changed the title Revert "child_process: add string shortcut for fork stdio"child_process: align fork/spawn stdio error msg Jan 30, 2017
@sam-github
sam-github dismissed stale reviews from jasnell and cjihrigJanuary 30, 2017 21:57

replaced revert with code, PTAL

@sam-github

Copy link
Copy Markdown
ContributorAuthor

@mscdex I fixed the error message, PTAL, sorry I didn't understand what you LGTM was conditional on.

Comment threaddoc/api/child_process.md Outdated

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.

I don't know if we want to start adding this kind of information in this way or not. I think it's probably a separate discussion to be had outside of this PR?

Copy link
Copy Markdown
ContributorAuthor

Choose a reason for hiding this comment

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

Don't we usually put something in the API docs when we make breaking API changes? I'll check around to see what we've done in the recent past.

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.

AFAIK we haven't been including version information when it comes to changes in behavior over time. That might be beneficial, but still it's a separate discussion on if we want to start doing that and if so, how something like that would be best conveyed to the end user (presumably not in a free-form way like this note).

Comment threaddoc/api/child_process.md Outdated

@sam-githubsam-githubJan 30, 2017

Copy link
Copy Markdown
ContributorAuthor

Choose a reason for hiding this comment

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

@addaleax (because you did the original YAML markup, I think) @MylesBorins Will this work?

Our 'ADDED' metadata is not granular enough. It tracks API additions, mostly, but it doesn't account for backporting though 00ffa33 gives me the impression it was intended to.

Since it doesn't track changes in APIs, will this note work? Will the FIXME (EDIT: <-- I meant REPLACEME) get processed?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Will the FIXME (EDIT: <-- I meant REPLACEME) get processed?

Yup, the releaser will be warned by the build script (which does just a plain “grep”) and replace it.

Our 'ADDED' metadata is not granular enough.

Working on that! ;)

Comment threadlib/child_process.js Outdated

@mscdexmscdexJan 30, 2017

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.

I think this should instead go inside a default: case in the switch above.

fork()'s support for .stdio strings in 3268863 used a different
TypeError string from spawn, unnecessarily.
@sam-github

Copy link
Copy Markdown
ContributorAuthor

PTAL @mscdex

@mscdex

Copy link
Copy Markdown
Contributor

LGTM if CI is ok with it: https://ci.nodejs.org/job/node-test-pull-request/6142/

@sam-github

Copy link
Copy Markdown
ContributorAuthor

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

One of the freebsd machines failed a number of cluster tests. Trying again, may be ephemeral.

@jasnell

Copy link
Copy Markdown
Member

The change LGTM but does this need to be semver-major? Are the error conditions changing here? It's not obvious

@jasnell

Copy link
Copy Markdown
Member

Scratch that, the error message change definitely makes this semver-major

@jasnelljasnell added semver-major PRs that contain breaking changes and should be released in the next major version. and removed dont-land-on-v7.x labels Feb 2, 2017
@sam-github

Copy link
Copy Markdown
ContributorAuthor

Yeah, its semver major because it builds on #10866, which was semver major. Unfortunately, because its really a feature that would be nice to get backported.

What was the word on adding new property values to options?

If that is NOT semver-major, then we can do a backportable version of #10866

@jasnell

Copy link
Copy Markdown
Member

Adding properties to options objects, so long as they are not required, is semver-minor.

jasnell pushed a commit that referenced this pull request Feb 11, 2017
fork()'s support for .stdio strings in 3268863 used a different
TypeError string from spawn, unnecessarily.
PR-URL: #11044
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Sam Roberts <vieuxtech@gmail.com>
Reviewed-By: Brian White <mscdex@mscdex.net>
@jasnell

Copy link
Copy Markdown
Member

Landed in 4cafa60

@jasnelljasnell closed this Feb 11, 2017
krydos pushed a commit to krydos/node that referenced this pull request Feb 25, 2017
fork()'s support for .stdio strings in 3268863 used a different
TypeError string from spawn, unnecessarily.
PR-URL: nodejs#11044
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Sam Roberts <vieuxtech@gmail.com>
Reviewed-By: Brian White <mscdex@mscdex.net>
@jasnelljasnell mentioned this pull request Apr 4, 2017
@sam-github
sam-github deleted the revert-10866 branch April 17, 2017 20:37
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

child_processIssues and PRs related to the child_process subsystem.semver-majorPRs that contain breaking changes and should be released in the next major version.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants

@sam-github@mscdex@jasnell@addaleax@cjihrig@nodejs-github-bot