-
Notifications
You must be signed in to change notification settings - Fork 837
refactor(test): refactor e2e test #252
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
Conversation
|
Hi @jimexist. Thanks for your PR. I'm waiting for a kubernetes or tensorflow member to verify that this patch is reasonable to test. If it is, they should reply with 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. |
| k8s_errors "k8s.io/apimachinery/pkg/api/errors" | ||
| metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" | ||
| "k8s.io/api/core/v1" | ||
| k8sErrors "k8s.io/apimachinery/pkg/api/errors" |
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.
apierrors
|
|
||
| if !isTBDeployDeleted { | ||
| err = fmt.Errorf("TensorBoard deployment %v was not successfully deleted for TfJob %v.", tbDeployName, name) | ||
| return |
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.
remove this return
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.
this is early return, prefer to keep it future-proof
| jobName := fmt.Sprintf("%v-%v-%v-%v", fmt.Sprintf("%.40s", original.Metadata.Name), baseName, created.Spec.RuntimeId, i) | ||
|
|
||
| _, err := kubeCli.BatchV1().Jobs(Namespace).Get(jobName, metav1.GetOptions{}) | ||
|
|
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.
remove this null line
test/e2e/main.go
Outdated
| for _, r := range original.Spec.ReplicaSpecs { | ||
| baseName := strings.ToLower(string(r.TfReplicaType)) | ||
|
|
||
| for i := 0; i < int(*r.Replicas); i += 1 { |
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.
i++?
|
i did not read this code logic, most lgtm, let it go test~ |
|
/ok-to-test |
|
@jlewi is this valuable? if not i'm going to close this PR |
|
Yes I think its useful. I was waiting for you to address @zjj2wry 's comments. As soon as those are addressed and merge conflicts are resolved its good to go. |
|
@jimexist Thanks. I'm waiting until we get head fixed and can trust the tests again before merging this. |
|
@jimexist Head is now fixed. Can you sync and push please so we rerun the tests? |
|
@DjangoPeng @jlewi PTAL |
|
@jimexist: 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. |
|
can't interpret the error messages. seems like 6 out of 6 tests passed but then it complaint about missing junit xml files. |
|
@jimexist The missing junit_xml files means some of the tests didn't run which is why its marked as a failure. |
|
too many conflicts, abort. |
Signed-off-by: konflux-internal-p02 <170854209+konflux-internal-p02[bot]@users.noreply.github.com> Co-authored-by: konflux-internal-p02[bot] <170854209+konflux-internal-p02[bot]@users.noreply.github.com>
refactor the test to break down into smaller functions for better readability
This change is