karmada-io / karmada

Open, Multi-Cloud, Multi-Cluster Kubernetes Orchestration
https://karmada.io
Apache License 2.0
4.37k stars 865 forks source link

[lfx-mentorship-2024-September-November] Enhance Karmada controller-manager and schedule testing coverage #5235

Closed XiShanYongYe-Chang closed 5 days ago

XiShanYongYe-Chang commented 1 month ago

CNCF LFX mentorship https://github.com/cncf/mentoring/blob/main/programs/lfx-mentorship/2024/03-Sep-Nov/README.md

Mentor: @XiShanYongYe-Chang

What would you like to be added:

Karmada would like to improve the UT coverage of the code to better maintain the quality of the code and reduce the introduction of defects.

Increase the UT coverage rate to 50% to 60% (currently, the UT coverage rate is 28.26% ).

The entire Karmada repository is a bit large for one project, so we will split it into two projects. The current project needs to improve UT coverage in the following directory:

pkg/controllers
pkg/dependenciesdistributor
pkg/descheduler
pkg/detector
pkg/estimator
pkg/scheduler
pkg/resourceinterpreter
pkg/util

The above directories mainly contain the karmada-controller-manager and karmada-scheduler components of Karmada.

I hope that the students who apply for this project can give the UT coverage rate of each directory plan to achieve, we will move towards these specific goals.

Why is this needed:

yashpandey06 commented 1 month ago

Hey @XiShanYongYe-Chang ,hey looks like a great learning ground for me ,I would like to contribute to this issue under LFX Mentorship program.

Harsh4902 commented 1 month ago

@XiShanYongYe-Chang I want to work on this. Can you provide some pretests?

XiShanYongYe-Chang commented 1 month ago

Just for reference: We can get the code coverage of different files under the current master branch from here.

mani1911 commented 4 weeks ago

Hey @XiShanYongYe-Chang this seems apt for me to learn and I would love to contribute to this

XiShanYongYe-Chang commented 3 weeks ago

Hello everyone, thank you all very much for your active contributions, the Karmada community warmly welcomes everyone to participate in open-source contributions. You can see that the number of our LFX project spots is less than the number of applicants, which means that the final number of selected participants will be quite small. However, I hope everyone can understand that this is not because you are not good enough. On the contrary, being able to actively participate in open-source contributions, you are all very excellent. Therefore, even if you are not selected for this LFX event in the end, please don't be disappointed. There will still be LFX events to apply for in the future, and I hope everyone can continue to participate and pay attention to the Karmada community.

XiShanYongYe-Chang commented 2 weeks ago

/reopen

karmada-bot commented 2 weeks ago

@XiShanYongYe-Chang: Reopened this issue.

In response to [this](https://github.com/karmada-io/karmada/issues/5235#issuecomment-2303559816): >/reopen Instructions for interacting with me using PR comments are available [here](https://git.k8s.io/community/contributors/guide/pull-requests.md). If you have questions or suggestions related to my behavior, please file an issue against the [kubernetes-sigs/prow](https://github.com/kubernetes-sigs/prow/issues/new?title=Prow%20issue:) repository.
XiShanYongYe-Chang commented 5 days ago

This task will be tracked by #5470 Thanks all. /close

karmada-bot commented 5 days ago

@XiShanYongYe-Chang: Closing this issue.

In response to [this](https://github.com/karmada-io/karmada/issues/5235#issuecomment-2323932012): >This task will be tracked by #5470 >Thanks all. >/close Instructions for interacting with me using PR comments are available [here](https://git.k8s.io/community/contributors/guide/pull-requests.md). If you have questions or suggestions related to my behavior, please file an issue against the [kubernetes-sigs/prow](https://github.com/kubernetes-sigs/prow/issues/new?title=Prow%20issue:) repository.