kubernetes / kubernetes

Production-Grade Container Scheduling and Management
https://kubernetes.io
Apache License 2.0
109.68k stars 39.28k forks source link

Investigate improving Job integration test runtime by reusing the api server #126225

Open mimowo opened 1 month ago

mimowo commented 1 month ago

This is a spin off from https://github.com/kubernetes/kubernetes/issues/126202 as there are still some tests which spawn api server per test case (which takes around 2s). Example https://github.com/kubernetes/kubernetes/blob/dda657b5982e8f9102b8df5931344262b0793163/test/integration/job/job_test.go#L431-L432

The idea is to spawn a single API server, and to avoid Job / pod name collisions use a unique suffix per test case (say test case index).

/sig apps

k8s-ci-robot commented 1 month ago

This issue is currently awaiting triage.

If a SIG or subproject determines this is a relevant issue, they will accept it by applying the triage/accepted label and provide further guidance.

The triage/accepted label can be added by org members by writing /triage accepted in a comment.

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.
mimowo commented 1 month ago

/cc @kaisoz @dejanzele

mimowo commented 1 month ago

/cc @alculquicondor

kaisoz commented 1 month ago

I could take care of this if that's ok for you guys? @mimowo @alculquicondor @dejanzele ?

dejanzele commented 1 month ago

Feel free to take it @kaisoz, you can assign me for initial review

kaisoz commented 1 month ago

/assign

Thanks!