Skip to content
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 autonomy manager #2033

Merged
merged 22 commits into from
Jul 11, 2024
Merged

Conversation

vie-serendipity
Copy link
Contributor

chore: gci write

chore: add parameter

fix: run autonomy manager asynchronously

fix: disable autonomy manager if it's a cloud node

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:

Supplement autonomy ability.

Which issue(s) this PR fixes:

Fixes #

Special notes for your reviewer:

Does this PR introduce a user-facing change?


other Note

@rambohe-ch
Copy link
Member

@vie-serendipity Thanks for posting this pull request. it is ready for reviewing or not?

@vie-serendipity
Copy link
Contributor Author

@rambohe-ch I think it's ready for review, I just need to modify and add more tests.

@vie-serendipity vie-serendipity marked this pull request as ready for review April 26, 2024 09:43
Copy link

codecov bot commented Apr 28, 2024

Codecov Report

Attention: Patch coverage is 66.31579% with 96 lines in your changes missing coverage. Please review.

Project coverage is 56.37%. Comparing base (3713163) to head (eb9b2ef).
Report is 13 commits behind head on master.

Files Patch % Lines
pkg/yurthub/proxy/autonomy/autonomy.go 55.76% 36 Missing and 10 partials ⚠️
pkg/yurthub/cachemanager/error_keys.go 79.85% 19 Missing and 8 partials ⚠️
pkg/yurthub/cachemanager/cache_manager.go 44.44% 14 Missing and 1 partial ⚠️
pkg/yurthub/util/util.go 66.66% 3 Missing and 3 partials ⚠️
pkg/yurthub/proxy/local/faketoken.go 0.00% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #2033      +/-   ##
==========================================
+ Coverage   56.09%   56.37%   +0.27%     
==========================================
  Files         186      188       +2     
  Lines       18092    18328     +236     
==========================================
+ Hits        10149    10332     +183     
- Misses       6910     6943      +33     
- Partials     1033     1053      +20     
Flag Coverage Δ
unittests 56.37% <66.31%> (+0.27%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@vie-serendipity
Copy link
Contributor Author

/rerun

@vie-serendipity
Copy link
Contributor Author

/rerun

Copy link

sonarcloud bot commented Jun 6, 2024

Quality Gate Passed Quality Gate passed

Issues
2 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

@rambohe-ch
Copy link
Member

@vie-serendipity please fix the conflicting files.

@vie-serendipity
Copy link
Contributor Author

/rerun

@vie-serendipity
Copy link
Contributor Author

/rerun

@vie-serendipity
Copy link
Contributor Author

/rerun

@vie-serendipity vie-serendipity changed the title feat: add autonomy controller and autonomy manager feat: add autonomy manager Jul 10, 2024
@vie-serendipity vie-serendipity force-pushed the feat/autonomy branch 2 times, most recently from 3248ec7 to fef58c3 Compare July 11, 2024 08:18
@rambohe-ch rambohe-ch added approved approved lgtm lgtm labels Jul 11, 2024
@rambohe-ch
Copy link
Member

/LGTM

@rambohe-ch rambohe-ch merged commit 7ec6485 into openyurtio:master Jul 11, 2024
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved approved lgtm lgtm
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants