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
Break up and Refactor test/e2e/framework/util.go #77095
Comments
/sig testing |
/area e2e-test-framework |
There are also ssh utilities that should probably move into their own package; I'll take that one as I think it is also a reasonable step in #69373 which is assigned to me (reducing reliance on ssh in tests). Step 1, figure out where it really bubbles up to, step 2, do something about it. |
I'd like to take the files as below :) service/*
endpoints/*
resource/* |
I’d like to take kubectl/, node/, and pod/* :) |
I would like to take cluster and log |
Hi, all. When I try handle cluster thing, I found there are many functions containing k8s-component. Like
Should we combine node/ and cluster/, maybe something like:
What do you think? |
Maybe we could leave these for now and see what we could do after the major part of this is done. |
RestartControllerManager and WaitForApiserverUp should go into |
@WanLinghao updated |
Hi @SataQiu, how is the process of refactoring networking_util going on? I'm working on service related functions in utils.go #77155. Some of the functions have to import Do you have the time to work on the |
I can work on wrappers and providers if they’re still available. |
@draveness I have a WIP for extracting the logging into its own package. It is a very heavily used set of functions though so I am running into a few issues. All solvable though I think. I’ll let you know when that is done. |
Should provider related things go into |
I think everything in |
@draveness I have tried to solve this problem before, but it was suspended for some reason. If you have the time, feel free to take it over. Thanks a lot. |
@SataQiu that's why we're breaking up |
I think we need move log functions and ssh functions to their own packages first to avoid cycle import. |
It moves log function and ssh function to their own packages: test/e2e/framework/log/ test/e2e/framework/ssh/ For more detail, please refer:kubernetes#77095
/cc |
Fixed a typo in the title /retitle Break up and Refactor test/e2e/framework/util.go |
It seems most node related work has been done. I will continue to follow up node related refactor. Share it here to avoid unnecessary conflicts. |
/help |
@tanjunchen: Please ensure the request meets the requirements listed here. If this request no longer meets these requirements, the label can be removed In response to this:
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/test-infra repository. |
Issues go stale after 90d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
/remove-lifecycle stale |
What would you like to be added:
There are a lot of methods in
test/e2e/framework/util.go
that can be cleaned up or moved into it's own package for easier consumption/discovery. In #76206 there were some discussions for how to break up this file. The proposed package structure was:test/e2e/framework/
- builder.go
- runner.go
- logger.go
- wait.go
- resource.go
- wait.go
- resource.go
- resource.go
- resource.go
- runtime.go
- versions.go
- state.go
- restart
I think each package & top level file can be it's own task. Pick a package above, go through each method in
test/e2e/framework/util.go
and move it to that package/file if it makes sense. The above is just a guideline, feel free to introduce new packages/files where it makes sense.Why is this needed:
This is a part of #76206 & #75601
The text was updated successfully, but these errors were encountered: