-
Notifications
You must be signed in to change notification settings - Fork 304
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
feat: add traffic type of peer task download duration #2349
Conversation
Codecov Report
@@ Coverage Diff @@
## main #2349 +/- ##
==========================================
+ Coverage 49.71% 49.76% +0.05%
==========================================
Files 148 148
Lines 19640 19644 +4
==========================================
+ Hits 9764 9776 +12
+ Misses 9265 9255 -10
- Partials 611 613 +2
Flags with carried forward coverage won't be shown. Click here to find out more.
|
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 remove the changes in the scheduler/service/service_v2.go
. I will finish it.
f98e9c0
to
d579a51
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.
LGTM
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
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.
Fix unit testing.
2023-05-15T07:22:43.5857994Z --- FAIL: TestServiceV2_handleDownloadPeerFinishedRequest (0.00s)
2023-05-15T07:22:43.5858403Z --- PASS: TestServiceV2_handleDownloadPeerFinishedRequest/peer_can_not_be_loaded (0.00s)
2023-05-15T07:22:43.5858899Z --- PASS: TestServiceV2_handleDownloadPeerFinishedRequest/peer_state_is_PeerStateSucceeded (0.00s)
2023-05-15T07:22:43.5859335Z --- FAIL: TestServiceV2_handleDownloadPeerFinishedRequest/peer_state_is_PeerStateRunning (0.00s)
2023-05-15T07:22:43.5859633Z panic: inconsistent label cardinality: expected 6 label values but got 5 in []string{"LEVEL0", "DFDAEMON", "d7y", "foo", "normal"} [recovered]
2023-05-15T07:22:43.5859958Z panic: inconsistent label cardinality: expected 6 label values but got 5 in []string{"LEVEL0", "DFDAEMON", "d7y", "foo", "normal"} [recovered]
2023-05-15T07:22:43.5860256Z panic: inconsistent label cardinality: expected 6 label values but got 5 in []string{"LEVEL0", "DFDAEMON", "d7y", "foo", "normal"}
It failed the service v2's unit test, it seems that if the service v2's logic is not modified, it will be affected |
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: li.tianxi <[email protected]>
feat: add traffic type of peer task download duration