dragonflyoss / Dragonfly2

Dragonfly is an open source P2P-based file distribution and image acceleration system. It is hosted by the Cloud Native Computing Foundation (CNCF) as an Incubating Level Project.
https://d7y.io
Apache License 2.0
2.29k stars 292 forks source link

feat: implement upload persistent cache task #3620

Closed gaius-qi closed 4 weeks ago

gaius-qi commented 4 weeks ago

Description

Related Issue

Motivation and Context

Screenshots (if appropriate)

Types of changes

Checklist

codecov[bot] commented 4 weeks ago

Codecov Report

Attention: Patch coverage is 8.78378% with 135 lines in your changes missing coverage. Please review.

Project coverage is 35.47%. Comparing base (58959be) to head (97021f6). Report is 3 commits behind head on main.

Files with missing lines Patch % Lines
scheduler/service/service_v2.go 0.00% 115 Missing :warning:
scheduler/resource/persistentcache/peer.go 0.00% 10 Missing :warning:
scheduler/resource/persistentcache/task.go 0.00% 5 Missing :warning:
scheduler/resource/persistentcache/peer_manager.go 0.00% 3 Missing :warning:
scheduler/resource/persistentcache/task_manager.go 0.00% 2 Missing :warning:
Additional details and impacted files [![Impacted file tree graph](https://app.codecov.io/gh/dragonflyoss/Dragonfly2/pull/3620/graphs/tree.svg?width=650&height=150&src=pr&token=PUICJYSAT7&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=dragonflyoss)](https://app.codecov.io/gh/dragonflyoss/Dragonfly2/pull/3620?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=dragonflyoss) ```diff @@ Coverage Diff @@ ## main #3620 +/- ## ========================================== - Coverage 35.60% 35.47% -0.13% ========================================== Files 335 335 Lines 37389 37509 +120 ========================================== - Hits 13311 13308 -3 - Misses 23237 23359 +122 - Partials 841 842 +1 ``` | [Flag](https://app.codecov.io/gh/dragonflyoss/Dragonfly2/pull/3620/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=dragonflyoss) | Coverage Δ | | |---|---|---| | [unittests](https://app.codecov.io/gh/dragonflyoss/Dragonfly2/pull/3620/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=dragonflyoss) | `35.47% <8.78%> (-0.13%)` | :arrow_down: | Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=dragonflyoss#carryforward-flags-in-the-pull-request-comment) to find out more. | [Files with missing lines](https://app.codecov.io/gh/dragonflyoss/Dragonfly2/pull/3620?dropdown=coverage&src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=dragonflyoss) | Coverage Δ | | |---|---|---| | [scheduler/resource/standard/peer.go](https://app.codecov.io/gh/dragonflyoss/Dragonfly2/pull/3620?src=pr&el=tree&filepath=scheduler%2Fresource%2Fstandard%2Fpeer.go&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=dragonflyoss#diff-c2NoZWR1bGVyL3Jlc291cmNlL3N0YW5kYXJkL3BlZXIuZ28=) | `71.83% <100.00%> (ø)` | | | [scheduler/resource/standard/task.go](https://app.codecov.io/gh/dragonflyoss/Dragonfly2/pull/3620?src=pr&el=tree&filepath=scheduler%2Fresource%2Fstandard%2Ftask.go&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=dragonflyoss#diff-c2NoZWR1bGVyL3Jlc291cmNlL3N0YW5kYXJkL3Rhc2suZ28=) | `78.83% <100.00%> (ø)` | | | [scheduler/resource/persistentcache/task\_manager.go](https://app.codecov.io/gh/dragonflyoss/Dragonfly2/pull/3620?src=pr&el=tree&filepath=scheduler%2Fresource%2Fpersistentcache%2Ftask_manager.go&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=dragonflyoss#diff-c2NoZWR1bGVyL3Jlc291cmNlL3BlcnNpc3RlbnRjYWNoZS90YXNrX21hbmFnZXIuZ28=) | `0.00% <0.00%> (ø)` | | | [scheduler/resource/persistentcache/peer\_manager.go](https://app.codecov.io/gh/dragonflyoss/Dragonfly2/pull/3620?src=pr&el=tree&filepath=scheduler%2Fresource%2Fpersistentcache%2Fpeer_manager.go&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=dragonflyoss#diff-c2NoZWR1bGVyL3Jlc291cmNlL3BlcnNpc3RlbnRjYWNoZS9wZWVyX21hbmFnZXIuZ28=) | `0.00% <0.00%> (ø)` | | | [scheduler/resource/persistentcache/task.go](https://app.codecov.io/gh/dragonflyoss/Dragonfly2/pull/3620?src=pr&el=tree&filepath=scheduler%2Fresource%2Fpersistentcache%2Ftask.go&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=dragonflyoss#diff-c2NoZWR1bGVyL3Jlc291cmNlL3BlcnNpc3RlbnRjYWNoZS90YXNrLmdv) | `0.00% <0.00%> (ø)` | | | [scheduler/resource/persistentcache/peer.go](https://app.codecov.io/gh/dragonflyoss/Dragonfly2/pull/3620?src=pr&el=tree&filepath=scheduler%2Fresource%2Fpersistentcache%2Fpeer.go&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=dragonflyoss#diff-c2NoZWR1bGVyL3Jlc291cmNlL3BlcnNpc3RlbnRjYWNoZS9wZWVyLmdv) | `0.00% <0.00%> (ø)` | | | [scheduler/service/service\_v2.go](https://app.codecov.io/gh/dragonflyoss/Dragonfly2/pull/3620?src=pr&el=tree&filepath=scheduler%2Fservice%2Fservice_v2.go&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=dragonflyoss#diff-c2NoZWR1bGVyL3NlcnZpY2Uvc2VydmljZV92Mi5nbw==) | `66.66% <0.00%> (-6.32%)` | :arrow_down: | ... and [1 file with indirect coverage changes](https://app.codecov.io/gh/dragonflyoss/Dragonfly2/pull/3620/indirect-changes?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=dragonflyoss)