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

Info: Do not just add a e2e test #168

Closed
hzxuzhonghu opened this issue May 15, 2019 · 15 comments
Closed

Info: Do not just add a e2e test #168

hzxuzhonghu opened this issue May 15, 2019 · 15 comments
Assignees
Labels
kind/feature Categorizes issue or PR as related to a new feature. lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. priority/high

Comments

@hzxuzhonghu
Copy link
Collaborator

For small features or bug fixes, if it can be tested by a UT, do not add e2e again.

As one e2e case can cause 20+ seconds, it will make the CI takes more time.

@TommyLike
Copy link
Contributor

@hzxuzhonghu would you help on setting up the UT framework and moving some of the them?

@k82cn k82cn added this to the v0.2 milestone May 15, 2019
@k82cn
Copy link
Member

k82cn commented May 15, 2019

/kind feature
/priority high

@volcano-sh-bot volcano-sh-bot added kind/feature Categorizes issue or PR as related to a new feature. priority/high labels May 15, 2019
@hzxuzhonghu
Copy link
Collaborator Author

@hzxuzhonghu would you help on setting up the UT framework and moving some of the them?

sure, but i have been working on other stuff these days. May have bandwidth in the middle of next week.

@k82cn
Copy link
Member

k82cn commented May 16, 2019

/assign @asifdxtreme , please help on that.

@asifdxtreme
Copy link
Contributor

/cc @thandayuthapani start writing a basic and generic framework which can be used through out the project , you can start with job package for now

@thandayuthapani
Copy link
Contributor

thandayuthapani commented Jun 17, 2019

Have written UT cases for two files in Job package, ref #201 & #213
Files in Job package

  • job_controller_plugins
  • job_controller_handler
  • job_controller_actions

@thandayuthapani
Copy link
Contributor

thandayuthapani commented Jun 19, 2019

UT for other packages are to be added, listing out other packages to which UT cases to be added.

  • pkg/cli
  • pkg/controllers/queue
  • pkg/controllers/garbagecollector
  • pkg/controllers/apis
  • pkg/controllers/cache
  • pkg/controllers/job/state

@k82cn
Copy link
Member

k82cn commented Jun 24, 2019

@thandayuthapani , please also help to provide code coverage of each package :)

@asifdxtreme
Copy link
Contributor

UT has been added for all the packages and the current coverage for UT is around 61%, In my opinion we can go ahead and close this issue

@hzxuzhonghu
Copy link
Collaborator Author

Can we remove some e2e cases, which is already covered by e2e?

@asifdxtreme
Copy link
Contributor

Can we remove some e2e cases, which is already covered by e2e?

We went through all E2E test case, In our opinion all are required as of now, the test scenarios for UT are restricted to a particular functions/methods whereas E2E is tesing the complete flow for each scenario, so the both have different scope while testing. Going ahead we need to add more E2E's to cover all scenario, I don't think so we can reduce the E2E.

@TommyLike
Copy link
Contributor

@asifdxtreme I am wondering whether we need keeping the case of MPI, since all of the required features have been (or should) tested separately in different cases. the downloading and loading mpi images also consume some time.

• [SLOW TEST:16.254 seconds]
MPI E2E Test
/home/travis/gopath/src/volcano.sh/volcano/test/e2e/mpi.go:26
  will run and complete finally
  /home/travis/gopath/src/volcano.sh/volcano/test/e2e/mpi.go:27
------------------------------
Status: Downloaded newer image for volcanosh/example-mpi:0.0.1
Loading docker images into kind cluster

@asifdxtreme
Copy link
Contributor

@asifdxtreme I am wondering whether we need keeping the case of MPI, since all of the required features have been (or should) tested separately in different cases. the downloading and loading mpi images also consume some time.

• [SLOW TEST:16.254 seconds]
MPI E2E Test
/home/travis/gopath/src/volcano.sh/volcano/test/e2e/mpi.go:26
  will run and complete finally
  /home/travis/gopath/src/volcano.sh/volcano/test/e2e/mpi.go:27
------------------------------
Status: Downloaded newer image for volcanosh/example-mpi:0.0.1
Loading docker images into kind cluster

One E2E with real example should defintely be there, we can find other options for MPI etc.. which takes lesser time to finish the test.

@k82cn k82cn modified the milestones: v0.2, v0.3 Sep 11, 2019
@k82cn k82cn removed this from the v0.3 milestone Dec 19, 2019
@k82cn k82cn modified the milestones: v0.4, future-release Dec 19, 2019
@stale
Copy link

stale bot commented Aug 18, 2020

Hello 👋 Looks like there was no activity on this issue for last 90 days.
Do you mind updating us on the status? Is this still reproducible or needed? If yes, just comment on this PR or push a commit. Thanks! 🤗
If there will be no activity for 60 days, this issue will be closed (we can always reopen an issue if we need!).

@stale stale bot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Aug 18, 2020
@stale
Copy link

stale bot commented Oct 17, 2020

Closing for now as there was no activity for last 60 days after marked as stale, let us know if you need this to be reopened! 🤗

@stale stale bot closed this as completed Oct 17, 2020
@k82cn k82cn removed this from the roadmap milestone Apr 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/feature Categorizes issue or PR as related to a new feature. lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. priority/high
Projects
None yet
Development

No branches or pull requests

6 participants