apache / incubator-hugegraph-computer

HugeGraph Computer - A distributed graph processing system for hugegraph (OLAP)
https://hugegraph.apache.org/docs/quickstart/hugegraph-computer/
Apache License 2.0
42 stars 41 forks source link

feat: use 'foreground' delete policy to cancel k8s job #290

Closed qwtsc closed 9 months ago

qwtsc commented 9 months ago

Purpose of the PR

Main Changes

Verifying these changes

Does this PR potentially affect the following parts?

Documentation Status

coderzc commented 9 months ago
image

It seems Enum already overrides write toString

javeme commented 9 months ago

maybe we need to implement DefaultJobState.toString()?

qwtsc commented 9 months ago

maybe we need to implement DefaultJobState.toString()?

Done, and I have found the issue that blocked the minikube test. please review the latest changed files.

codecov[bot] commented 9 months ago

Codecov Report

Attention: 10 lines in your changes are missing coverage. Please review.

Comparison is base (ff85e34) 85.03% compared to head (1133673) 85.07%. Report is 3 commits behind head on master.

Files Patch % Lines
...egraph/computer/algorithm/sampling/RandomWalk.java 92.06% 2 Missing and 3 partials :warning:
...thm/centrality/betweenness/BetweennessMessage.java 0.00% 2 Missing :warning:
.../algorithm/community/cc/ClusteringCoefficient.java 0.00% 0 Missing and 1 partial :warning:
...computer/algorithm/sampling/RandomWalkMessage.java 94.11% 1 Missing :warning:
...che/hugegraph/computer/driver/DefaultJobState.java 75.00% 0 Missing and 1 partial :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #290 +/- ## ============================================ + Coverage 85.03% 85.07% +0.03% - Complexity 3246 3278 +32 ============================================ Files 345 349 +4 Lines 12298 12411 +113 Branches 1102 1113 +11 ============================================ + Hits 10458 10559 +101 - Misses 1315 1320 +5 - Partials 525 532 +7 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

javeme commented 9 months ago

thanks and could give more context about the issue/bug?

it may be this issue: https://github.com/apache/incubator-hugegraph-computer/pull/287#discussion_r1403393492

qwtsc commented 9 months ago

I still can't find the root cause. Let's keep this PR open for another two or three days. If it's still mysterious to me, we can append it to PR #287.

qwtsc commented 9 months ago

@coderzc @javeme @imbajin I finally find the actual reason.

imbajin commented 9 months ago

CI error https://github.com/apache/incubator-hugegraph-computer/actions/runs/7013868991/job/19080685026?pr=290

image

retry

image

https://github.com/apache/incubator-hugegraph-computer/blob/0c447be2c61a521fbe6cd5fc5f1273218ba268d3/computer-test/src/main/java/org/apache/hugegraph/computer/core/network/netty/NettyTransportClientTest.java#L316

BTW, the u could import the hugegraph-style.xml to avoid most of the align/import problems

qwtsc commented 9 months ago

BTW, the u could import the hugegraph-style.xml to avoid most of the align/import problems

Got it.

image I cannot repeat your failure, but it failed with another reason. I am concerned with the quality of test cases.

coderzc commented 9 months ago

@qwtsc Please correct the title of PR.

qwtsc commented 9 months ago

@qwtsc Please correct the title of PR.

done