Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
6eea483
Add wait flag for jobs, fix go proto path for dataset service
Feb 19, 2019
39c9ab7
Rebase with master
Mar 29, 2019
b9e724d
Rebase with master
Mar 29, 2019
3c274f6
Add integration test for redis-bq-dataflow
Mar 29, 2019
cb1dd97
Use go modules, add tests for util, printer and cmd
davidheryanto Mar 26, 2019
78cdcb3
Add HealthControllerTest
davidheryanto Apr 1, 2019
70016b8
Add integration tests folder
davidheryanto Apr 4, 2019
297e04d
Format dataframe dtypes returned from serving properly
davidheryanto Apr 4, 2019
2075b42
Update helm templates for easier setting of LoadBalancerSourceRanges
davidheryanto Apr 4, 2019
6614c88
Add unit test for UIServiceController
davidheryanto Apr 5, 2019
7bb8a6d
Update docker file to include argo
Apr 8, 2019
a8eeef6
Add prow configuration for starting integration test
Apr 8, 2019
7886309
Remove warehouse and serving info in feature specs test data
davidheryanto Apr 8, 2019
56a10a3
Fix postsubmit name prefix
Apr 8, 2019
e3092fa
Merge branch 'int-test' of github.com:zhilingc/feast into int-test
Apr 8, 2019
aae4092
Update sourceOptions for testdata
davidheryanto Apr 9, 2019
2be4554
Update location for staging data in feast integration
davidheryanto Apr 9, 2019
09f2e4e
Update testdata to stage
davidheryanto Apr 9, 2019
59a7c07
Integration test: Fix incorrect path in import csv
davidheryanto Apr 9, 2019
fe36f6e
Separate images for unit and integration tests
Apr 9, 2019
fc80221
Merge branch 'int-test' of github.com:zhilingc/feast into int-test
Apr 9, 2019
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Separate images for unit and integration tests
  • Loading branch information
zhilingc
zhilingc committed Apr 9, 2019
commit fe36f6eb27cc36bd0bd92ba25acc508bead94ed9
15 changes: 15 additions & 0 deletions testing/docker-images/gcloud-argo/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
FROM debian:stretch

RUN apt-get update && apt-get install -y make curl gnupg wget python

# Install kubectl gcloud and argo
RUN wget -qO- https://dl.google.com/dl/cloudsdk/channels/rapid/downloads/google-cloud-sdk-241.0.0-linux-x86_64.tar.gz | tar xzf - \
&& /google-cloud-sdk/bin/gcloud -q components install kubectl \
&& /google-cloud-sdk/install.sh \
&& ln -s /google-cloud-sdk/bin/gcloud /usr/bin/gcloud
RUN curl -sSL -o /usr/local/bin/argo https://github.com/argoproj/argo/releases/download/v2.2.1/argo-linux-amd64 \
&& chmod +x /usr/local/bin/argo

COPY run.sh /usr/local/bin/

ENTRYPOINT ["run.sh"]
51 changes: 51 additions & 0 deletions testing/docker-images/gcloud-argo/run.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
#!/usr/bin/env bash

set -e
printenv

if [ $# -eq 0 ]
then
echo ""
echo "please specify commands as arguments, for example \"make test\""
echo ""
exit 1
fi

echo ""
echo "cloning Feast repository..."
echo ""

git clone https://github.com/gojek/feast
cd feast

if [ -n "${PULL_NUMBER}" ] && [ "$JOB_TYPE" = "presubmit" ]
then
echo ""
echo "fetching PR ${PULL_NUMBER}..."
echo ""
git fetch origin pull/"${PULL_NUMBER}"/head:pull_"${PULL_NUMBER}"

echo ""
echo "checking out PR ${PULL_NUMBER}..."
echo ""
git checkout pull_"${PULL_NUMBER}"
fi

echo "connecting to test cluster..."
gcloud container clusters get-credentials primary-test-cluster --zone us-central1-a --project kf-feast
echo "testing connection to argo..."
argo list
if [ $? -ne 0 ]
then
echo "failed to connect to argo"
echo "exiting"
exit 1
fi

echo "sha:"
git rev-parse HEAD
echo ""
echo "running tests"
echo ""

$@
10 changes: 0 additions & 10 deletions testing/docker-images/test-image/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,6 @@ RUN git clone https://github.com/gojek/feast \
&& cd feast && mvn test || true \
&& cd .. && rm -rf feast

RUN apt-get install -y make curl gnupg wget python

# Install kubectl gcloud and argo
RUN wget -qO- https://dl.google.com/dl/cloudsdk/channels/rapid/downloads/google-cloud-sdk-241.0.0-linux-x86_64.tar.gz | tar xzf - \
&& /google-cloud-sdk/bin/gcloud -q components install kubectl \
&& /google-cloud-sdk/install.sh \
&& ln -s /google-cloud-sdk/bin/gcloud /usr/bin/gcloud
RUN curl -sSL -o /usr/local/bin/argo https://github.com/argoproj/argo/releases/download/v2.2.1/argo-linux-amd64 \
&& chmod +x /usr/local/bin/argo

COPY run.sh /usr/local/bin/

ENTRYPOINT ["run.sh"]
2 changes: 1 addition & 1 deletion testing/integration/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

.PHONY: test-integration it-redis-bq-dataflow

ifeq ($(TYPE), "PR")
ifeq ($(TYPE), PR)
test-integration:
argo submit --watch tests/redis-bq-dataflow/workflow.yaml -p prId=$(ID)
else
Expand Down
4 changes: 2 additions & 2 deletions testing/prow/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ presubmits:
always_run: false
spec:
containers:
- image: us.gcr.io/kf-feast/test-image:1.0.0
- image: us.gcr.io/kf-feast/gcloud-argo:1.0.0
args: ["make", "test-integration", "ID=$PULL_NUMBER", "TYPE=PR"]
imagePullPolicy: Always
trigger: integration-batch
Expand All @@ -28,7 +28,7 @@ postsubmits:
always_run: true
spec:
containers:
- image: us.gcr.io/kf-feast/test-image:1.0.0
- image: us.gcr.io/kf-feast/gcloud-argo:1.0.0
args: ["make", "test-integration", "ID=$PULL_BASE_REF", "TYPE=GITREF"]
imagePullPolicy: Always
trigger: integration-batch
Expand Down