diff --git a/.prow/config.yaml b/.prow/config.yaml index 381fcccea8..39c275603d 100644 --- a/.prow/config.yaml +++ b/.prow/config.yaml @@ -152,6 +152,18 @@ presubmits: requests: cpu: "6" memory: "6144Mi" + env: + - name: GOOGLE_APPLICATION_CREDENTIALS + value: /etc/gcloud/service-account.json + volumeMounts: + - mountPath: /etc/gcloud/service-account.json + name: service-account + readOnly: true + subPath: service-account.json + volumes: + - name: service-account + secret: + secretName: feast-service-account skip_branches: - ^v0\.(3|4)-branch$ @@ -186,14 +198,26 @@ presubmits: always_run: true spec: containers: - - image: maven:3.6-jdk-11 - command: ["infra/scripts/test-end-to-end-redis-cluster.sh"] - resources: - requests: - cpu: "6" - memory: "6144Mi" + - image: maven:3.6-jdk-11 + command: ["infra/scripts/test-end-to-end-redis-cluster.sh"] + resources: + requests: + cpu: "6" + memory: "6144Mi" + env: + - name: GOOGLE_APPLICATION_CREDENTIALS + value: /etc/gcloud/service-account.json + volumeMounts: + - mountPath: /etc/gcloud/service-account.json + name: service-account + readOnly: true + subPath: service-account.json + volumes: + - name: service-account + secret: + secretName: feast-service-account skip_branches: - - ^v0\.(3|4)-branch$ + - ^v0\.(3|4)-branch$ - name: test-end-to-end-java-8 decorate: true diff --git a/infra/scripts/test-end-to-end-redis-cluster.sh b/infra/scripts/test-end-to-end-redis-cluster.sh index 75efc3a995..ba29961de6 100755 --- a/infra/scripts/test-end-to-end-redis-cluster.sh +++ b/infra/scripts/test-end-to-end-redis-cluster.sh @@ -3,7 +3,7 @@ set -e set -o pipefail -test -z ${GOOGLE_APPLICATION_CREDENTIALS} && GOOGLE_APPLICATION_CREDENTIALS="/etc/service-account/service-account.json" +test -z ${GOOGLE_APPLICATION_CREDENTIALS} && GOOGLE_APPLICATION_CREDENTIALS="/etc/gcloud/service-account.json" test -z ${SKIP_BUILD_JARS} && SKIP_BUILD_JARS="false" test -z ${GOOGLE_CLOUD_PROJECT} && GOOGLE_CLOUD_PROJECT="kf-feast" test -z ${TEMP_BUCKET} && TEMP_BUCKET="feast-templocation-kf-feast" @@ -30,6 +30,7 @@ This script will run end-to-end tests for Feast Core and Online Serving. source ${SCRIPTS_DIR}/setup-common-functions.sh install_test_tools +install_gcloud_sdk install_and_start_local_redis_cluster install_and_start_local_postgres install_and_start_local_zookeeper_and_kafka