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
Automated test focus / skip #2203
Comments
An easier way would be to panic in inv e2etest if no focus is provided, and print out the table of focus-es we need depending on the environment |
How do we go about this task? |
Hey @sbshah97 , I changed my mind when writing this, and instead of automation, we could go simpler and do the following
Something along the line of:
and so on. This should help first time contributors in understanding what should they do when they want to test MetalLB locally. |
@sbshah97 are you interested in working on this? Additionally, it would make sense to maintain / build the list of skips in a single configuration file that is used both by CI and by the aforemenitioned logic. |
Hi, @fedepaol! I am interested in working on this issue. I am a first-time contributor to MetalLB. As of my understanding after reading your above comments, running |
Nope, it should fail if you don't pass any skips
Basically, there are some tests that are relevant only for the bgp implementation (we have a native one, an FRR based one and soon an FRR-K8s based one). Some other are valid only for IPv4, or IPv6. Hope this helps |
Yep, this helps! So if I am executing the command If I am not using BGP mode, then the tests native, frr, and frr-k8s should be printed under the skipped tests. Correct me if I am wrong. My other doubt is: how can I check whether the user is using L2 or BGP mode? Should I check whether one of the custom resources |
Hi, @fedepaol! If this point is clear, I'll get started working on it. |
Is your feature request related to a problem?
A new contributor might find daunting that when we run e2e we run ALL The tests, whereas what we run depends on the bgp mode and on the ip family (and on having or not prometheus there).
Describe the solution you'd like
I envision a mode we run dev-env with that checks the bgp type, the ip family and what else and provides the right focuses.
This has to be an opt-in feature. We want the CI to run with specific focuses that are hardcoded and driven from outside to avoid starting to have volkswagen tests (https://github.com/auchenberg/volkswagen)
We should document this new mode and promote it as the default when developing locally.
Additional context
No response
I've read and agree with the following
The text was updated successfully, but these errors were encountered: