This is an automated email from the ASF dual-hosted git repository. dongjoon pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/spark.git
The following commit(s) were added to refs/heads/master by this push: new 3bbc43d [SPARK-38430][K8S][DOCS] Add `SBT` commands to K8s IT README 3bbc43d is described below commit 3bbc43d662ccfff6bd93a351fcbf96179289f58f Author: William Hyun <will...@apache.org> AuthorDate: Sun Mar 6 22:04:20 2022 -0800 [SPARK-38430][K8S][DOCS] Add `SBT` commands to K8s IT README ### What changes were proposed in this pull request? This PR aims to add SBT commands to K8s IT README. ### Why are the changes needed? This will introduce new SBT commands to developers. ### Does this PR introduce _any_ user-facing change? No, this is a dev-only change. ### How was this patch tested? Manual. Closes #35745 from williamhyun/sbtdoc. Authored-by: William Hyun <will...@apache.org> Signed-off-by: Dongjoon Hyun <dongj...@apache.org> --- .../kubernetes/integration-tests/README.md | 25 ++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/resource-managers/kubernetes/integration-tests/README.md b/resource-managers/kubernetes/integration-tests/README.md index edd3bf5..2151b7f 100644 --- a/resource-managers/kubernetes/integration-tests/README.md +++ b/resource-managers/kubernetes/integration-tests/README.md @@ -269,3 +269,28 @@ to the wrapper scripts and using the wrapper scripts will simply set these appro <td></td> </tr> </table> + +# Running the Kubernetes Integration Tests with SBT + +You can use SBT in the same way to build image and run all K8s integration tests except Minikube-only ones. + + build/sbt -Psparkr -Pkubernetes -Pkubernetes-integration-tests \ + -Dtest.exclude.tags=minikube \ + -Dspark.kubernetes.test.deployMode=docker-desktop \ + -Dspark.kubernetes.test.imageTag=2022-03-06 \ + 'kubernetes-integration-tests/test' + +The following is an example to rerun tests with the pre-built image. + + build/sbt -Psparkr -Pkubernetes -Pkubernetes-integration-tests \ + -Dtest.exclude.tags=minikube \ + -Dspark.kubernetes.test.deployMode=docker-desktop \ + -Dspark.kubernetes.test.imageTag=2022-03-06 \ + 'kubernetes-integration-tests/runIts' + +In addition, you can run a single test selectively. + + build/sbt -Psparkr -Pkubernetes -Pkubernetes-integration-tests \ + -Dspark.kubernetes.test.deployMode=docker-desktop \ + -Dspark.kubernetes.test.imageTag=2022-03-06 \ + 'kubernetes-integration-tests/testOnly -- -z "Run SparkPi with a very long application name"' --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@spark.apache.org For additional commands, e-mail: commits-h...@spark.apache.org