-
Notifications
You must be signed in to change notification settings - Fork 4.8k
WIP: openshift-tests: run tests using ginkgo for common setup #30259
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
base: main
Are you sure you want to change the base?
WIP: openshift-tests: run tests using ginkgo for common setup #30259
Conversation
Signed-off-by: Bryce Palmer <[email protected]>
Signed-off-by: Bryce Palmer <[email protected]>
|
Skipping CI for Draft Pull Request. |
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: everettraven The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
This is an interesting experiment; openshift-tests use of ginkgo has always been weird because of the per-process isolation. I would be curious if openshift/conformance behaves well. IIRC, a number of tests don't do proper clean up ballooning memory usage and even sometimes touch global state that affects other tests. |
|
There are some alternatives to I'm not sure how the run-multiple will behave with some planned features like intelligent scheduling with exclusions, memory/cpu requirements, etc. |
I'd be curious to learn more about what all these planned features entail. I've not read through the OTE enhancement in its entirety yet, so if it is explained in more detail there I'll likely see that soon :).
The ballooning memory usage is something that seems a little more challenging to prevent, and makes sense as a reason for process isolation, but I wonder if that is more of a signal that we should be enforcing implementations of tests to clean up after themselves appropriately? In theory, the approach I've taken here could still run batches of tests in multiple processes if we wanted to run more tests at a time in an individual process. Ginkgo also has parallelization logic (see https://onsi.github.io/ginkgo/#spec-parallelization) For tests that don't play nice with other tests, Ginkgo has the notion of spec decorators like I suspect running openshift/conformance as configured today against this change would probably fail, but with the right tweaks might work. I can certainly explore this a bit more in the future. |
Signed-off-by: Bryce Palmer <[email protected]>
|
PR needs rebase. 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-sigs/prow repository. |
| "io" | ||
| "strings" | ||
| "sync" | ||
| //"sync" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To be removed
| serial, parallel := splitTests(tests, isSerialTest) | ||
|
|
||
| if runMultiple { | ||
| // TODO: can combine this using ginkgo's serial label? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What's the benefit?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ginkgo already has native logic for handling parallel and serial tests. See https://onsi.github.io/ginkgo/#serial-specs
|
@everettraven: The following tests failed, say
Full PR test history. Your PR dashboard. 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-sigs/prow repository. I understand the commands that are listed here. |
Steps to run dummy example: