You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spark.apache.org by do...@apache.org on 2022/03/07 06:06:42 UTC
[spark] branch branch-3.2 updated: [SPARK-38430][K8S][DOCS] Add `SBT` commands to K8s IT README
This is an automated email from the ASF dual-hosted git repository.
dongjoon pushed a commit to branch branch-3.2
in repository https://gitbox.apache.org/repos/asf/spark.git
The following commit(s) were added to refs/heads/branch-3.2 by this push:
new 7eafadb [SPARK-38430][K8S][DOCS] Add `SBT` commands to K8s IT README
7eafadb is described below
commit 7eafadbbd962f28bac54cbc45eef9a37fc785966
Author: William Hyun <wi...@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 <wi...@apache.org>
Signed-off-by: Dongjoon Hyun <do...@apache.org>
(cherry picked from commit 3bbc43d662ccfff6bd93a351fcbf96179289f58f)
Signed-off-by: Dongjoon Hyun <do...@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 3a81033..a7edcf4 100644
--- a/resource-managers/kubernetes/integration-tests/README.md
+++ b/resource-managers/kubernetes/integration-tests/README.md
@@ -255,3 +255,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-unsubscribe@spark.apache.org
For additional commands, e-mail: commits-help@spark.apache.org