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

refactor: adapt AddressBookTestingTool to support transaction Bytes #17197

Merged

Conversation

IvanKavaldzhiev
Copy link
Collaborator

Description:
This PR enhances AddressBookTestingTool to utilize Bytes representation of system transactions.

Related issue(s):

Fixes #17081

Notes for reviewer:

Checklist

  • Documented (Code comments, README, etc.)
  • Tested (unit, integration, etc.)

…sBookTestingTool-to-work-with-bytes

# Conflicts:
#	platform-sdk/platform-apps/tests/AddressBookTestingTool/src/main/java/com/swirlds/demo/addressbook/AddressBookTestingToolState.java

Signed-off-by: Ivan Kavaldzhiev <[email protected]>
@IvanKavaldzhiev IvanKavaldzhiev added the Platform Tickets pertaining to the platform label Jan 3, 2025
@IvanKavaldzhiev IvanKavaldzhiev added this to the v0.59 milestone Jan 3, 2025
@IvanKavaldzhiev IvanKavaldzhiev self-assigned this Jan 3, 2025
@IvanKavaldzhiev IvanKavaldzhiev requested review from a team as code owners January 3, 2025 10:21
Signed-off-by: Ivan Kavaldzhiev <[email protected]>
Copy link

codecov bot commented Jan 3, 2025

Codecov Report

Attention: Patch coverage is 88.00000% with 3 lines in your changes missing coverage. Please review.

Project coverage is 67.50%. Comparing base (04f8074) to head (080b366).
Report is 4 commits behind head on main.

Files with missing lines Patch % Lines
.../demo/addressbook/AddressBookTestingToolState.java 91.66% 2 Missing ⚠️
...s/demo/addressbook/AddressBookTestingToolMain.java 0.00% 1 Missing ⚠️
Additional details and impacted files

Impacted file tree graph

@@             Coverage Diff              @@
##               main   #17197      +/-   ##
============================================
+ Coverage     67.41%   67.50%   +0.09%     
- Complexity    22097    22122      +25     
============================================
  Files          2588     2588              
  Lines         96626    96645      +19     
  Branches      10094    10096       +2     
============================================
+ Hits          65139    65242     +103     
+ Misses        27761    27666      -95     
- Partials       3726     3737      +11     
Files with missing lines Coverage Δ
...s/demo/addressbook/AddressBookTestingToolMain.java 22.72% <0.00%> (+22.72%) ⬆️
.../demo/addressbook/AddressBookTestingToolState.java 22.37% <91.66%> (+22.37%) ⬆️

... and 1 file with indirect coverage changes

Impacted file tree graph

Copy link

codacy-production bot commented Jan 3, 2025

Coverage summary from Codacy

See diff coverage on Codacy

Coverage variation Diff coverage
+0.10% (target: -1.00%) 88.00%
Coverage variation details
Coverable lines Covered lines Coverage
Common ancestor commit (04f8074) 96409 68713 71.27%
Head commit (080b366) 96428 (+19) 68827 (+114) 71.38% (+0.10%)

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 (#17197) 25 22 88.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
Contributor

@andrewb1269hg andrewb1269hg left a comment

Choose a reason for hiding this comment

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

Review and approve file platform-sdk/platform-apps/tests/AddressBookTestingTool/build.gradle.kts

andrewb1269hg
andrewb1269hg previously approved these changes Jan 6, 2025
Copy link
Contributor

@andrewb1269hg andrewb1269hg left a comment

Choose a reason for hiding this comment

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

Review and approve file platform-sdk/platform-apps/tests/AddressBookTestingTool/build.gradle.kts

poulok
poulok previously approved these changes Jan 8, 2025
andrewb1269hg
andrewb1269hg previously approved these changes Jan 9, 2025
Copy link
Contributor

@andrewb1269hg andrewb1269hg left a comment

Choose a reason for hiding this comment

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

Review and approve file platform-sdk/platform-apps/tests/AddressBookTestingTool/build.gradle.kts

…okTestingTool-to-work-with-bytes

# Conflicts:
#	platform-sdk/swirlds-platform-core/src/main/java/com/swirlds/platform/system/SwirldMain.java

Signed-off-by: Ivan Kavaldzhiev <[email protected]>
@IvanKavaldzhiev IvanKavaldzhiev dismissed stale reviews from andrewb1269hg and poulok via 080b366 January 13, 2025 12:41
Copy link
Contributor

@andrewb1269hg andrewb1269hg left a comment

Choose a reason for hiding this comment

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

Review and approve file platform-sdk/platform-apps/tests/AddressBookTestingTool/build.gradle.kts

@IvanKavaldzhiev IvanKavaldzhiev merged commit f26286a into main Jan 13, 2025
45 of 46 checks passed
@IvanKavaldzhiev IvanKavaldzhiev deleted the 17081-adapt-AddressBookTestingTool-to-work-with-bytes branch January 13, 2025 15:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Platform Tickets pertaining to the platform
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Adapt AddressBookTestingTool to work with the Bytes format for system transactions
5 participants