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

Check all usages of getReadablePlatformState() for thread safety #16603

Conversation

thenswan
Copy link
Contributor

Description:

Related issue(s):

Fixes #

Notes for reviewer:

Checklist

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

Signed-off-by: Nikita Lebedev <nikita.lebedev@limechain.tech>
Copy link

github-actions bot commented Nov 14, 2024

Node: Unit Test Results

  1 617 files  ± 0        8 errors  1 609 suites   - 8   54m 58s ⏱️ - 4m 29s
125 271 tests  - 13  125 215 ✅  - 13  56 💤 ±0  0 ❌ ±0 
131 509 runs   - 27  131 453 ✅  - 27  56 💤 ±0  0 ❌ ±0 

For more details on these parsing errors, see this check.

Results for commit e076f4d. ± Comparison against base commit df149d7.

This pull request removes 768 and adds 532 tests. Note that renamed tests count towards both.

  
             IssuerDN: CN=s-node1
            SubjectDN: CN=s-node1
           Final Date: Fri Jan 01 00:00:00 GMT 2100
           Public Key: RSA Public Key [2e:28:bc:1e:d3:83:25:92:8e:cb:98:b1:b6:84:06:9c:d5:d8:14:d5],[56:66:d1:a4]
           Start Date: Sat Jan 01 00:00:00 GMT 2000
         SerialNumber: 12482092706667292405
        modulus: c1a0ff5d2372b53d12d12bb87dd03f…
        modulus: c1a0ff5d2372b53d12d12bb87dd03…
…
com.hedera.node.app.grpc.impl.netty.GrpcServiceBuilderTest ‑ [4] 

com.hedera.node.app.grpc.impl.netty.GrpcServiceBuilderTest ‑ [6] 

com.hedera.node.app.grpc.impl.netty.GrpcServiceBuilderTest ‑ [7]   
  
com.hedera.node.app.state.merkle.StateMetadataTest ‑ [11] 

com.hedera.node.app.state.merkle.StateMetadataTest ‑ [203] Some Legal Characters 

com.hedera.node.app.state.merkle.StateMetadataTest ‑ [395] 
 Some Legal Characters
com.hedera.node.app.state.recordcache.RecordCacheImplTest$ReceiptQueryTests ‑ [10] INVALID_TRANSACTION_ID
com.hedera.node.app.state.recordcache.RecordCacheImplTest$ReceiptQueryTests ‑ [11] INVALID_SIGNATURE
com.hedera.node.app.state.recordcache.RecordCacheImplTest$ReceiptQueryTests ‑ [12] INSUFFICIENT_PAYER_BALANCE
com.hedera.node.app.state.recordcache.RecordCacheImplTest$ReceiptQueryTests ‑ [13] KEY_REQUIRED
…

♻️ This comment has been updated with latest results.

Copy link

codecov bot commented Nov 14, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 63.54%. Comparing base (df149d7) to head (e076f4d).
Report is 12 commits behind head on develop.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             develop   #16603   +/-   ##
==========================================
  Coverage      63.53%   63.54%           
- Complexity     20370    20373    +3     
==========================================
  Files           2537     2537           
  Lines          94746    94752    +6     
  Branches        9902     9903    +1     
==========================================
+ Hits           60198    60210   +12     
+ Misses         30941    30936    -5     
+ Partials        3607     3606    -1     
Files with missing lines Coverage Δ
...wirlds/platform/state/PlatformMerkleStateRoot.java 78.43% <100.00%> (+0.88%) ⬆️
...com/swirlds/platform/state/SwirldStateManager.java 96.77% <100.00%> (+0.22%) ⬆️

... and 11 files with indirect coverage changes

Impacted file tree graph

Copy link

codacy-production bot commented Nov 14, 2024

Coverage summary from Codacy

See diff coverage on Codacy

Coverage variation Diff coverage
+0.01% (target: -1.00%) 100.00%
Coverage variation details
Coverable lines Covered lines Coverage
Common ancestor commit (df149d7) 97511 63616 65.24%
Head commit (e076f4d) 97517 (+6) 63627 (+11) 65.25% (+0.01%)

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 (#16603) 6 6 100.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

Signed-off-by: Nikita Lebedev <nikita.lebedev@limechain.tech>
Signed-off-by: Nikita Lebedev <nikita.lebedev@limechain.tech>
…formstate-for-thread-safety

# Conflicts:
#	platform-sdk/swirlds-platform-core/src/main/java/com/swirlds/platform/state/State.java
…formstate-for-thread-safety

# Conflicts:
#	platform-sdk/swirlds-state-impl/src/main/java/com/swirlds/state/merkle/MerkleStateRoot.java
Signed-off-by: Nikita Lebedev <nikita.lebedev@limechain.tech>
Signed-off-by: Nikita Lebedev <nikita.lebedev@limechain.tech>
Signed-off-by: Nikita Lebedev <nikita.lebedev@limechain.tech>
@thenswan thenswan closed this Nov 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant