Skip to content

Commit

Permalink
user invoker instead of grpcurl
Browse files Browse the repository at this point in the history
Signed-off-by: Shyam Jesal <[email protected]>
  • Loading branch information
shyamjesal committed Aug 2, 2021
1 parent 4071269 commit b20ca4b
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 3 deletions.
14 changes: 13 additions & 1 deletion .github/workflows/function-composition.yml
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,7 @@ jobs:
./bin/grpcurl -max-time 10 -plaintext localhost:3031 helloworld.Greeter.SayHello
- name: show docker-compose log
if: ${{ always() }}
run: cat function-images/tests/chained-function-serving/log_file

bench-serving:
Expand Down Expand Up @@ -327,14 +328,25 @@ jobs:
run: |
./function-images/tests/kn_deploy.sh ./function-images/tests/video-analytics/knative_yamls/${{ matrix.transfer-type }}/service*
- uses: actions/setup-go@v2
with:
go-version: 1.16

- name: Build invoker
working-directory: examples/invoker
run: make invoker

- name: Invoke functions
working-directory: examples/invoker
run: |
set -x
NODEPORT=$(kubectl get svc kourier-ingress -n kourier-system -o=jsonpath='{.spec.ports[0].nodePort}')
HOSTNAME=$(kubectl get ksvc streaming -n default -o jsonpath='{.status.url}' | cut -c8-)
./bin/grpcurl -plaintext $HOSTNAME:$NODEPORT helloworld.Greeter.SayHello
echo '[ { "hostname": "$HOSTNAME" } ]' > endpoints.json
./invoker -port $NODEPORT -dbg
cat rps*lat.csv
- name: Print logs
if: ${{ always() }}
Expand Down
4 changes: 2 additions & 2 deletions function-images/tests/video-analytics/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ COPY ./function-images/tests/video-analytics/proto/videoservice_pb2.py ./
RUN --mount=type=secret,id=GOPRIVATE_KEY \
git config --global url."https://ease-lab:$(cat /run/secrets/GOPRIVATE_KEY)@github.com/ease-lab/vhive-xdt".insteadOf "https:/ease-lab/vhive-xdt"
RUN --mount=type=secret,id=GOPRIVATE_KEY \
curl https://$(cat /run/secrets/GOPRIVATE_KEY):[email protected]/repos/ease-lab/vhive-xdt/git/refs/heads/python-sdk-use-metadata-at-dst -o version.json
curl https://$(cat /run/secrets/GOPRIVATE_KEY):[email protected]/repos/ease-lab/vhive-xdt/git/refs/heads/main -o version.json
RUN git clone --depth 1 https:/ease-lab/vhive-xdt /xdt

FROM vhiveease/python-slim:latest as recog
Expand Down Expand Up @@ -63,7 +63,7 @@ COPY ./function-images/tests/video-analytics/proto/videoservice_pb2.py ./
RUN --mount=type=secret,id=GOPRIVATE_KEY \
git config --global url."https://ease-lab:$(cat /run/secrets/GOPRIVATE_KEY)@github.com/ease-lab/vhive-xdt".insteadOf "https:/ease-lab/vhive-xdt"
RUN --mount=type=secret,id=GOPRIVATE_KEY \
curl https://$(cat /run/secrets/GOPRIVATE_KEY):[email protected]/repos/ease-lab/vhive-xdt/git/refs/heads/python-sdk-use-metadata-at-dst -o version.json
curl https://$(cat /run/secrets/GOPRIVATE_KEY):[email protected]/repos/ease-lab/vhive-xdt/git/refs/heads/main -o version.json
RUN git clone --depth 1 https:/ease-lab/vhive-xdt /xdt

FROM vhiveease/python-slim:latest as decode
Expand Down

0 comments on commit b20ca4b

Please sign in to comment.