-
Notifications
You must be signed in to change notification settings - Fork 38.7k
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
Refeactored framework deployment utils #76978
Refeactored framework deployment utils #76978
Conversation
/area e2e-test-framework |
15ae9ae
to
05ad399
Compare
05ad399
to
d4d0592
Compare
/uncc /cc @andrewsykim |
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.
LGTM @alejandrox1
if you are ready with this we can remove the WIP.
first run ./hack/update-bazel.sh
and include the resulted changes using git add...
then look at these failures:
test/e2e/apps/deployment.go:324:20: undefined: framework.UpdateDeploymentWithRetries
test/e2e/apps/deployment.go:466:20: undefined: framework.UpdateDeploymentWithRetries
test/e2e/apps/deployment.go:539:21: undefined: framework.UpdateDeploymentWithRetries
test/e2e/apps/deployment.go:685:22: undefined: framework.UpdateDeploymentWithRetries
test/e2e/apps/deployment.go:695:22: undefined: framework.UpdateDeploymentWithRetries
test/e2e/apps/deployment.go:706:22: undefined: framework.UpdateDeploymentWithRetries
test/e2e/apps/deployment.go:715:23: undefined: framework.UpdateDeploymentWithRetries
test/e2e/apps/deployment.go:722:23: undefined: framework.UpdateDeploymentWithRetries
test/e2e/apps/deployment.go:759:21: undefined: framework.UpdateDeploymentWithRetries
test/e2e/apps/deployment.go:865:20: undefined: framework.UpdateDeploymentWithRetries
test/e2e/apps/deployment.go:865:20: too many errors
# k8s.io/kubernetes/test/e2e/upgrades/apps
test/e2e/upgrades/apps/deployments.go:86:20: undefined: framework.UpdateDeploymentWithRetries
test/e2e/upgrades/apps/deployments.go:162:11: undefined: framework.UpdateDeploymentWithRetries
try building the suite locally with those commands i gave you on slack.
when done git add
all fixes and force push your commit to the remote branch.
/unassign timothysc |
xref: kubernetes#76206 Signed-off-by: Jorge Alarcon Ochoa <alarcj137@gmail.com>
d4d0592
to
8200ae6
Compare
Thank you so much for all of your comments @neolit123 I'm feeling a lot more comfortable getting into the framework. I opened this pr based on the comments of #76800. Please tell me if it makes more sense to do multiple small PRs to refactor |
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.
thank you for the update @alejandrox1
I opened this pr based on the comments of #76800. Please tell me if it makes more sense to do multiple small PRs to refactor framework/deployment_util.go into framework/deployment or if it would be better for me to try and do it all at once. My thinking is that small changes are easier to review but it may not be such a big deal for others who are a lot more familiar with the code.
i think this current PR is a good example in terms of size vs contents.
PRs like this one are preferred instead of many lines of changes.
thanks
/priority backlog
/approve
/lgtm |
Hello,
Does the above comment mean we will have more PRs which move all remaining code of The code itself seems good for me anyways. |
Hi @oomichi
Thank you for your comment. I added some more context into the PR message. |
) | ||
|
||
// UpdateDeploymentWithRetries updates the specified deployment with retries. | ||
func UpdateDeploymentWithRetries(c clientset.Interface, namespace, name string, applyUpdate testutils.UpdateDeploymentFunc) (*apps.Deployment, error) { |
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 about all the other functions under deployment_util?
meh, I'll approve and keep on trucking. However I'd prefer in the future to bundle shuffling together in complete units. /approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: alejandrox1, neolit123, timothysc The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
xref: #76206
Signed-off-by: Jorge Alarcon Ochoa alarcj137@gmail.com
What type of PR is this?
/kind cleanup
What this PR does / why we need it:
Refactor and cleanup e2e framework deployment utils
xref: #76206
Special notes for your reviewer:
This is intended to be the beginning of the refactoring of
framework/deployment_utils.go
intoframework/deployment
.Does this PR introduce a user-facing change?: