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

fix: 175 CompareTo Generation fails if fields include underscores #177

Merged
merged 1 commit into from
Jan 19, 2024

Conversation

jsync-swirlds
Copy link
Member

@jsync-swirlds jsync-swirlds commented Jan 19, 2024

  • Adjusted ModelGenerator to use field name instead of nameCamelFirstLower when filtering comparable fields.
  • Added an abbreviated stack trace for exceptions when compiling proto files, to help debug future issues like this.
  • Modified comparable.proto in integration tests, renaming bytes bytes to bytes test_bytes to prevent regression.
  • Modified the spotless conventions to allow Java 21 to be used

Fixes: #175

Copy link

github-actions bot commented Jan 19, 2024

JUnit Test Report

     47 files  ±0       47 suites  ±0   3m 31s ⏱️ ±0s
1 115 tests ±0  1 114 ✔️ ±0    1 💤 ±0  0 ±0 
6 970 runs  ±0  6 952 ✔️ ±0  18 💤 ±0  0 ±0 

Results for commit e1c8156. ± Comparison against base commit 377ec5c.

♻️ This comment has been updated with latest results.

Copy link
Contributor

codacy-production bot commented Jan 19, 2024

Coverage summary from Codacy

See diff coverage on Codacy

Coverage variation Diff coverage
-0.06% (target: -1.00%) 0.00%
Coverage variation details
Coverable lines Covered lines Coverage
Common ancestor commit (377ec5c) 4244 1899 44.75%
Head commit (e1c8156) 4249 (+5) 1899 (+0) 44.69% (-0.06%)

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 (#177) 6 0 0.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

You may notice some variations in coverage metrics with the latest Coverage engine update. For more details, visit the documentation

Copy link

github-actions bot commented Jan 19, 2024

Integration Test Report

     235 files  ±0       235 suites  ±0   5m 42s ⏱️ +59s
87 146 tests ±0  87 146 ✔️ ±0  0 💤 ±0  0 ±0 
87 374 runs  ±0  87 374 ✔️ ±0  0 💤 ±0  0 ±0 

Results for commit e1c8156. ± Comparison against base commit 377ec5c.

♻️ This comment has been updated with latest results.

* Adjusted ModelGenerator to use field `name` instead of `nameCamelFirstLower` when filtering comparable fields.
* Added an abbreviated stack trace for exceptions when compiling proto files, to help debug future issues like this.
* Modified comparable.proto in integration tests, renaming `bytes bytes` to `bytes test_bytes` to prevent regression.
* Modified the spotless conventions to allow Java 21 to be used

Signed-off-by: Joseph Sinclair <[email protected]>
@jsync-swirlds jsync-swirlds force-pushed the 00175-fix-CompareTo-Generation branch from 2b62291 to e1c8156 Compare January 19, 2024 19:55
@jsync-swirlds jsync-swirlds marked this pull request as ready for review January 19, 2024 20:00
@jsync-swirlds jsync-swirlds merged commit 31f701d into main Jan 19, 2024
9 of 10 checks passed
@jsync-swirlds jsync-swirlds deleted the 00175-fix-CompareTo-Generation branch January 19, 2024 20:44
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.

CompareTo Generation fails if fields include underscores
2 participants