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

feat: add support for attach jvm debugger #549

Merged
merged 27 commits into from
Sep 11, 2024
Merged

Conversation

JeffreyDallas
Copy link
Contributor

@JeffreyDallas JeffreyDallas commented Sep 6, 2024

Description

This pull request changes the following:

  • add support for attach jvm debugger

Related Issues

Instructions

https://www.notion.so/swirldslabs/Using-solo-with-JVM-Debugger-70aea26ce00341ed89d31c931e1ca02b

Signed-off-by: Jeffrey Tang <jeffrey@swirldslabs.com>
Signed-off-by: Jeffrey Tang <jeffrey@swirldslabs.com>
Signed-off-by: Jeffrey Tang <jeffrey@swirldslabs.com>
Signed-off-by: Jeffrey Tang <jeffrey@swirldslabs.com>
Signed-off-by: Jeffrey Tang <jeffrey@swirldslabs.com>
Signed-off-by: Jeffrey Tang <jeffrey@swirldslabs.com>
…vm-debugger

Signed-off-by: Jeffrey Tang <jeffrey@swirldslabs.com>

# Conflicts:
#	test/e2e/commands/node-local-ptt.test.mjs
Signed-off-by: Jeffrey Tang <jeffrey@swirldslabs.com>
@JeffreyDallas JeffreyDallas requested review from leninmehedy and a team as code owners September 6, 2024 02:35
@JeffreyDallas JeffreyDallas marked this pull request as draft September 6, 2024 02:35
Signed-off-by: Jeffrey Tang <jeffrey@swirldslabs.com>
Copy link
Contributor

github-actions bot commented Sep 6, 2024

Unit Test Results - Linux

  1 files  ±0   19 suites  ±0   26s ⏱️ ±0s
122 tests ±0  122 ✅ ±0  0 💤 ±0  0 ❌ ±0 
148 runs  ±0  148 ✅ ±0  0 💤 ±0  0 ❌ ±0 

Results for commit ff69127. ± Comparison against base commit 853eb9e.

♻️ This comment has been updated with latest results.

Copy link
Contributor

github-actions bot commented Sep 6, 2024

Unit Test Results - Windows

  1 files  ±0   19 suites  ±0   53s ⏱️ +2s
122 tests ±0  122 ✅ ±0  0 💤 ±0  0 ❌ ±0 
148 runs  ±0  148 ✅ ±0  0 💤 ±0  0 ❌ ±0 

Results for commit ff69127. ± Comparison against base commit 853eb9e.

♻️ This comment has been updated with latest results.

Copy link
Contributor

github-actions bot commented Sep 6, 2024

E2E Relay Tests Coverage Report

1 files  ±0  1 suites  ±0   2m 47s ⏱️ -1s
6 tests ±0  6 ✅ ±0  0 💤 ±0  0 ❌ ±0 
7 runs  ±0  7 ✅ ±0  0 💤 ±0  0 ❌ ±0 

Results for commit ff69127. ± Comparison against base commit 853eb9e.

♻️ This comment has been updated with latest results.

Copy link
Contributor

github-actions bot commented Sep 6, 2024

E2E Node PEM Stop Tests Coverage Report

13 tests  ±0   13 ✅ ±0   2m 37s ⏱️ -1s
 1 suites ±0    0 💤 ±0 
 1 files   ±0    0 ❌ ±0 

Results for commit ff69127. ± Comparison against base commit 853eb9e.

♻️ This comment has been updated with latest results.

Copy link
Contributor

github-actions bot commented Sep 6, 2024

E2E Node PFX Kill Tests Coverage Report

13 tests   13 ✅  3m 7s ⏱️
 1 suites   0 💤
 1 files     0 ❌

Results for commit 4cee5e7.

♻️ This comment has been updated with latest results.

Copy link
Contributor

github-actions bot commented Sep 6, 2024

E2E Mirror Node Tests Coverage Report

 1 files  ±0   1 suites  ±0   3m 43s ⏱️ ±0s
13 tests ±0  13 ✅ ±0  0 💤 ±0  0 ❌ ±0 
14 runs  ±0  14 ✅ ±0  0 💤 ±0  0 ❌ ±0 

Results for commit ff69127. ± Comparison against base commit 853eb9e.

♻️ This comment has been updated with latest results.

Copy link
Contributor

github-actions bot commented Sep 6, 2024

E2E Tests Coverage Report

58 tests  ±0   58 ✅ ±0   4m 4s ⏱️ -8s
 9 suites ±0    0 💤 ±0 
 1 files   ±0    0 ❌ ±0 

Results for commit ff69127. ± Comparison against base commit 853eb9e.

♻️ This comment has been updated with latest results.

Copy link
Contributor

github-actions bot commented Sep 6, 2024

E2E Node Update Tests Coverage Report

12 tests  ±0   12 ✅ ±0   5m 28s ⏱️ +3s
 1 suites ±0    0 💤 ±0 
 1 files   ±0    0 ❌ ±0 

Results for commit ff69127. ± Comparison against base commit 853eb9e.

♻️ This comment has been updated with latest results.

Copy link
Contributor

github-actions bot commented Sep 6, 2024

E2E Node Delete Tests Coverage Report

10 tests  ±0   10 ✅ ±0   6m 17s ⏱️ -1s
 1 suites ±0    0 💤 ±0 
 1 files   ±0    0 ❌ ±0 

Results for commit ff69127. ± Comparison against base commit 853eb9e.

♻️ This comment has been updated with latest results.

Copy link
Contributor

github-actions bot commented Sep 6, 2024

E2E Node Local Build Tests Coverage Report

10 tests  ±0   10 ✅ ±0   2m 21s ⏱️ -1s
 2 suites ±0    0 💤 ±0 
 1 files   ±0    0 ❌ ±0 

Results for commit ff69127. ± Comparison against base commit 853eb9e.

♻️ This comment has been updated with latest results.

Copy link
Contributor

github-actions bot commented Sep 6, 2024

E2E Node Add Tests Coverage Report

22 tests  ±0   22 ✅ ±0   12m 40s ⏱️ - 1m 39s
 2 suites ±0    0 💤 ±0 
 1 files   ±0    0 ❌ ±0 

Results for commit ff69127. ± Comparison against base commit 853eb9e.

♻️ This comment has been updated with latest results.

Signed-off-by: Jeffrey Tang <jeffrey@swirldslabs.com>
Signed-off-by: Jeffrey Tang <jeffrey@swirldslabs.com>
Signed-off-by: Jeffrey Tang <jeffrey@swirldslabs.com>
Signed-off-by: Jeffrey Tang <jeffrey@swirldslabs.com>
Copy link

codacy-production bot commented Sep 6, 2024

Coverage summary from Codacy

See diff coverage on Codacy

Coverage variation Diff coverage
-0.20% (target: -1.00%) 62.00%
Coverage variation details
Coverable lines Covered lines Coverage
Common ancestor commit (853eb9e) 4031 3166 78.54%
Head commit (ff69127) 4081 (+50) 3197 (+31) 78.34% (-0.20%)

Coverage variation is the difference between the coverage for the head and common ancestor commits of the pull request branch: <coverage of head commit> - <coverage of common ancestor commit>

Diff coverage details
Coverable lines Covered lines Diff coverage
Pull request (#549) 50 31 62.00%

Diff coverage is the percentage of lines that are covered by tests out of the coverable lines that the pull request added or modified: <covered lines added or modified>/<coverable lines added or modified> * 100%

See your quality gate settings    Change summary preferences

Codacy stopped sending the deprecated coverage status on June 5th, 2024. Learn more

Copy link

codecov bot commented Sep 6, 2024

Codecov Report

Attention: Patch coverage is 67.24138% with 19 lines in your changes missing coverage. Please review.

Project coverage is 82.93%. Comparing base (853eb9e) to head (ff69127).
Report is 26 commits behind head on main.

Files with missing lines Patch % Lines
src/commands/node.mjs 61.90% 16 Missing ⚠️
src/core/helpers.mjs 50.00% 3 Missing ⚠️
Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #549      +/-   ##
==========================================
- Coverage   83.15%   82.93%   -0.23%     
==========================================
  Files          36       36              
  Lines        4815     4869      +54     
  Branches      667      751      +84     
==========================================
+ Hits         4004     4038      +34     
- Misses        811      831      +20     
Files with missing lines Coverage Δ
src/commands/flags.mjs 96.00% <100.00%> (+0.05%) ⬆️
src/commands/network.mjs 63.15% <100.00%> (+0.96%) ⬆️
src/core/constants.mjs 94.31% <100.00%> (+0.06%) ⬆️
test/test_util.js 91.21% <ø> (ø)
src/core/helpers.mjs 87.50% <50.00%> (-1.85%) ⬇️
src/commands/node.mjs 84.24% <61.90%> (-0.84%) ⬇️

Impacted file tree graph

Signed-off-by: Jeffrey Tang <jeffrey@swirldslabs.com>
Signed-off-by: Jeffrey Tang <jeffrey@swirldslabs.com>
Signed-off-by: Jeffrey Tang <jeffrey@swirldslabs.com>
…vm-debugger

Signed-off-by: Jeffrey Tang <jeffrey@swirldslabs.com>

# Conflicts:
#	src/commands/node.mjs
Signed-off-by: Jeffrey Tang <jeffrey@swirldslabs.com>
@JeffreyDallas JeffreyDallas marked this pull request as ready for review September 9, 2024 14:09
…vm-debugger

Signed-off-by: Jeffrey Tang <jeffrey@swirldslabs.com>

# Conflicts:
#	src/commands/flags.mjs
#	src/commands/network.mjs
Copy link
Contributor

github-actions bot commented Sep 9, 2024

E2E Node PEM Kill Tests Coverage Report

13 tests  ±0   13 ✅ ±0   2m 53s ⏱️ +6s
 1 suites ±0    0 💤 ±0 
 1 files   ±0    0 ❌ ±0 

Results for commit ff69127. ± Comparison against base commit 853eb9e.

♻️ This comment has been updated with latest results.

README.md.template Outdated Show resolved Hide resolved
README.md.template Outdated Show resolved Hide resolved
README.md.template Outdated Show resolved Hide resolved
README.md.template Outdated Show resolved Hide resolved
JeffreyDallas and others added 5 commits September 10, 2024 09:07
Co-authored-by: Jeromy Cannon <jeromy@swirldslabs.com>
Signed-off-by: JeffreyDallas <39912573+JeffreyDallas@users.noreply.github.com>
Co-authored-by: Jeromy Cannon <jeromy@swirldslabs.com>
Signed-off-by: JeffreyDallas <39912573+JeffreyDallas@users.noreply.github.com>
Co-authored-by: Jeromy Cannon <jeromy@swirldslabs.com>
Signed-off-by: JeffreyDallas <39912573+JeffreyDallas@users.noreply.github.com>
Co-authored-by: Jeromy Cannon <jeromy@swirldslabs.com>
Signed-off-by: JeffreyDallas <39912573+JeffreyDallas@users.noreply.github.com>
Co-authored-by: Jeromy Cannon <jeromy@swirldslabs.com>
Signed-off-by: JeffreyDallas <39912573+JeffreyDallas@users.noreply.github.com>
jeromy-cannon
jeromy-cannon previously approved these changes Sep 10, 2024
…vm-debugger

Signed-off-by: Jeffrey Tang <jeffrey@swirldslabs.com>
@jeromy-cannon jeromy-cannon merged commit 35a0075 into main Sep 11, 2024
38 of 40 checks passed
@jeromy-cannon jeromy-cannon deleted the 0298-D-jvm-debugger branch September 11, 2024 07:59
swirlds-automation added a commit that referenced this pull request Sep 17, 2024
## [0.30.0](v0.29.0...v0.30.0) (2024-09-17)

### Features

* add node add-prepare and node add-execute commands ([#533](#533)) ([a184775](a184775))
* add support for attach jvm debugger ([#549](#549)) ([35a0075](35a0075))
* add the autogen tool to easily add e2e tests and run it for the first time & fix copyFrom ([#566](#566)) ([e6c79eb](e6c79eb))
* **network node livecheck:** implement a functionality to determine network node activeness with prometheus metrics ([#567](#567)) ([6120775](6120775))
* remove pfx support ([#537](#537)) ([aff5f63](aff5f63))

### Bug Fixes

* aligned test names to naming pattern ([#554](#554)) ([365f724](365f724))
* download application.properties file if it was generated by hedera app during handling address book change ([#571](#571)) ([35c73d8](35c73d8))
* **functionality:** removed the 'z' from the 'tar' command on the K8.copyFrom ([#561](#561)) ([796474b](796474b))
* have update readme run after version calculation in deploy and release ([#586](#586)) ([42e1685](42e1685))
* jsdoc errors due to unrecognized format ([#557](#557)) ([da7113b](da7113b))
* remove of using agreement key in hedera repo test ([#563](#563)) ([05c5517](05c5517))
* separate repeated steps as individual functions ([#562](#562)) ([dcbbe5e](dcbbe5e))
@swirlds-automation
Copy link
Contributor

🎉 This PR is included in version 0.30.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add ability to set the debugger on a network node JVM
3 participants