@@ -183,9 +183,6 @@ jobs:
183183 - name : Terraform apply app
184184 run : terraform apply -input=false -auto-approve tfplan
185185 working-directory : infra/terraform/app
186- env :
187- # capture debugging info, see https://www.terraform.io/docs/internals/debugging.html
188- TF_LOG : TRACE
189186
190187 - name : Cancel any active Databricks runs
191188 run : |
@@ -202,21 +199,59 @@ jobs:
202199 - name : Prepare e2e test pod and clear Redis data
203200 run : |
204201 set -ex
202+
203+ kubectl delete secret azure-e2e-test || true
204+ kubectl create secret generic azure-e2e-test --from-literal=AZURE_CLIENT_SECRET="$ARM_CLIENT_SECRET"
205+
205206 # Start e2e test pod
206207 kubectl delete pod "$E2E_TEST_POD" || true
207- kubectl run "$E2E_TEST_POD" --restart=Never --image="$FEAST_JUPYTER_IMAGE:$FEAST_VERSION" --limits 'memory=4Gi'
208+ kubectl run "$E2E_TEST_POD" --restart=Never --image "$FEAST_JUPYTER_IMAGE:$FEAST_VERSION" --overrides='
209+ {
210+ "spec": {
211+ "containers": [
212+ {
213+ "name": "'$E2E_TEST_POD'",
214+ "image": "'$FEAST_JUPYTER_IMAGE':'$FEAST_VERSION'",
215+ "resources": {
216+ "limits": {
217+ "memory": "4Gi"
218+ }
219+ },
220+ "env": [
221+ {
222+ "name": "AZURE_TENANT_ID",
223+ "value": "'$ARM_TENANT_ID'"
224+ },
225+ {
226+ "name": "AZURE_CLIENT_ID",
227+ "value": "'$ARM_CLIENT_ID'"
228+ },
229+ {
230+ "name": "AZURE_CLIENT_SECRET",
231+ "valueFrom": {
232+ "secretKeyRef": {
233+ "name": "azure-e2e-test",
234+ "key": "AZURE_CLIENT_SECRET"
235+ }
236+ }
237+ }
238+ ]
239+ }
240+ ]
241+ }
242+ }'
208243
209244 # While the test pod is starting, clear all data from Redis
210245 kubectl run -it --rm --restart=Never --image=redis redisflush$GITHUB_RUN_NUMBER --command -- redis-cli -h $TF_VAR_redis_hostname FLUSHALL
211246
212- kubectl wait --timeout 45m --for=condition=ContainersReady pod "$E2E_TEST_POD"
247+ kubectl wait --timeout 15m --for=condition=ContainersReady pod "$E2E_TEST_POD"
213248
214- - name : Run e2e tests for Redis
249+ - name : Run e2e tests with Databricks
215250 run : |
216251 set -ex
217252 kubectl exec "$E2E_TEST_POD" -- bash -c "
218253 cd /feast/tests/e2e
219- pytest -x -rA -s databricks-tests.py --core_url feast-core:6565 --serving_url=feast-serving-feast-online-serving:6566
254+ pytest -x -rA -s databricks-tests.py --core_url feast-core:6565 --serving_url=feast-serving-feast-online-serving:6566 --batch_serving_url=feast-serving-feast-batch-serving:6566
220255 "
221256
222257 - name : Run ingestion tests for FF Data Science scenarios
0 commit comments