Skip to content
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

[SPARK-37735][K8S][TESTS][FOLLOWUP] Remove casting to KubernetesConf in tests #35413

Closed
wants to merge 1 commit into from

Conversation

martin-g
Copy link
Member

@martin-g martin-g commented Feb 7, 2022

What changes were proposed in this pull request?

Minor simplification:

There is no need to cast
org.apache.spark.deploy.k8s.KubernetesDriverConf/KubernetesExecutorConf to org.apache.spark.deploy.k8s.KubernetesConf in KubernetesConfSuite

Related-to: #35015

Why are the changes needed?

Small simplification of the test code.

Does this PR introduce any user-facing change?

No!

How was this patch tested?

Build and test KubernetesConfSuite#test("SPARK-37735: access appId in KubernetesConf") {

Minor simplification:

There is no need to cast
org.apache.spark.deploy.k8s.KubernetesDriverConf/KubernetesExecutorConf to org.apache.spark.deploy.k8s.KubernetesConf in KubernetesConfSuite

Related-to: apache#35015

Signed-off-by: Martin Tzvetanov Grigorov <mgrigorov@apache.org>
@dongjoon-hyun dongjoon-hyun changed the title SPARK-37735: Remove casting to KubernetesConf in tests [SPARK-37735][K8S][TESTS][FOLLOWUP] Remove casting to KubernetesConf in tests Feb 7, 2022
Copy link
Member

@dongjoon-hyun dongjoon-hyun left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1, LGTM. I check that there are no other instances.

$ git grep '.asInstanceOf\[KubernetesConf\].'
resource-managers/kubernetes/core/src/test/scala/org/apache/spark/deploy/k8s/KubernetesConfSuite.scala:    assert(driverConf.asInstanceOf[KubernetesConf].appId === KubernetesTestConf.APP_ID)
resource-managers/kubernetes/core/src/test/scala/org/apache/spark/deploy/k8s/KubernetesConfSuite.scala:    assert(execConf.asInstanceOf[KubernetesConf].appId === KubernetesTestConf.APP_ID)

Merged to master. All K8s tested passed already.

@martin-g martin-g deleted the spark-37735-remove-casting branch February 7, 2022 07:30
@AmplabJenkins
Copy link

Can one of the admins verify this patch?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants