-
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
Fixing spark e2e test failures. #36548
Conversation
Jenkins GKE smoke e2e failed for commit 81dde54c17f88484c44eeb1da03d45f62e2ab2f3. Full PR test history. The magic incantation to run this job again is |
@k8s-bot cvm gke e2e test this |
Jenkins Kubemark GCE e2e failed for commit 81dde54c17f88484c44eeb1da03d45f62e2ab2f3. Full PR test history. The magic incantation to run this job again is |
Did you mean to assign me on this one? I don't have any context for this code. |
@k8s-bot kubemark e2e test this |
@jimmycuadra Unassigned. I assigned you as you dealt with the e2e tests for cassandra recently. |
Ah. That was just a follow up to a previous PR I made finishing some of the petset rename stuff. |
@foxish looks good, but next time don't shy away from asking for an example fix if it makes sense. |
@elsonrodriguez I felt that the way the examples are written right now makes sense, with the namespace. Perhaps we could have kept the namespace from the example YAMLs, and just changed the instructions to specify |
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.
A couple of recommendation. Thank for addressing this!!
nsSpark := "spark-cluster" // TODO: find a way to infer this from the yaml. | ||
AfterEach(func() { | ||
// clean up the spark namespace. | ||
err := c.Core().Namespaces().Delete(nsSpark, nil) |
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 just throwing a pain here if the build framework is borked?
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.
Panic not pain ...
// TODO: Add Zepplin and Web UI to this example. | ||
serviceYaml := mkpath("spark-master-service.yaml") | ||
masterYaml := mkpath("spark-master-controller.yaml") | ||
workerControllerYaml := mkpath("spark-worker-controller.yaml") | ||
nsFlag := fmt.Sprintf("--namespace=%v", ns) | ||
nsYaml := mkpath("namespace-spark-cluster.yaml") |
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.
Can we check that this file exists. This bit me in a C* e2e test.
Review status: 0 of 2 files reviewed at latest revision, 4 unresolved discussions. test/e2e/examples.go, line 145 at r1 (raw file):
Can we just remove the namespace in all spark yaml files? In the examples, the namespace is already set to test/e2e/examples.go, line 148 at r1 (raw file):
Need to change this if removing nsSpark Comments from Reviewable |
@janetkuo I misunderstood how the example worked. You're right, this change would be unnecessary; and removing the |
81dde54
to
190ba0b
Compare
190ba0b
to
a5b7591
Compare
@janetkuo PTAL. Updated. The e2e test also passes locally. |
/lgtm |
@k8s-bot test this [submit-queue is verifying that this PR is safe to merge] |
Automatic merge from submit-queue |
What this PR does / why we need it: Fixes e2e test failures in the spark tests. These failures were caused by an update to the examples in #33604
Which issue this PR fixes : fixes #36102
Release note:
cc @calebamiles @elsonrodriguez @saad-ali
This change is