-
Notifications
You must be signed in to change notification settings - Fork 5k
[Improvement][UT] Improve Worker registry coverage #15380
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
Conversation
2f1ae90 to
0ed1e8a
Compare
EricGao888
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Basically LGTM
...va/org/apache/dolphinscheduler/server/worker/registry/WorkerConnectionStateListenerTest.java
Show resolved
Hide resolved
7ca4e2d to
b56f25a
Compare
...ker/src/test/java/org/apache/dolphinscheduler/server/worker/registry/WorkerStrategyTest.java
Show resolved
Hide resolved
d1ffb08 to
55b2d16
Compare
ruanwenjun
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good job, wait fix the spotless.
| import java.util.Optional; | ||
|
|
||
| import org.junit.jupiter.api.Assertions; | ||
| import org.junit.Assert; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please use Assertions.
8617e0a to
a3e64df
Compare
|
hi @pegasas should we create a new issue associated with this PR @EricGao888 and add this issue to #10573? |
This may be more reliable. |
a3e64df to
73ae07d
Compare
|
As CI output said, you could run 'mvn spotless:apply' to fix these style violations. |
51bc8dd to
c000aaf
Compare
Thanks @EricGao888! |
EricGao888
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM if CI passes
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## dev #15380 +/- ##
============================================
+ Coverage 38.36% 38.53% +0.16%
- Complexity 4744 4770 +26
============================================
Files 1305 1305
Lines 44830 44838 +8
Branches 4803 4805 +2
============================================
+ Hits 17200 17278 +78
+ Misses 25759 25684 -75
- Partials 1871 1876 +5 ☔ View full report in Codecov by Sentry. |
|
Hi, @ruanwenjun , @SbloodyS , It seems other gated passed, would you like to take a look when anytime available? |
| @Autowired | ||
| private WorkerTaskExecutorThreadPool workerManagerThread; | ||
|
|
||
| public WorkerWaitingStrategy(@NonNull WorkerConfig workerConfig, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
|
Hi, @pegasas please resolve the conflicts |
Thanks @rickchengx , I've update my PR with merging conflicts. |
|
Hi, @pegasas there is still an unresolved comment from @fuchanghai, please check |
thanks @rickchengx |
rickchengx
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
|
will merge tomorrow if no more comments |
|
CI failures seem not related to the changes. I've restarted it and let's see whether it could pass this time. |
fuchanghai
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
|
Co-authored-by: fuchanghai <[email protected]> Co-authored-by: Eric Gao <[email protected]> Co-authored-by: Rick Cheng <[email protected]> (cherry picked from commit 69676b4)


Purpose of the pull request
part of #10573
try to resolve #15396
Improve worker registry coverage above 85%
Brief change log
Improve worker registry coverage above 85%
Verify this pull request