Skip to content

chore: enhance a string of problems to pass CI#2321

Merged
imbajin merged 31 commits intoapache:pd-storefrom
VGalaxies:fix-ci
Oct 16, 2023
Merged

chore: enhance a string of problems to pass CI#2321
imbajin merged 31 commits intoapache:pd-storefrom
VGalaxies:fix-ci

Conversation

@VGalaxies
Copy link
Copy Markdown
Contributor

@VGalaxies VGalaxies commented Oct 9, 2023

Purpose of the PR

subtask of #2265

Ensure that the CI for the pd-store branch runs successfully.

Main Changes

  • fix license header (from fix: license check errors  #2303)
    • remove maven wrapper in pd and store
  • remove java 8 CI in ci.yml (not support java 8 in HugeGraph 1.5.0)
  • add pd-store.yml for pd, store, hstore UT
  • collect the test files from pd into the hg-pd-test module, the same for store
    • except for hg-pd-service, hg-store-node, hg-store-rocksdb

TODO

  • dependency-check (update the known-dependencies.txt file in hugegraph-server/hugegraph-dist/scripts/dependency/)
    • With the change in project structure, some scripts in hugegraph-server/hugegraph-dist may need to be relocated to the appropriate locations. 🤔
  • hugegraph-server/hugegraph-dist/src/assembly/jenkins/

Verifying these changes

  • Trivial rework / code cleanup without any test coverage. (No Need)
  • Already covered by existing tests, such as (please modify tests here).
  • Need tests and can be verified as follows:
    • CI

Does this PR potentially affect the following parts?

  • Nope
  • Dependencies (add/update license info)
  • Modify configurations
  • The public API
  • Other affects (typed here)

Documentation Status

  • Doc - TODO
  • Doc - Done
  • Doc - No Need

@codecov
Copy link
Copy Markdown

codecov bot commented Oct 10, 2023

Codecov Report

❗ No coverage uploaded for pull request base (pd-store@b670c01). Click here to learn what that means.
The diff coverage is n/a.

@@             Coverage Diff             @@
##             pd-store    #2321   +/-   ##
===========================================
  Coverage            ?   56.49%           
  Complexity          ?     2181           
===========================================
  Files               ?      700           
  Lines               ?    55741           
  Branches            ?     7144           
===========================================
  Hits                ?    31490           
  Misses              ?    21187           
  Partials            ?     3064           

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

object is not an instance of declaring class
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

why remove them? Non-maven user could use it to build maven project

However, we should only put one on the top of the project(and remove it for sub-module)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

This is because there is no similar wrapper for the hugegraph-server, and it might affect the license checker.

Will try to add it later.

Copy link
Copy Markdown
Member

@imbajin imbajin Oct 16, 2023

Choose a reason for hiding this comment

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

This is because there is no similar wrapper for the hugegraph-server, and it might affect the license checker.

Will try to add it later.

Yep, because the server module lack this function, could refer other apache project later (like license problem)

Better add a todo item in summary issue

Comment on lines +36 to +53
// @Test
public void testHashCode() {
int partCount = 10;
int partSize = PartitionUtils.MAX_VALUE / partCount + 1;
int[] counter = new int[partCount];
for (int i = 0; i < 10000; i++) {
String s = String.format("BATCH-GET-UNIT-%02d", i);
int c = PartitionUtils.calcHashcode(s.getBytes(StandardCharsets.UTF_8));

counter[c / partSize]++;

}

for (int i = 0; i < counter.length; i++) {
System.out.println(i + " " + counter[i]);
}
}
}
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

useful?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Migrated from the corresponding class in the testing directory of a sub-module under hugegraph-pd. Awaiting further adaptation in the next step.

@VGalaxies VGalaxies requested a review from imbajin October 15, 2023 15:11
Copy link
Copy Markdown
Member

@imbajin imbajin left a comment

Choose a reason for hiding this comment

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

we could fix 3rd-party problem together in the fixed version

@imbajin imbajin merged commit fe7697e into apache:pd-store Oct 16, 2023
@VGalaxies VGalaxies deleted the fix-ci branch October 16, 2023 08:04
@imbajin imbajin mentioned this pull request Nov 28, 2023
11 tasks
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.

2 participants