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

[good first issue]enrich the unit-test for some package #3053

Closed
6 of 7 tasks
lowang-bh opened this issue Aug 14, 2023 · 20 comments
Closed
6 of 7 tasks

[good first issue]enrich the unit-test for some package #3053

lowang-bh opened this issue Aug 14, 2023 · 20 comments
Assignees
Labels
good first issue Denotes an issue ready for a new contributor, according to the "help wanted" guidelines. help wanted Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines. kind/feature Categorizes issue or PR as related to a new feature.

Comments

@lowang-bh
Copy link
Member

lowang-bh commented Aug 14, 2023

What would you like to be added:

There are many packages which don't have unit-test, such as:

  • actions:

    • enqueue
    • backfill
  • plugins:

    • gang
    • extender
    • overcommit
    • resourcequota
    • usage
  • others, include some PRs:

UTs should include positive cases and reverse cases.

Why is this needed:

  1. to avoid future changes impacting those function, and make code more strong

Benefits

  1. you can familiar with the coding logic and get started with volcano

how to assign

assign only one package to yourself in each pr.

@lowang-bh lowang-bh added the kind/feature Categorizes issue or PR as related to a new feature. label Aug 14, 2023
@lowang-bh
Copy link
Member Author

lowang-bh commented Aug 14, 2023

/good first issue
/help wanted

@Subhasish-Behera
Copy link

/assign

@Subhasish-Behera
Copy link

@lowang-bh I would like to work on unit-tests for resourcequota

@rayoluo
Copy link
Contributor

rayoluo commented Aug 15, 2023

/assign

@rayoluo
Copy link
Contributor

rayoluo commented Aug 15, 2023

@lowang-bh I would like to work on the rest unit-tests

@hzq5477
Copy link

hzq5477 commented Oct 8, 2023

/assign

@lowang-bh
Copy link
Member Author

@Subhasish-Behera @rayoluo Any updates on this issue?

@Subhasish-Behera
Copy link

@lowang-bh Just filed a PR for the resourcequota plugin. any feedback about the PR is welcome.

(cc @william-wang @Monokaix )

@lowang-bh
Copy link
Member Author

Now we can use the base UT lib in #3343 to do the test.
Examples shows at PR #3340 #3341 #3342

@lowang-bh
Copy link
Member Author

/good-first-issue

@volcano-sh-bot
Copy link
Contributor

@lowang-bh:
This request has been marked as suitable for new contributors.

Please ensure the request meets the requirements listed here.

If this request no longer meets these requirements, the label can be removed
by commenting with the /remove-good-first-issue command.

In response to this:

/good-first-issue

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@volcano-sh-bot volcano-sh-bot added good first issue Denotes an issue ready for a new contributor, according to the "help wanted" guidelines. help wanted Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines. labels Apr 8, 2024
@googs1025
Copy link
Member

/assign

@googs1025
Copy link
Member

@lowang-bh Hello, may I ask if this will allocate a specific part?

@lowang-bh
Copy link
Member Author

@lowang-bh Hello, may I ask if this will allocate a specific part?

Welcome! You can work on those packages which have no UTs covered.

@MondayCha
Copy link

MondayCha commented Apr 17, 2024

@googs1025 Hello, I'm currently looking into Issue #3075 and noticed that there's some overlap with current Issue regarding enqueue and backfill.

I was wondering if you're planning to address these actions in a future PR?

@googs1025
Copy link
Member

@MondayCha Hi, hello, I am currently working on other packages. You can work on the action package.

@googs1025
Copy link
Member

@MondayCha hi, Are you still working on this?

@MondayCha
Copy link

@MondayCha hi, Are you still working on this?

Sorry I haven't started yet. I'm still trying to understand the relevant code and might attempt it next week.

If you need to do enqueue and backfill, I will avoid it.

@lowang-bh
Copy link
Member Author

lowang-bh commented Jun 4, 2024

/close

@JesseStutler
Copy link
Contributor

JesseStutler commented Sep 23, 2024

Maybe need to refactor the current implementation of building pod, priorityclass, queue...? See here: #3075 (comment), current function like BuildPod's scalability is not so good, maybe to refactor implementation like in k8s repository in the future? https://github.com/kubernetes/kubernetes/blob/master/pkg/controller/job/job_controller_test.go#L7791-L7821

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Denotes an issue ready for a new contributor, according to the "help wanted" guidelines. help wanted Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines. kind/feature Categorizes issue or PR as related to a new feature.
Projects
None yet
8 participants