Skip to content

Commit e46fb9e

Browse files
committed
Add integration-tests folder
1 parent 80685c7 commit e46fb9e

23 files changed

Lines changed: 618 additions & 0 deletions

integration-tests/.gitignore

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Ignore yaml rendered from *.template files
2+
# because they are different on different environments
3+
feast-helm-values.yaml
4+
testdata/import_specs/batch_from_gcs.yaml
5+
testdata/import_specs/stream_from_kafka.yaml
6+
7+
# local files not meant to be pushed
8+
*.local
Lines changed: 141 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,141 @@
1+
# Required environment variables to supply for this template:
2+
# ============================================================
3+
# - DRONE_BUILD_NUMBER
4+
# - FEAST_IMAGE_TAG
5+
# - FEAST_WAREHOUSE_DATASET
6+
#
7+
# Required only if using the Ambassador annotations:
8+
# - FEAST_CORE_URL
9+
# - FEAST_SERVING_URL
10+
11+
core:
12+
projectId: "kf-feast"
13+
image:
14+
registry: us.gcr.io/kf-feast
15+
repository: feast-core
16+
tag: ${FEAST_IMAGE_TAG}
17+
replicaCount: 1
18+
resources:
19+
requests:
20+
cpu: 1
21+
memory: 2G
22+
readinessProbe:
23+
initialDelaySeconds: 15
24+
service:
25+
annotations:
26+
getambassador.io/config: |
27+
---
28+
apiVersion: ambassador/v1
29+
kind: Mapping
30+
name: feast_core_grpc_core_service_mapping_build_${DRONE_BUILD_NUMBER}
31+
grpc: True
32+
headers:
33+
:authority: ${FEAST_CORE_URL}
34+
prefix: /feast.core.CoreService
35+
rewrite: /feast.core.CoreService
36+
service: feast-${DRONE_BUILD_NUMBER}-core:6565
37+
timeout_ms: 60000
38+
---
39+
apiVersion: ambassador/v1
40+
kind: Mapping
41+
name: feast_core_grpc_job_service_mapping_build_${DRONE_BUILD_NUMBER}
42+
grpc: True
43+
headers:
44+
:authority: ${FEAST_CORE_URL}
45+
prefix: /feast.core.JobService
46+
rewrite: /feast.core.JobService
47+
service: feast-${DRONE_BUILD_NUMBER}-core:6565
48+
timeout_ms: 120000
49+
---
50+
apiVersion: ambassador/v1
51+
kind: Mapping
52+
name: feast_core_grpc_ui_service_mapping_build_${DRONE_BUILD_NUMBER}
53+
grpc: True
54+
headers:
55+
:authority: ${FEAST_CORE_URL}
56+
prefix: /feast.core.UIService
57+
rewrite: /feast.core.UIService
58+
service: feast-${DRONE_BUILD_NUMBER}-core:6565
59+
---
60+
apiVersion: ambassador/v1
61+
kind: Mapping
62+
name: feast_core_grpc_dataset_service_mapping_build_${DRONE_BUILD_NUMBER}
63+
grpc: True
64+
headers:
65+
:authority: ${FEAST_CORE_URL}
66+
prefix: /feast.core.DatasetService
67+
rewrite: /feast.core.DatasetService
68+
service: feast-${DRONE_BUILD_NUMBER}-core:6565
69+
grpc:
70+
port: 6565
71+
targetPort: 6565
72+
http:
73+
port: 80
74+
targetPort: 8080
75+
jobs:
76+
workspace: "/tmp"
77+
runner: DirectRunner
78+
options: "{}"
79+
errorStoreType: "stdout"
80+
errorStoreOptions: "{}"
81+
trainingDatasetPrefix: "fs"
82+
logType: JSON
83+
84+
store:
85+
errors:
86+
type: "stdout"
87+
warehouse:
88+
type: "bigquery"
89+
options: '{"project": "kf-feast", "dataset": "${FEAST_WAREHOUSE_DATASET}", "tempLocation": "gs://feast-templocation-kf-feast/warehouse_build_${DRONE_BUILD_NUMBER}"}'
90+
serving:
91+
type: "redis"
92+
options: '{"host": "feast-${DRONE_BUILD_NUMBER}-redis-master", "port": "6379"}'
93+
94+
postgresql:
95+
provision: true
96+
persistence:
97+
enabled: false
98+
99+
redis:
100+
provision: true
101+
usePassword: false
102+
cluster:
103+
enabled: false
104+
master:
105+
persistence:
106+
enabled: false
107+
108+
serving:
109+
image:
110+
registry: us.gcr.io/kf-feast
111+
repository: feast-serving
112+
tag: ${FEAST_IMAGE_TAG}
113+
replicaCount: 1
114+
readinessProbe:
115+
initialDelaySeconds: 15
116+
service:
117+
annotations:
118+
getambassador.io/config: |
119+
---
120+
apiVersion: ambassador/v1
121+
kind: Mapping
122+
name: feast_serving_grpc_serving_api_mapping_build_${DRONE_BUILD_NUMBER}
123+
grpc: True
124+
headers:
125+
:authority: ${FEAST_SERVING_URL}
126+
prefix: /feast.serving.ServingAPI
127+
rewrite: /feast.serving.ServingAPI
128+
service: feast-${DRONE_BUILD_NUMBER}-serving:6565
129+
timeout_ms: 30000
130+
grpc:
131+
port: 6565
132+
targetPort: 6565
133+
http:
134+
port: 80
135+
targetPort: 8080
136+
137+
# Enable only if you have an existing service account you
138+
# want to mount the secret of.
139+
serviceAccount:
140+
name: feast-service-account
141+
key: kf-feast-32465f737896.json
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
name: entity_1
2+
description: entity_1 for Feast integration test
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
name: entity_2
2+
description: entity_2 for Feast integration test
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
id: entity_1.feature_1
2+
name: feature_1
3+
entity: entity_1
4+
owner: bob@example.com
5+
description: feature with double value
6+
valueType: DOUBLE
7+
uri: https://github.com/bob/example
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
id: entity_1.feature_2
2+
name: feature_2
3+
entity: entity_1
4+
owner: bob@example.com
5+
description: feature with float value
6+
valueType: FLOAT
7+
uri: https://github.com/bob/example
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
id: entity_1.feature_3
2+
name: feature_3
3+
entity: entity_1
4+
owner: bob@example.com
5+
description: feature with 32-bit integer value
6+
valueType: INT32
7+
uri: https://github.com/bob/example
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
id: entity_1.feature_4
2+
name: feature_4
3+
entity: entity_1
4+
owner: bob@example.com
5+
description: test entity with 64-bit integer value
6+
valueType: INT64
7+
uri: https://github.com/bob/example
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
id: entity_2.feature_1
2+
name: feature_1
3+
entity: entity_2
4+
owner: bob@example.com
5+
description: feature with double value
6+
valueType: DOUBLE
7+
uri: https://github.com/bob/example
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
id: entity_2.feature_2
2+
name: feature_2
3+
entity: entity_2
4+
owner: bob@example.com
5+
description: feature with float value
6+
valueType: FLOAT
7+
uri: https://github.com/bob/example

0 commit comments

Comments
 (0)