-
Notifications
You must be signed in to change notification settings - Fork 29.6k
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
deps: move inspector_protocol to deps #22411
Conversation
Dependencies that influence directly what goes into the `node` binary should be in `deps/`. Refs: nodejs#21975 (comment)
Regarding the fixup commit here … it seems interesting that Travis CI caught something that our own test-commit-linuxone didn’t …? 🤔 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is not code this is a code generation tool.
The code this tool uses is in https://github.com/nodejs/node/tree/master/src/inspector
Ref: https://chromium.googlesource.com/deps/inspector_protocol/
Ref: #21975 (review)
IMO this is equivalent to
( Just to be clear I'm -1 on this change, and request that is not dismissed (unless overridden by a TSC vote). /CC @nodejs/build @nodejs/build-files @nodejs/v8-update @nodejs/v8 @addaleax Since you brought it up, I found your comment #21975 (comment) confusing and even a little bit disrespectful. If you had critique on my comment you should brought it up then and there. To all those to approved, I'd like to remind you of the policy:
|
As a point of reference, these are the generated files that are actually compiled into the binary: Lines 1049 to 1055 in 9bcb744
Lines 493 to 510 in 9bcb744
|
Seems like we have |
@refack The code generated by (Also on a side note, do we need to bump the V8 embedder suffix if we update inspector_protocol? If we do, then I believe it brings this closer to the |
As mentioned in #21975 this copy of the tool is node's own. It is meant to be independent of the one in https://github.com/nodejs/node/tree/master/deps/v8/third_party/inspector_protocol. So no need to change |
BTW if the name is confusing. This actually has very little to do with the debugging inspector. We use it to generate the code used to communicate with V8 to get VM tracing information. |
Ah, thanks, didn't know that!
If there is a bug in the code generated by |
@refack The generated code isn't used to communicate with V8, it's used to define an object model that represents the CrDP interface. It's up to the implementer of the generated classes (in this case node) to interact with the system and perform the requested action. It's there to act as a bridge between the debugger requests (e.g. DevTools, VS Code, etc.) and the application code that can service the requests. The name |
Thank you @kfarnung for the explanation. Given that #21975 established that node needs it's own version, back to the point of this PR, is |
inspector_protocol is a tool - it is a Python codegenerator and a collection of templates. |
Okay everyone, I’m closing this … this isn’t that important, plus I talked to @refack and he has some ideas around an altogether better approach for the particular issue that the “extra” dependencies solve. |
Dependencies that influence directly what goes into the
node
binaryshould be in
deps/
.Refs: #21975 (comment)
Checklist
make -j4 test
(UNIX), orvcbuild test
(Windows) passes