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

Revert to v0.35.3 ContractKey.hashCode() #6012

Merged
merged 1 commit into from Apr 11, 2023

Conversation

tinker-michaelj
Copy link
Collaborator

Description:

  • Reinstates original ContractKey.hashCode() implementation with some test vectors created using the v0.35.3 tag.
  • Adds the Dagger2-generated code to the mono-service source set to avoid some build annoyances.

Signed-off-by: Michael Tinker <michael.tinker@swirldslabs.com>
@github-actions
Copy link

github-actions bot commented Apr 6, 2023

Node: Unit Test Results

  1 298 files    1 298 suites   1h 51m 4s ⏱️
97 049 tests 97 042 ✔️ 7 💤 0
98 689 runs  98 682 ✔️ 7 💤 0

Results for commit 590a670.

@codecov
Copy link

codecov bot commented Apr 6, 2023

Codecov Report

Patch coverage: 100.00% and project coverage change: +23.21 🎉

Comparison is base (c43b5f1) 68.14% compared to head (590a670) 91.36%.

Additional details and impacted files
@@              Coverage Diff               @@
##             develop    #6012       +/-   ##
==============================================
+ Coverage      68.14%   91.36%   +23.21%     
+ Complexity     21953    16970     -4983     
==============================================
  Files           1960     1273      -687     
  Lines         133554    48501    -85053     
  Branches        7519     4839     -2680     
==============================================
- Hits           91013    44313    -46700     
+ Misses         41079     3266    -37813     
+ Partials        1462      922      -540     
Impacted Files Coverage Δ
...de/app/service/mono/state/virtual/ContractKey.java 97.14% <100.00%> (+0.36%) ⬆️

... and 921 files with indirect coverage changes

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@sonarcloud
Copy link

sonarcloud bot commented Apr 6, 2023

SonarCloud Quality Gate failed.    Quality Gate failed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

100.0% 100.0% Coverage
16.7% 16.7% Duplication

Copy link
Member

@david-bakin-sl david-bakin-sl left a comment

Choose a reason for hiding this comment

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

LGTM

^ x6)
^ x7)
^ x8);
}
Copy link
Member

Choose a reason for hiding this comment

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

odd choice by spotless, but one that works!

@@ -133,7 +132,7 @@ public boolean equals(final Object o) {
/** Special hash to make sure we get good distribution. */
Copy link
Member

Choose a reason for hiding this comment

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

How about, until the PR which is going to provide a custom-named persistent hash function for ContractKey lands, you enhance this javadoc with scary-sounding threats to intimidate anyone away from using this for some other persistent use than the one we're currently suffering from?

Comment on lines +104 to +107
val generatedSources = file("build/generated/sources/annotationProcessor/java/main")

java.sourceSets["main"].java.srcDir(generatedSources)

Copy link
Member

Choose a reason for hiding this comment

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

I don't get why this is in this PR. What's going on here?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Avoids some annoying compile errors when the Gradle build doesn't grasp that sources have changed.

@github-actions
Copy link

github-actions bot commented Apr 6, 2023

Node: Integration Test Results

    3 files      3 suites   13m 24s ⏱️
150 tests 150 ✔️ 0 💤 0
151 runs  151 ✔️ 0 💤 0

Results for commit 590a670.

@github-actions
Copy link

github-actions bot commented Apr 6, 2023

Node: E2E Test Results

    1 files      1 suites   16m 46s ⏱️
308 tests 308 ✔️ 0 💤 0
326 runs  326 ✔️ 0 💤 0

Results for commit 590a670.

@Nana-EC Nana-EC added this to the v0.38.0 milestone Apr 6, 2023
@tinker-michaelj tinker-michaelj merged commit 059098b into develop Apr 11, 2023
14 of 18 checks passed
@tinker-michaelj tinker-michaelj deleted the revert-ckey-hash-code branch April 11, 2023 13:56
tinker-michaelj added a commit that referenced this pull request Apr 12, 2023
Signed-off-by: Michael Tinker <michael.tinker@swirldslabs.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

None yet

3 participants