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: adapt PlatformTestingTool to work with Bytes for system transactions #17367

Open
wants to merge 10 commits into
base: main
Choose a base branch
from

Conversation

IvanKavaldzhiev
Copy link
Collaborator

Description:
Enhance PlatformTestingTool to work with Bytes format for StateSignatureTransactions.

Related issue(s):

Fixes #17082

Notes for reviewer:

Checklist

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

…estingTool-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]>
Signed-off-by: Ivan Kavaldzhiev <[email protected]>
@IvanKavaldzhiev IvanKavaldzhiev added the Platform Tickets pertaining to the platform label Jan 14, 2025
@IvanKavaldzhiev IvanKavaldzhiev added this to the v0.59 milestone Jan 14, 2025
@IvanKavaldzhiev IvanKavaldzhiev self-assigned this Jan 14, 2025
@IvanKavaldzhiev IvanKavaldzhiev requested review from a team as code owners January 14, 2025 12:29
@IvanKavaldzhiev IvanKavaldzhiev marked this pull request as draft January 14, 2025 12:56
@IvanKavaldzhiev IvanKavaldzhiev marked this pull request as ready for review January 14, 2025 16:21
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 platform-sdk/platform-apps/tests/PlatformTestingTool/build.gradle.kts

Copy link

Coverage summary from Codacy

See diff coverage on Codacy

Coverage variation Diff coverage
+0.77% (target: -1.00%) 57.97%
Coverage variation details
Coverable lines Covered lines Coverage
Common ancestor commit (c0ce03a) 96354 69049 71.66%
Head commit (1bb6b8a) 96397 (+43) 69826 (+777) 72.44% (+0.77%)

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 (#17367) 138 80 57.97%

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 Jan 14, 2025

Codecov Report

Attention: Patch coverage is 56.52174% with 60 lines in your changes missing coverage. Please review.

Project coverage is 68.48%. Comparing base (c0ce03a) to head (1bb6b8a).
Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
...swirlds/demo/platform/PlatformTestingToolMain.java 44.23% 28 Missing and 1 partial ⚠️
.../com/swirlds/demo/platform/PttTransactionPool.java 0.00% 19 Missing ⚠️
...wirlds/demo/platform/PlatformTestingToolState.java 81.53% 11 Missing and 1 partial ⚠️
Additional details and impacted files

Impacted file tree graph

@@             Coverage Diff              @@
##               main   #17367      +/-   ##
============================================
+ Coverage     67.78%   68.48%   +0.70%     
- Complexity    22181    22362     +181     
============================================
  Files          2587     2587              
  Lines         96571    96614      +43     
  Branches      10082    10085       +3     
============================================
+ Hits          65457    66168     +711     
+ Misses        27370    26637     -733     
- Partials       3744     3809      +65     
Files with missing lines Coverage Δ
.../java/com/swirlds/demo/platform/PayloadConfig.java 84.94% <100.00%> (+33.33%) ⬆️
...wirlds/demo/platform/PlatformTestingToolState.java 34.99% <81.53%> (+34.99%) ⬆️
.../com/swirlds/demo/platform/PttTransactionPool.java 21.92% <0.00%> (+0.95%) ⬆️
...swirlds/demo/platform/PlatformTestingToolMain.java 37.72% <44.23%> (+37.72%) ⬆️

... and 24 files with indirect coverage changes

Impacted file tree graph

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 platform-sdk/platform-apps/tests/PlatformTestingTool/build.gradle.kts

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 PlatformTestingTool to work with the Bytes format for system transactions
3 participants