Uh oh!
There was an error while loading. Please reload this page.
src: add /json/protocol endpoint to inspector - #7491
Conversation
jasnell
commented
Jun 30, 2016
LGTM but can you add a quick statement to the commit log about why? :-) |
There was a problem hiding this comment.
Adding thread_id * 100 to the port number and requiring the port to match common.PORT seem to be kind of contradictory?
There was a problem hiding this comment.
I didn't make it up, exports.PORT += process.env.TEST_THREAD_ID * 100; is what test/common.js does.
There was a problem hiding this comment.
Oh, sorry, didn’t see that value is changed later in test/common.js.
addaleax
commented
Jun 30, 2016
This CI failure looks related |
joshgav
commented
Jun 30, 2016
Does this commit intend to canonicalize V8's embedded protocol.json as Node's protocol.json? I don't think we should finalize that yet, that's the goal of the discussion in nodejs/diagnostics#52. |
bnoordhuis
commented
Jun 30, 2016
Looks like I got the dependency chain wrong. It also looks like we're doing that wrong in more places. I added a fix-up that makes the inspector build depend explicitly on the generated header. New CI: https://ci.nodejs.org/job/node-test-pull-request/3137/
No. |
There was a problem hiding this comment.
not sure if important for this kind of script, but fp is not explicitly closed. Since we depend on 2.6-2.7, maybe use a with statement instead?
There was a problem hiding this comment.
The script is short-lived so I went for simplicity.
addaleax
commented
Jun 30, 2016
Apparently, that did not do the trick… https://ci.nodejs.org/job/node-test-commit-arm/3865/nodes=armv7-wheezy/console |
I'm starting to think the bug might not be in my changes to node.gyp. Other buildbots do this: But the armv7-wheezy buildbot only does this: The output of --- a.txt 2016-06-30 10:39:49.475993197 +0200+++ b.txt 2016-06-30 10:40:04.387993197 +0200@@ -1,7 +1,7 @@
'variables': { 'arm_float_abi': 'hard',
- 'arm_fpu': 'vfpv3',+ 'arm_fpu': 'vfp',
'arm_thumb': 0,
- 'arm_version': '7',+ 'arm_version': '6',
'asan': 0,
'debug_devtools': 'node',
'gas_version': '2.24',cc @nodejs/build - ideas on what might be causing that? EDIT: To be clear, CI runs for other pull requests show the exact same behavior. It's not isolated to this pull request. |
bnoordhuis
commented
Jul 6, 2016
Ping @nodejs/build. Even just a 'no clue' would be appreciated. :-) |
pavelfeldman
commented
Jul 6, 2016
It might make sense to expose this via the protocol itself i.e. Protocol.getJSON method would return the protocol definition. That way clients could reuse same web socket connection and hence save on CORS, etc. for the separate request. |
joaocgreis
commented
Jul 7, 2016
On my local machine this compiles with |
bnoordhuis
commented
Jul 9, 2016
@joaocgreis Good suggestion, updated. CI: https://ci.nodejs.org/job/node-test-pull-request/3227/
@pavelfeldman Correct me if I'm wrong but doesn't that introduce a chicken-and-egg problem? The client won't know what protocol to speak to request the protocol JSON. |
pavelfeldman
commented
Jul 11, 2016
It does, but it is manageable. There could be runtimes with different sets of capabilities available via the same endpoint. If we do use json/protocol to expose those capabilities, then it should be on the connection level in a form of RTTI. We have not implemented these capabilities yet, so it is up for debate. |
jasnell
commented
Aug 9, 2016
ping @bnoordhuis :-) |
bnoordhuis
commented
Aug 10, 2016
Let's take the debian approach: when faced with several options, do 'em all. Does publishing the protocol over both WS and HTTP sound good? |
pavelfeldman
commented
Aug 10, 2016
@bnoordhuis we can do /json/protocol first to cover the immediate needs. we'll follow up with the same in chromium for consistency. |
bnoordhuis
commented
Aug 15, 2016
Rebased, new CI: https://ci.nodejs.org/job/node-test-pull-request/3676/ Can I get a LGTM or two? |
There was a problem hiding this comment.
nit: is there a reason for the inconsistent indent between this and the two lines above?
There was a problem hiding this comment.
The previous line is a continuation of the one before it. Note how the first line doesn't have a comma at the end.
68206a9 to
2655fb9Comparebnoordhuis
commented
Aug 23, 2016
Rebased against master. Can someone sign off on this? |
jasnell
commented
Aug 23, 2016
LGTM |
1 similar comment
cjihrig
commented
Aug 23, 2016
LGTM |
Rebased. New CI run: https://ci.nodejs.org/job/node-test-pull-request/4008/ Barring nays or CI failures, I'll merge this tomorrow or the day after. EDIT: Again, because "stderr: fatal: unable to access 'https://github.com/nodejs/node.git/': gnutls_handshake() failed: A TLS packet with unexpected length was received." |
CI again so we can get this merged: https://ci.nodejs.org/job/node-test-pull-request/4064 EDIT: Problems on ARM and AIX which are out of my realm to troubleshoot 😢 |
jasnell
commented
Sep 20, 2016
Ping @bnoordhuis |
bnoordhuis
commented
Sep 23, 2016
Rebased. CI again: https://ci.nodejs.org/job/node-test-pull-request/4240/ |
bnoordhuis
commented
Sep 23, 2016
Known flake parallel/test-tick-processor-unknown on smartos, see #8725; everything else is green/yellow. I'm going to land this. |
Embed the compressed and minified protocol.json from the bundled v8_inspector and make it available through the /json/protocol endpoint. Refs: nodejs/diagnostics#52 PR-URL: nodejs#7491 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
Embed the compressed and minified protocol.json from the bundled v8_inspector and make it available through the /json/protocol endpoint. Refs: nodejs/diagnostics#52 PR-URL: nodejs#7491 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
Embed the compressed and minified protocol.json from the bundled v8_inspector and make it available through the /json/protocol endpoint. Refs: nodejs/diagnostics#52 PR-URL: #7491 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
Embed the compressed and minified protocol.json from the bundled v8_inspector and make it available through the /json/protocol endpoint. Refs: nodejs/diagnostics#52 PR-URL: #7491 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
Embed the compressed and minified protocol.json from the bundled
v8_inspector and make it available through the /json/protocol endpoint.
Refs: nodejs/diagnostics#52
CI: https://ci.nodejs.org/job/node-test-pull-request/3133/
EDIT: https://ci.nodejs.org/job/node-test-pull-request/3135/