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
e2e: move LogFailedContainers out of e2e test framework util.go #85200
e2e: move LogFailedContainers out of e2e test framework util.go #85200
Conversation
@SataQiu: GitHub didn't allow me to request PR reviews from the following users: MorrisLaw. Note that only kubernetes members and repo collaborators can review this PR, and authors cannot review their own PRs. 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. |
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.
The change itself seems good for me because this doesn't add any invalid dependencies and good separation from the core framework.
Just one comment about a lint error.
@@ -26,6 +26,8 @@ import ( | |||
clientset "k8s.io/client-go/kubernetes" | |||
scaleclient "k8s.io/client-go/scale" | |||
api "k8s.io/kubernetes/pkg/apis/core" | |||
"k8s.io/kubernetes/test/e2e/framework" | |||
e2ekubectl "k8s.io/kubernetes/test/e2e/framework/kubectl" | |||
testutils "k8s.io/kubernetes/test/utils" | |||
) | |||
|
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.
We need to rename RcByNameContainer
for solving the following lint error:
test/e2e/framework/rc/rc_utils.go:35:6: func name will be used as rc.RcByNameContainer by other packages, and that stutters; consider calling this ByNameContainer
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.
Thanks @oomichi
Updated.
1ae784a
to
610d982
Compare
/test pull-kubernetes-e2e-gce |
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.
Thanks for updating
/lgtm
/approve
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: oomichi, SataQiu 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 |
610d982
to
50bc528
Compare
/test pull-kubernetes-e2e-gce |
/test pull-kubernetes-node-e2e-containerd |
Looking good @SataQiu , I'm not sure why it failed. I re-ran it again, maybe it's a flakey test? |
/milestone v1.18 looks like we missed the boat. let's try after code thaw |
@MorrisLaw Yes, I'm also confused why the test didn't pass. |
@oomichi Need LGTM again :) |
/lgtm |
/test tide |
/retest |
@SataQiu: The following test failed, say
Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR. 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. I understand the commands that are listed here. |
What type of PR is this?
/kind cleanup
What this PR does / why we need it:
Move
LogFailedContainers
out of e2e test frameworkutil.go
.To resolve circular references, this PR also handles
rc_util.go
./cc @oomichi @MorrisLaw
Which issue(s) this PR fixes:
Ref #84615
Special notes for your reviewer:
Does this PR introduce a user-facing change?:
Additional documentation e.g., KEPs (Kubernetes Enhancement Proposals), usage docs, etc.: