-
Notifications
You must be signed in to change notification settings - Fork 963
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2113 from Yikun/spark-e2e
Add `E2E Spark Integration Test`
- Loading branch information
Showing
1 changed file
with
68 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
name: E2E Spark Integration Test | ||
|
||
on: | ||
# Post check in below branches | ||
push: | ||
branches: | ||
- master | ||
# PR triggered job | ||
pull_request: | ||
jobs: | ||
k8s-integration-tests: | ||
name: "E2E about Spark Integration test" | ||
runs-on: ubuntu-20.04-spark | ||
steps: | ||
|
||
- name: Checkout current Volcano repository | ||
if: github.event.inputs.volcano-branch=='' | ||
uses: actions/checkout@v2 | ||
|
||
- name: Checkout Spark repository | ||
uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
repository: apache/spark | ||
ref: branch-3.3 | ||
path: ${{ github.workspace }}/spark | ||
- name: Install Java 8 | ||
uses: actions/setup-java@v1 | ||
with: | ||
java-version: 8 | ||
- name: Install Go | ||
uses: actions/setup-go@v2 | ||
with: | ||
go-version: 1.17.x | ||
- name: start minikube | ||
run: | | ||
# Use pre-install minikube | ||
minikube start --cpus max --memory max | ||
- name: Build lastest volcano images | ||
run: | | ||
eval $(minikube docker-env) | ||
make TAG=latest update-development-yaml | ||
make TAG=latest images | ||
docker images | grep volcano | ||
cat ./installer/volcano-development.yaml | grep image: | ||
minikube kubectl -- apply -f ./installer/volcano-development.yaml | ||
- name: Show all K8S pods and nodes | ||
run: | | ||
# Use minikube kubectl | ||
minikube kubectl -- get pods -A | ||
minikube kubectl -- get nodes -oyaml | ||
- name: Run K8S integration test | ||
run: | | ||
eval $(minikube docker-env) | ||
minikube kubectl -- create clusterrolebinding serviceaccounts-cluster-admin --clusterrole=cluster-admin --group=system:serviceaccounts || true | ||
build/sbt -Pvolcano -Pkubernetes -Pkubernetes-integration-tests -Dtest.include.tags=volcano "kubernetes-integration-tests/test" | ||
working-directory: ${{ github.workspace }}/spark | ||
- name: Upload spark integration tests log files | ||
if: failure() | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: spark-on-kubernetes-with-volcano-it-log | ||
path: "**/target/integration-tests.log" | ||
- name: Cleanup minikube | ||
if: always() | ||
run: | | ||
minikube delete | ||