Yikun commented on a change in pull request #35830:
URL: https://github.com/apache/spark/pull/35830#discussion_r825390372
##########
File path: .github/workflows/build_and_test.yml
##########
@@ -768,6 +768,68 @@ jobs:
name: unit-tests-log-tpcds--8-${{ needs.configure-jobs.outputs.hadoop
}}-hive2.3
path: "**/target/unit-tests.log"
+ k8s-integration-tests:
+ needs: [configure-jobs, precondition]
+ if: needs.configure-jobs.outputs.type == 'k8s' &&
fromJson(needs.precondition.outputs.required).build == 'true'
+ name: Run K8S integration tests
+ runs-on: ubuntu-20.04
+ env:
+ SPARK_LOCAL_IP: localhost
+ steps:
+ - name: Checkout Spark repository
+ uses: actions/checkout@v2
+ with:
+ fetch-depth: 0
+ repository: apache/spark
+ ref: master
+ - name: Sync the current branch with the latest in Apache Spark
+ if: github.repository != 'apache/spark'
+ run: |
+ git fetch https://github.com/$GITHUB_REPOSITORY.git
${GITHUB_REF#refs/heads/}
+ git -c user.name='Apache Spark Test Account' -c
user.email='[email protected]' merge --no-commit --progress --squash
FETCH_HEAD
+ git -c user.name='Apache Spark Test Account' -c
user.email='[email protected]' commit -m "Merged commit"
+ - name: Cache Scala, SBT and Maven
+ uses: actions/cache@v2
+ with:
+ path: |
+ build/apache-maven-*
+ build/scala-*
+ build/*.jar
+ ~/.sbt
+ key: build-${{ hashFiles('**/pom.xml', 'project/build.properties',
'build/mvn', 'build/sbt', 'build/sbt-launch-lib.bash',
'build/spark-build-info') }}
+ restore-keys: |
+ build-
+ - name: Cache Coursier local repository
+ uses: actions/cache@v2
+ with:
+ path: ~/.cache/coursier
+ key: k8s-integration-coursier-${{ hashFiles('**/pom.xml',
'**/plugins.sbt') }}
+ restore-keys: |
+ k8s-integration-coursier-
+ - name: Install Java 8
+ uses: actions/setup-java@v1
+ with:
+ java-version: 8
+ - name: start minikube
+ id: minikube
+ uses: medyagh/setup-minikube@master
Review comment:
Yep, this is only for test, we can download minikube manaully instead of
it.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]