Skip to content

Commit 7ba60f0

Browse files
authored
return e2e to prow (feast-dev#1100)
Signed-off-by: Oleksii Moskalenko <moskalenko.alexey@gmail.com>
1 parent ec0d65f commit 7ba60f0

File tree

4 files changed

+70
-52
lines changed

4 files changed

+70
-52
lines changed

.github/workflows/complete.yml

Lines changed: 0 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -155,55 +155,3 @@ jobs:
155155
run: make build-java-no-tests REVISION=${GITHUB_SHA}
156156
- name: copy to gs
157157
run: gsutil cp ./spark/ingestion/target/feast-ingestion-spark-${GITHUB_SHA}.jar gs://feast-jobs/spark/ingestion/
158-
159-
test-end-to-end:
160-
runs-on: [self-hosted]
161-
steps:
162-
- uses: actions/checkout@v2
163-
- uses: actions/setup-java@v1
164-
with:
165-
java-version: '11'
166-
- uses: stCarolas/setup-maven@v3
167-
with:
168-
maven-version: 3.6.3
169-
- uses: actions/setup-python@v2
170-
with:
171-
python-version: 3.6
172-
- name: install
173-
run: |
174-
apt-get update && apt-get install -y redis-server postgresql libpq-dev
175-
make build-java-no-tests REVISION=develop
176-
python -m pip install --upgrade pip setuptools wheel
177-
make install-python
178-
python -m pip install -qr tests/requirements.txt
179-
- name: run tests
180-
run: su -p postgres -c "PATH=$PATH HOME=/tmp pytest tests/e2e/ --feast-version develop"
181-
182-
test-end-to-end-gcp:
183-
runs-on: [self-hosted]
184-
env:
185-
DISABLE_SERVICE_FIXTURES: true
186-
steps:
187-
- uses: actions/checkout@v2
188-
- uses: actions/setup-java@v1
189-
with:
190-
java-version: '11'
191-
- uses: stCarolas/setup-maven@v3
192-
with:
193-
maven-version: 3.6.3
194-
- uses: actions/setup-python@v2
195-
with:
196-
python-version: 3.6
197-
- name: install
198-
run: |
199-
apt-get update && apt-get install -y redis-server postgresql libpq-dev
200-
make build-java-no-tests REVISION=develop
201-
python -m pip install --upgrade pip setuptools wheel
202-
make install-python
203-
python -m pip install -qr tests/requirements.txt
204-
- name: run tests
205-
run: >
206-
su -p postgres -c "PATH=$PATH HOME=/tmp pytest tests/e2e/
207-
--feast-version develop --env=gcloud --dataproc-cluster-name feast-e2e
208-
--dataproc-project kf-feast --dataproc-region us-central1
209-
--redis-url 10.128.0.105:6379 --redis-cluster --kafka-brokers 10.128.0.103:9094"

.prow/config.yaml

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,54 @@ presubmits:
141141
- image: golang:1.13
142142
command: ["infra/scripts/test-golang-sdk.sh"]
143143

144+
- name: test-end-to-end
145+
decorate: true
146+
always: true
147+
spec:
148+
containers:
149+
- image: gcr.io/kf-feast/feast-ci:latest
150+
command: ["infra/scripts/test-end-to-end.sh"]
151+
resources:
152+
requests:
153+
cpu: "6"
154+
memory: "6144Mi"
155+
env:
156+
- name: GOOGLE_APPLICATION_CREDENTIALS
157+
value: /etc/gcloud/service-account.json
158+
volumeMounts:
159+
- mountPath: /etc/gcloud/service-account.json
160+
name: service-account
161+
readOnly: true
162+
subPath: service-account.json
163+
volumes:
164+
- name: service-account
165+
secret:
166+
secretName: feast-service-account
167+
168+
- name: test-end-to-end-gcp
169+
decorate: true
170+
always: true
171+
spec:
172+
containers:
173+
- image: gcr.io/kf-feast/feast-ci:latest
174+
command: [ "infra/scripts/test-end-to-end-gcp.sh" ]
175+
resources:
176+
requests:
177+
cpu: "6"
178+
memory: "6144Mi"
179+
env:
180+
- name: GOOGLE_APPLICATION_CREDENTIALS
181+
value: /etc/gcloud/service-account.json
182+
volumeMounts:
183+
- mountPath: /etc/gcloud/service-account.json
184+
name: service-account
185+
readOnly: true
186+
subPath: service-account.json
187+
volumes:
188+
- name: service-account
189+
secret:
190+
secretName: feast-service-account
191+
144192

145193
postsubmits:
146194
feast-dev/feast:
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
export DISABLE_SERVICE_FIXTURES=1
2+
3+
apt-get update && apt-get install -y redis-server postgresql libpq-dev
4+
5+
make build-java-no-tests REVISION=develop
6+
7+
python -m pip install --upgrade pip setuptools wheel
8+
make install-python
9+
python -m pip install -qr tests/requirements.txt
10+
11+
su -p postgres -c "PATH=$PATH HOME=/tmp pytest tests/e2e/ \
12+
--feast-version develop --env=gcloud --dataproc-cluster-name feast-e2e \
13+
--dataproc-project kf-feast --dataproc-region us-central1 \
14+
--redis-url 10.128.0.105:6379 --redis-cluster --kafka-brokers 10.128.0.103:9094"

infra/scripts/test-end-to-end.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
apt-get update && apt-get install -y redis-server postgresql libpq-dev
2+
3+
make build-java-no-tests REVISION=develop
4+
python -m pip install --upgrade pip setuptools wheel
5+
make install-python
6+
python -m pip install -qr tests/requirements.txt
7+
8+
su -p postgres -c "PATH=$PATH HOME=/tmp pytest tests/e2e/ --feast-version develop"

0 commit comments

Comments
 (0)