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

report: refactor configuration management #26414

Merged
merged 2 commits into from
Mar 5, 2019
Merged

Conversation

cjihrig
Copy link
Contributor

@cjihrig cjihrig commented Mar 3, 2019

This commit removes process.report.setOptions(). Instead of using complex configuration synchronization between C++ and JS, this commit introduces individual getters and setters.

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

@nodejs-github-bot nodejs-github-bot added c++ Issues and PRs that require attention from people who are familiar with C++. lib / src Issues and PRs related to general changes in the lib or src directory. labels Mar 3, 2019
doc/api/process.md Outdated Show resolved Hide resolved
test/report/test-report-config.js Outdated Show resolved Hide resolved
test/report/test-report-config.js Outdated Show resolved Hide resolved
@richardlau richardlau added the report Issues and PRs related to process.report. label Mar 3, 2019
@cjihrig
Copy link
Contributor Author

cjihrig commented Mar 5, 2019

@richardlau @jasnell nits addressed

Copy link
Member

@richardlau richardlau left a comment

Choose a reason for hiding this comment

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

LGTM with one suggestion and once the test is fixed for Windows.

lib/internal/process/report.js Outdated Show resolved Hide resolved
test/report/test-report-config.js Outdated Show resolved Hide resolved
@cjihrig
Copy link
Contributor Author

cjihrig commented Mar 5, 2019

@richardlau @jasnell nits addressed (again)

@richardlau
Copy link
Member

There are some C++ linter failures:

https://travis-ci.com/nodejs/node/jobs/182405108#L457-L462

Running C++ linter...
File "src/node_report_module.cc" does not use "FIXED_ONE_BYTE_STRING"
File "src/node_report_module.cc" does not use "PerIsolateOptions"
File "src/node_report_module.cc" does not use "Array"
File "src/node_report_module.cc" does not use "V8"
make[1]: *** [tools/.cpplintstamp] Error 1

@cjihrig
Copy link
Contributor Author

cjihrig commented Mar 5, 2019

OK, Travis seems to be happy now.

This commit removes process.report.setOptions(). Instead of
using complex configuration synchronization between C++ and
JS, this commit introduces individual getters and setters.

PR-URL: nodejs#26414
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
Reviewed-By: Wyatt Preul <wpreul@gmail.com>
Reduce the number of emitExperimentalWarning() call sites by
making process.report emit a warning on access instead of each
individual report function.

PR-URL: nodejs#26414
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
Reviewed-By: Wyatt Preul <wpreul@gmail.com>
@cjihrig
Copy link
Contributor Author

cjihrig commented Mar 5, 2019

@cjihrig
Copy link
Contributor Author

cjihrig commented Mar 5, 2019

Landed in c78788a...cc4e8e0. Thanks for the reviews!

@cjihrig cjihrig closed this Mar 5, 2019
@cjihrig cjihrig deleted the sync branch March 5, 2019 20:37
@cjihrig cjihrig merged commit cc4e8e0 into nodejs:master Mar 5, 2019
BridgeAR pushed a commit to BridgeAR/node that referenced this pull request Mar 12, 2019
This commit removes process.report.setOptions(). Instead of
using complex configuration synchronization between C++ and
JS, this commit introduces individual getters and setters.

PR-URL: nodejs#26414
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
Reviewed-By: Wyatt Preul <wpreul@gmail.com>
BridgeAR pushed a commit to BridgeAR/node that referenced this pull request Mar 12, 2019
Reduce the number of emitExperimentalWarning() call sites by
making process.report emit a warning on access instead of each
individual report function.

PR-URL: nodejs#26414
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
Reviewed-By: Wyatt Preul <wpreul@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c++ Issues and PRs that require attention from people who are familiar with C++. lib / src Issues and PRs related to general changes in the lib or src directory. report Issues and PRs related to process.report.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants