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(pd-store): intro Useless annotation & refactor and mark the failed tests in hg-pd-test #2480

Merged
merged 18 commits into from
Mar 19, 2024

Conversation

VGalaxies
Copy link
Contributor

@VGalaxies VGalaxies commented Mar 16, 2024

subtask of #2265

Some unused classes have been annotated with @Useless, while some temporarily failing tests have been annotated with @Ignore (some tests' @Test annotations have been commented out).

Copy link

codecov bot commented Mar 16, 2024

Codecov Report

Attention: Patch coverage is 0% with 4 lines in your changes are missing coverage. Please review.

❗ No coverage uploaded for pull request base (pd-store@d56ad10). Click here to learn what that means.

Files Patch % Lines
...in/java/org/apache/hugegraph/pd/ConfigService.java 0.00% 4 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##             pd-store    #2480   +/-   ##
===========================================
  Coverage            ?   56.85%           
  Complexity          ?     2149           
===========================================
  Files               ?      718           
  Lines               ?    58323           
  Branches            ?     7490           
===========================================
  Hits                ?    33157           
  Misses              ?    21917           
  Partials            ?     3249           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@@ -420,7 +425,7 @@ public void onPartitionRemoved(Metapb.Partition partition) {

}

// @Test
Copy link
Member

Choose a reason for hiding this comment

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

if a test is hard to ensure the meaning or currently we can't run it well, we could add @Ignore for it rather than comment @Test (so
that we could search ignore in future)

maybe we could also add a annotation @useless for other useless classes/method?

Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

license-eye has totally checked 1676 files.

Valid Invalid Ignored Fixed
1326 1 349 0
Click to see the invalid file list
  • hugegraph-pd/hg-pd-common/src/main/java/org/apache/hugegraph/pd/common/Useless.java

@VGalaxies VGalaxies changed the title fix(pd-store): fix pd service tests failure fix(pd-store): intro Useless annotation & fix pd service tests failure Mar 16, 2024
@VGalaxies VGalaxies changed the title fix(pd-store): intro Useless annotation & fix pd service tests failure fix(pd-store): intro Useless annotation & fix pd tests failure Mar 16, 2024
Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

license-eye has totally checked 1673 files.

Valid Invalid Ignored Fixed
1323 1 349 0
Click to see the invalid file list
  • hugegraph-pd/hg-pd-test/src/main/java/org/apache/hugegraph/pd/rest/PDRestSuiteTest.java

VGalaxies and others added 4 commits March 16, 2024 17:42
…rest/PDRestSuiteTest.java

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
@VGalaxies VGalaxies marked this pull request as ready for review March 16, 2024 09:58
@dosubot dosubot bot added the size:XXL This PR changes 1000+ lines, ignoring generated files. label Mar 16, 2024
@VGalaxies VGalaxies requested a review from imbajin March 16, 2024 09:58
@dosubot dosubot bot added bug Something isn't working ci-cd Build or deploy tests Add or improve test cases labels Mar 16, 2024
@VGalaxies VGalaxies changed the title fix(pd-store): intro Useless annotation & fix pd tests failure fix(pd-store): intro Useless annotation & mark the failed tests in pd-test Mar 16, 2024
@VGalaxies VGalaxies changed the title fix(pd-store): intro Useless annotation & mark the failed tests in pd-test fix(pd-store): intro Useless annotation & mark the failed tests in hg-pd-test Mar 16, 2024
@VGalaxies VGalaxies changed the title fix(pd-store): intro Useless annotation & mark the failed tests in hg-pd-test fix(pd-store): intro Useless annotation & refactor and mark the failed tests in hg-pd-test Mar 16, 2024
@VGalaxies VGalaxies requested a review from imbajin March 16, 2024 13:30
@dosubot dosubot bot added the lgtm This PR has been approved by a maintainer label Mar 19, 2024
@imbajin imbajin merged commit 67aba57 into pd-store Mar 19, 2024
16 of 17 checks passed
@imbajin imbajin deleted the fix-pd-test branch March 19, 2024 07:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working ci-cd Build or deploy lgtm This PR has been approved by a maintainer pd PD module size:XXL This PR changes 1000+ lines, ignoring generated files. tests Add or improve test cases
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants