FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

test: pass through stderr in benchmark tests by addaleax · Pull Request #21860 · nodejs/node · GitHub

/ node Public

test: pass through stderr in benchmark tests - #21860

Closed
addaleax wants to merge 1 commit into
nodejs:masterfrom
addaleax:test-benchmark-stderr
Closed

test: pass through stderr in benchmark tests#21860
addaleax wants to merge 1 commit into
nodejs:masterfrom
addaleax:test-benchmark-stderr

Conversation

Copy link
Copy Markdown
Member

This helps a lot with debugging failing benchmark tests,
which would otherwise just print an assertion for the
exit code (something like +1 -0, which yields almost no
information about a failure).

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • tests and/or benchmarks are included
  • commit message follows commit guidelines

This helps a lot with debugging failing benchmark tests,
which would otherwise just print an assertion for the
exit code (something like `+1 -0`, which yields almost no
information about a failure).
addaleax requested a review from Trott July 17, 2018 23:26

Copy link
Copy Markdown
Collaborator

nodejs-github-bot added the test Issues and PRs related to the tests. label Jul 17, 2018
addaleax added the benchmark Issues and PRs related to the benchmark subsystem. label Jul 17, 2018

Trott left a comment

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.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

LGTM

Copy link
Copy Markdown
Member

@addaleax - why is the third entry (in the stdio array) required?

Copy link
Copy Markdown
Member Author

@gireeshpunathil I’m not sure I understand – the first one is for stdin, which we don’t really care about, the second one is for stdout (which is what we’re testing here, so we need to capture it). The third one is for stderr; that’s the debugging information that should not get lost in the parent process. The fourth one is necessary for fork() to work.

Copy link
Copy Markdown
Member

my apologies - I meant the 4th entry (somehow the 0 based index concept messed up with the natural language).

The fourth one is necessary for fork() to work.

Can you please elaborate? missing to catch this. Is it for process.send to work properly?

Copy link
Copy Markdown
Member Author

@gireeshpunathil I think process.send is the reason for it, but generally, it seems that child_process.fork() just fails if there’s no IPC file descriptor?

I think we might be able to switch to another child_process if we like, if we want to avoid that extra fd.

Copy link
Copy Markdown
Member Author

addaleax added the author ready PRs that have at least one approval, no outstanding review comments, and a CI started. label Jul 18, 2018

Copy link
Copy Markdown
Member Author

Trott commented Jul 28, 2018

Copy link
Copy Markdown
Member

Trott commented Jul 28, 2018

Copy link
Copy Markdown
Member

Just fixed AIX in CI (I hope): https://ci.nodejs.org/job/node-test-pull-request/16049/

trivikr commented Aug 1, 2018

Copy link
Copy Markdown
Member

Landed in 8a62cdb

trivikr closed this Aug 1, 2018
trivikr pushed a commit that referenced this pull request Aug 1, 2018
This helps a lot with debugging failing benchmark tests,
which would otherwise just print an assertion for the
exit code (something like `+1 -0`, which yields almost no
information about a failure).

PR-URL: #21860
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
Reviewed-By: Gabriel Schulhof <gabriel.schulhof@intel.com>
targos pushed a commit that referenced this pull request Aug 1, 2018
This helps a lot with debugging failing benchmark tests,
which would otherwise just print an assertion for the
exit code (something like `+1 -0`, which yields almost no
information about a failure).

PR-URL: #21860
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
Reviewed-By: Gabriel Schulhof <gabriel.schulhof@intel.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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 outstanding review comments, and a CI started. benchmark Issues and PRs related to the benchmark subsystem. test Issues and PRs related to the tests.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants


Back | FazBrowse Home | New Git URL