openyurtio / openyurt

OpenYurt - Extending your native Kubernetes to edge(project under CNCF)
https://openyurt.io
Apache License 2.0
1.69k stars 398 forks source link

fix: upload autonomy status correctly #2096

Closed vie-serendipity closed 1 month ago

vie-serendipity commented 1 month ago

What type of PR is this?

Uncomment only one /kind <> line, hit enter to put that in a new line, and remove leading whitespace from that line: /kind bug /kind documentation /kind enhancement /kind good-first-issue /kind feature /kind question /kind design /sig ai /sig iot /sig network /sig storage

/kind feature

What this PR does / why we need it:

Which issue(s) this PR fixes:

Fixes #

Special notes for your reviewer:

Does this PR introduce a user-facing change?

other Note

codecov[bot] commented 1 month ago

Codecov Report

Attention: Patch coverage is 50.72464% with 34 lines in your changes missing coverage. Please review.

Project coverage is 56.36%. Comparing base (3713163) to head (cbd2eaf). Report is 16 commits behind head on master.

Files Patch % Lines
pkg/yurthub/cachemanager/storage_wrapper.go 50.00% 21 Missing and 3 partials :warning:
pkg/yurthub/cachemanager/cache_manager.go 20.00% 4 Missing :warning:
pkg/yurthub/storage/disk/storage.go 66.66% 3 Missing :warning:
pkg/yurthub/storage/etcd/storage.go 0.00% 2 Missing :warning:
pkg/yurthub/proxy/autonomy/autonomy.go 66.66% 1 Missing :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #2096 +/- ## ========================================== + Coverage 56.09% 56.36% +0.26% ========================================== Files 186 188 +2 Lines 18092 18341 +249 ========================================== + Hits 10149 10337 +188 - Misses 6910 6950 +40 - Partials 1033 1054 +21 ``` | [Flag](https://app.codecov.io/gh/openyurtio/openyurt/pull/2096/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=openyurtio) | Coverage Δ | | |---|---|---| | [unittests](https://app.codecov.io/gh/openyurtio/openyurt/pull/2096/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=openyurtio) | `56.36% <50.72%> (+0.26%)` | :arrow_up: | 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=openyurtio#carryforward-flags-in-the-pull-request-comment) to find out more.

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

rambohe-ch commented 1 month ago

/LGTM