kubeflow / manifests

A repository for Kustomize manifests
Apache License 2.0
808 stars 873 forks source link

Reorganize Kubeflow tests #2797

Open kromanow94 opened 3 months ago

kromanow94 commented 3 months ago

Validation Checklist

Version

master

Describe your issue

The tests for the Kubeflow Components are currently placed either in the GitHub Actions Workflow Templates or under the tests/gh-actions path, or under contrib in an unorganized manner. It's confusing and lacks organization. There should be well-organized place or alignment for the tests. Those should preferably run with a testing framework like pytest. If we were to improve this situation, we can start implementing a more robust and flexible test framework that can be simply run from GH Actions or in the user development environment.

To point a few tests that could be reorganized:

Additionally, some of the components lacks a proper e2e tests. Here is the list of GH Actions that performs sanity tests by just deploying the manifests on the cluster but are not providing any more insights than that:

Additionally, we could start using some nice utilities like pre-commit to automatically run some actions like linters, formatters, check if commit is signed and potentially more. Then, such a pre-commit configuration could be used both from the GH Actions and from the Developer Environment. These are the GH Actions that could benefit from this pattern:

This was recently touched upon here: 2795#discussion_r1674228094.

Steps to reproduce the issue

N/A

juliusvonkohout commented 3 months ago

Let's discuss this in the next kubeflow platform meeting :-)

juliusvonkohout commented 2 months ago

@hansinikarunarathne is also working on this and has a draft. Can we maybe merge both issues?

kromanow94 commented 2 months ago

@juliusvonkohout sounds like a good plan. I can share a few thoughts on where and how I think this should head. We can talk at the next KF Platform/Manifests WG Meeting.

juliusvonkohout commented 2 months ago

I think https://docs.google.com/document/d/1FSbGDPko3rZ77oU5F4xxDwGhzgfYbvq5kX-ZciUzaT4/edit?usp=sharing is the document from @hansinikarunarathne

juliusvonkohout commented 1 month ago

Reopen after merging https://github.com/kubeflow/manifests/pull/2805