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
use expectEqual in framework #79771
use expectEqual in framework #79771
Conversation
Welcome @tealee1992! |
Hi @tealee1992. Thanks for your PR. I'm waiting for a kubernetes member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. 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. |
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: tealee1992 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 |
/assign @krzyzacy |
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.
/ok-to-test
/priority backlog
/lgtm
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.
/assign @oomichi
/retest |
/reset |
test/e2e/framework/pod/resource.go
Outdated
@@ -672,13 +672,13 @@ func GetPodsScheduled(masterNodes sets.String, pods *v1.PodList) (scheduledPods, | |||
if !masterNodes.Has(pod.Spec.NodeName) { | |||
if pod.Spec.NodeName != "" { | |||
_, scheduledCondition := podutil.GetPodCondition(&pod.Status, v1.PodScheduled) | |||
gomega.Expect(scheduledCondition != nil).To(gomega.Equal(true)) | |||
gomega.Expect(scheduledCondition.Status).To(gomega.Equal(v1.ConditionTrue)) | |||
framework.ExpectEqual(scheduledCondition != nil, true) |
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 test jobs are failed like
# k8s.io/kubernetes/test/e2e/framework/pod
test/e2e/framework/pod/resource.go:675:5: undefined: framework
test/e2e/framework/pod/resource.go:676:5: undefined: framework
test/e2e/framework/pod/resource.go:680:5: undefined: framework
test/e2e/framework/pod/resource.go:681:5: undefined: framework
Because here is in the framework
itself. We need to remove framework
from here.
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.
Thx! I removed theframework
but it said undefined : ExpectEqual
. So I think we should import framework
. Now I am blocked by this : https://prow.k8s.io/view/gcs/kubernetes-jenkins/pr-logs/pull/79771/pull-kubernetes-bazel-build/1147495162553831424
It just doesn't make sense - other packages are doing fine under the framework
.
test/e2e/framework/pod/resource.go
Outdated
gomega.Expect(scheduledCondition != nil).To(gomega.Equal(true)) | ||
gomega.Expect(scheduledCondition.Status).To(gomega.Equal(v1.ConditionTrue)) | ||
framework.ExpectEqual(scheduledCondition != nil, true) | ||
framework.ExpectEqual(scheduledCondition.Status, v1.ConditionTrue) |
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.
ditto
test/e2e/framework/pod/resource.go
Outdated
scheduledPods = append(scheduledPods, pod) | ||
} else { | ||
_, scheduledCondition := podutil.GetPodCondition(&pod.Status, v1.PodScheduled) | ||
gomega.Expect(scheduledCondition != nil).To(gomega.Equal(true)) | ||
gomega.Expect(scheduledCondition.Status).To(gomega.Equal(v1.ConditionFalse)) | ||
framework.ExpectEqual(scheduledCondition != nil, true) |
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.
ditto
test/e2e/framework/pod/resource.go
Outdated
gomega.Expect(scheduledCondition != nil).To(gomega.Equal(true)) | ||
gomega.Expect(scheduledCondition.Status).To(gomega.Equal(v1.ConditionFalse)) | ||
framework.ExpectEqual(scheduledCondition != nil, true) | ||
framework.ExpectEqual(scheduledCondition.Status, v1.ConditionFalse) |
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.
ditto
New changes are detected. LGTM label has been removed. |
@tealee1992: Adding label 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. |
@tealee1992: The following tests 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. |
@tealee1992 This makes module import a new library code. |
I'd like to make this move forward. |
The original issue has been closed, so now this becomes non-mandatory. /close |
@oomichi: Closed this PR. 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. |
What type of PR is this?
What this PR does / why we need it:
Which issue(s) this PR fixes:
Ref: #79686
Special notes for your reviewer:
Does this PR introduce a user-facing change?: