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

inspector: roll inspector_protocol to match v8's #56649

Closed
wants to merge 3 commits into from

Conversation

legendecas
Copy link
Member

@legendecas legendecas commented Jan 17, 2025

tools: update inspector_protocol roller

Fix the inspector_protocol/roll.py to fit node source directory
structure.

roll.py reads the deps/v8/thrid_party/inspector_protocol/README.v8
to get the revision of the inspector_protocol that V8 depends on, and
updates the local version to match.

V8's copy of inspector_protocol modifies the namespace of crdtp
library and does not export the symbols. So it can not be used outside
of V8.

inspector: roll inspector_protocol

Roll the inspector_protocol library to match V8's inspector_protocol
revision.

Update the node inspector to use the new crdtp protocol library.

deps: move inspector_protocol to deps

The crdtp library in the inspector_protocol is compiled as a library
and linked to the node executable.

@nodejs-github-bot
Copy link
Collaborator

nodejs-github-bot commented Jan 17, 2025

Review requested:

  • @nodejs/security-wg
  • @nodejs/inspector
  • @nodejs/cpp-reviewers

@nodejs-github-bot nodejs-github-bot added dependencies Pull requests that update a dependency file. needs-ci PRs that need a full CI run. labels Jan 17, 2025
@legendecas legendecas added the inspector Issues and PRs related to the V8 inspector protocol label Jan 17, 2025
@legendecas legendecas marked this pull request as ready for review January 17, 2025 23:58
@legendecas legendecas force-pushed the inspector/roll-protocol branch 3 times, most recently from a9069ea to be85fe3 Compare January 18, 2025 00:19
Copy link

codecov bot commented Jan 18, 2025

Codecov Report

Attention: Patch coverage is 60.65574% with 72 lines in your changes missing coverage. Please review.

Project coverage is 89.20%. Comparing base (d978610) to head (afcb230).
Report is 40 commits behind head on main.

Files with missing lines Patch % Lines
src/inspector/node_json.cc 48.95% 39 Missing and 10 partials ⚠️
src/inspector/node_string.cc 59.25% 10 Missing and 1 partial ⚠️
src/inspector/tracing_agent.cc 61.53% 4 Missing and 1 partial ⚠️
src/inspector_agent.cc 81.48% 4 Missing and 1 partial ⚠️
src/inspector/network_agent.cc 87.50% 0 Missing and 1 partial ⚠️
src/inspector/worker_agent.cc 80.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main   #56649      +/-   ##
==========================================
- Coverage   89.21%   89.20%   -0.02%     
==========================================
  Files         662      663       +1     
  Lines      191945   192180     +235     
  Branches    36948    36988      +40     
==========================================
+ Hits       171238   171425     +187     
- Misses      13549    13573      +24     
- Partials     7158     7182      +24     
Files with missing lines Coverage Δ
src/inspector/node_string.h 57.14% <100.00%> (-16.20%) ⬇️
src/inspector/runtime_agent.cc 100.00% <100.00%> (ø)
src/inspector/network_agent.cc 94.89% <87.50%> (+0.21%) ⬆️
src/inspector/worker_agent.cc 90.36% <80.00%> (ø)
src/inspector/tracing_agent.cc 89.47% <61.53%> (-1.44%) ⬇️
src/inspector_agent.cc 79.74% <81.48%> (-0.40%) ⬇️
src/inspector/node_string.cc 60.00% <59.25%> (+4.82%) ⬆️
src/inspector/node_json.cc 48.95% <48.95%> (ø)

... and 52 files with indirect coverage changes

@legendecas legendecas added the request-ci Add this label to start a Jenkins CI on a PR. label Jan 18, 2025
@github-actions github-actions bot removed the request-ci Add this label to start a Jenkins CI on a PR. label Jan 21, 2025
@nodejs-github-bot

This comment was marked as outdated.

Fix the inspector_protocol/roll.py to fit node source directory
structure.

`roll.py` reads the `deps/v8/thrid_party/inspector_protocol/README.v8`
to get the revision of the inspector_protocol that V8 depends on, and
updates the local version to match.

V8's copy of inspector_protocol modifies the namespace of `crdtp`
library and does not export the symbols. So it can not be used outside
of V8.
@legendecas legendecas force-pushed the inspector/roll-protocol branch from be85fe3 to 601a566 Compare January 23, 2025 09:48
@legendecas legendecas added the request-ci Add this label to start a Jenkins CI on a PR. label Jan 23, 2025
@github-actions github-actions bot removed the request-ci Add this label to start a Jenkins CI on a PR. label Jan 23, 2025
@nodejs-github-bot
Copy link
Collaborator

@legendecas legendecas added the request-ci Add this label to start a Jenkins CI on a PR. label Jan 23, 2025
@github-actions github-actions bot removed the request-ci Add this label to start a Jenkins CI on a PR. label Jan 23, 2025
@nodejs-github-bot
Copy link
Collaborator

legendecas and others added 2 commits January 25, 2025 16:02
Roll the inspector_protocol library to match V8's inspector_protocol
revision.

Update the node inspector to use the new `crdtp` protocol library.
The `crdtp` library in the inspector_protocol is compiled as a library
and linked to the node executable.
@legendecas legendecas force-pushed the inspector/roll-protocol branch from ab3d03c to afcb230 Compare January 25, 2025 16:02
@legendecas legendecas added the request-ci Add this label to start a Jenkins CI on a PR. label Jan 25, 2025
@github-actions github-actions bot removed the request-ci Add this label to start a Jenkins CI on a PR. label Jan 25, 2025
@nodejs-github-bot
Copy link
Collaborator

@nodejs-github-bot
Copy link
Collaborator

@nodejs-github-bot
Copy link
Collaborator

@legendecas
Copy link
Member Author

Fixed CI failures on AIX/linuxone. @nodejs/inspector would you mind taking another review? Thank you!

src/inspector/node_string.cc Show resolved Hide resolved
src/inspector/node_string.cc Show resolved Hide resolved
@legendecas legendecas added commit-queue Add this label to land a pull request using GitHub Actions. commit-queue-rebase Add this label to allow the Commit Queue to land a PR in several commits. labels Jan 26, 2025
@nodejs-github-bot nodejs-github-bot removed the commit-queue Add this label to land a pull request using GitHub Actions. label Jan 26, 2025
@nodejs-github-bot
Copy link
Collaborator

Landed in 43daa9b...0aa5874

nodejs-github-bot pushed a commit that referenced this pull request Jan 26, 2025
Fix the inspector_protocol/roll.py to fit node source directory
structure.

`roll.py` reads the `deps/v8/thrid_party/inspector_protocol/README.v8`
to get the revision of the inspector_protocol that V8 depends on, and
updates the local version to match.

V8's copy of inspector_protocol modifies the namespace of `crdtp`
library and does not export the symbols. So it can not be used outside
of V8.

PR-URL: #56649
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com>
nodejs-github-bot pushed a commit that referenced this pull request Jan 26, 2025
Roll the inspector_protocol library to match V8's inspector_protocol
revision.

Update the node inspector to use the new `crdtp` protocol library.

PR-URL: #56649
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com>
nodejs-github-bot pushed a commit that referenced this pull request Jan 26, 2025
The `crdtp` library in the inspector_protocol is compiled as a library
and linked to the node executable.

PR-URL: #56649
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com>
@legendecas legendecas deleted the inspector/roll-protocol branch January 26, 2025 23:48
aduh95 pushed a commit that referenced this pull request Jan 27, 2025
Fix the inspector_protocol/roll.py to fit node source directory
structure.

`roll.py` reads the `deps/v8/thrid_party/inspector_protocol/README.v8`
to get the revision of the inspector_protocol that V8 depends on, and
updates the local version to match.

V8's copy of inspector_protocol modifies the namespace of `crdtp`
library and does not export the symbols. So it can not be used outside
of V8.

PR-URL: #56649
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com>
aduh95 pushed a commit that referenced this pull request Jan 27, 2025
Roll the inspector_protocol library to match V8's inspector_protocol
revision.

Update the node inspector to use the new `crdtp` protocol library.

PR-URL: #56649
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com>
aduh95 pushed a commit that referenced this pull request Jan 27, 2025
The `crdtp` library in the inspector_protocol is compiled as a library
and linked to the node executable.

PR-URL: #56649
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com>
targos added a commit to targos/node that referenced this pull request Jan 29, 2025
nodejs-github-bot pushed a commit that referenced this pull request Jan 29, 2025
Refs: #56649
PR-URL: #56814
Reviewed-By: Chengzhong Wu <legendecas@gmail.com>
Reviewed-By: Richard Lau <rlau@redhat.com>
aduh95 pushed a commit that referenced this pull request Jan 30, 2025
Fix the inspector_protocol/roll.py to fit node source directory
structure.

`roll.py` reads the `deps/v8/thrid_party/inspector_protocol/README.v8`
to get the revision of the inspector_protocol that V8 depends on, and
updates the local version to match.

V8's copy of inspector_protocol modifies the namespace of `crdtp`
library and does not export the symbols. So it can not be used outside
of V8.

PR-URL: #56649
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com>
aduh95 pushed a commit that referenced this pull request Jan 30, 2025
Roll the inspector_protocol library to match V8's inspector_protocol
revision.

Update the node inspector to use the new `crdtp` protocol library.

PR-URL: #56649
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com>
aduh95 pushed a commit that referenced this pull request Jan 30, 2025
The `crdtp` library in the inspector_protocol is compiled as a library
and linked to the node executable.

PR-URL: #56649
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com>
hvanness pushed a commit to hvanness/node that referenced this pull request Jan 30, 2025
Fix the inspector_protocol/roll.py to fit node source directory
structure.

`roll.py` reads the `deps/v8/thrid_party/inspector_protocol/README.v8`
to get the revision of the inspector_protocol that V8 depends on, and
updates the local version to match.

V8's copy of inspector_protocol modifies the namespace of `crdtp`
library and does not export the symbols. So it can not be used outside
of V8.

PR-URL: nodejs#56649
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com>
hvanness pushed a commit to hvanness/node that referenced this pull request Jan 30, 2025
Roll the inspector_protocol library to match V8's inspector_protocol
revision.

Update the node inspector to use the new `crdtp` protocol library.

PR-URL: nodejs#56649
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com>
hvanness pushed a commit to hvanness/node that referenced this pull request Jan 30, 2025
The `crdtp` library in the inspector_protocol is compiled as a library
and linked to the node executable.

PR-URL: nodejs#56649
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com>
aduh95 pushed a commit that referenced this pull request Jan 31, 2025
Fix the inspector_protocol/roll.py to fit node source directory
structure.

`roll.py` reads the `deps/v8/thrid_party/inspector_protocol/README.v8`
to get the revision of the inspector_protocol that V8 depends on, and
updates the local version to match.

V8's copy of inspector_protocol modifies the namespace of `crdtp`
library and does not export the symbols. So it can not be used outside
of V8.

PR-URL: #56649
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com>
aduh95 pushed a commit that referenced this pull request Jan 31, 2025
Roll the inspector_protocol library to match V8's inspector_protocol
revision.

Update the node inspector to use the new `crdtp` protocol library.

PR-URL: #56649
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com>
aduh95 pushed a commit that referenced this pull request Jan 31, 2025
The `crdtp` library in the inspector_protocol is compiled as a library
and linked to the node executable.

PR-URL: #56649
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com>
targos added a commit that referenced this pull request Feb 2, 2025
Refs: #56649
PR-URL: #56814
Reviewed-By: Chengzhong Wu <legendecas@gmail.com>
Reviewed-By: Richard Lau <rlau@redhat.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
commit-queue-rebase Add this label to allow the Commit Queue to land a PR in several commits. dependencies Pull requests that update a dependency file. inspector Issues and PRs related to the V8 inspector protocol needs-ci PRs that need a full CI run.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants