-
Notifications
You must be signed in to change notification settings - Fork 4.6k
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
[Improvement][UT] Improve Worker registry coverage #15380
Conversation
2f1ae90
to
0ed1e8a
Compare
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
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 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! |
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? |
@@ -52,6 +53,16 @@ public class WorkerWaitingStrategy implements WorkerConnectStrategy { | |||
@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 |
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. |
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
Quality Gate passedThe SonarCloud Quality Gate passed, but some issues were introduced. 10 New issues |
Co-authored-by: fuchanghai <changhaifu@apache.org> Co-authored-by: Eric Gao <ericgao.apache@gmail.com> Co-authored-by: Rick Cheng <rickchengx@gmail.com> (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