Skip to content

Commit

Permalink
Add assess to testcharts.yaml
Browse files Browse the repository at this point in the history
Signed-off-by: Alan Cha <Alan.cha1@ibm.com>
  • Loading branch information
Alan-Cha committed Aug 11, 2023
1 parent c03003d commit 37fb151
Show file tree
Hide file tree
Showing 2 changed files with 115 additions and 75 deletions.
61 changes: 46 additions & 15 deletions .github/workflows/testcharts.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -79,14 +79,17 @@ jobs:
iter8 k launch \
--localChart \
--chartName charts/iter8 \
--set tasks={http} \
--set tasks={http,assess} \
--set http.url="http://httpbin.default/get" \
--set assess.SLOs.upper.http/latency-p50=5 \
--set assess.SLOs.upper.http/latency-p90=10 \
--set assess.SLOs.upper.http/error-count=0 \
--set runner=job
- name: Try other iter8 k commands
if: steps.modified-files.outputs.any_modified == 'true'
run: |
iter8 k assert -c completed -c nofailure --timeout 60s
iter8 k assert -c completed -c nofailure -c slos --timeout 300s
iter8 k report
iter8 k log
iter8 k delete
Expand Down Expand Up @@ -133,15 +136,18 @@ jobs:
iter8 k launch \
--localChart \
--chartName charts/iter8 \
--set "tasks={http}" \
--set "tasks={http,assess}" \
--set http.url="http://httpbin.default/get" \
--set http.payloadStr=hello \
--set assess.SLOs.upper.http/latency-p50=5 \
--set assess.SLOs.upper.http/latency-p90=10 \
--set assess.SLOs.upper.http/error-count=0 \
--set runner=job
- name: Try other iter8 k commands
if: steps.modified-files.outputs.any_modified == 'true'
run: |
iter8 k assert -c completed -c nofailure --timeout 60s
iter8 k assert -c completed -c nofailure -c slos --timeout 300s
iter8 k report
iter8 k log
iter8 k delete
Expand Down Expand Up @@ -188,17 +194,23 @@ jobs:
iter8 k launch \
--localChart \
--chartName charts/iter8 \
--set "tasks={http}" \
--set "tasks={http,assess}" \
--set http.endpoints.get.url=http://httpbin.default/get \
--set http.endpoints.getAnything.url=http://httpbin.default/anything \
--set http.endpoints.post.url=http://httpbin.default/post \
--set http.endpoints.post.payloadStr=hello \
--set assess.SLOs.upper.http-get/error-count=0 \
--set assess.SLOs.upper.http-get/latency-mean=50 \
--set assess.SLOs.upper.http-getAnything/error-count=0 \
--set assess.SLOs.upper.http-getAnything/latency-mean=100 \
--set assess.SLOs.upper.http-post/error-count=0 \
--set assess.SLOs.upper.http-post/latency-mean=150 \
--set runner=job
- name: Try other iter8 k commands
if: steps.modified-files.outputs.any_modified == 'true'
run: |
iter8 k assert -c completed -c nofailure --timeout 600s
iter8 k assert -c completed -c nofailure -c slos --timeout 300s
iter8 k report
iter8 k log
iter8 k delete
Expand Down Expand Up @@ -245,8 +257,11 @@ jobs:
iter8 k launch \
--localChart \
--chartName charts/iter8 \
--set tasks={http} \
--set tasks={http,assess} \
--set http.url="http://httpbin.default/get" \
--set assess.SLOs.upper.http/latency-p50=5 \
--set assess.SLOs.upper.http/latency-p90=10 \
--set assess.SLOs.upper.http/error-count=0 \
--set runner=cronjob \
--set cronjobSchedule="*/1 * * * *"
Expand Down Expand Up @@ -307,17 +322,21 @@ jobs:
iter8 k launch \
--localChart \
--chartName charts/iter8 \
--set tasks={grpc} \
--set tasks={grpc,assess} \
--set grpc.host=routeguide.default:50051 \
--set grpc.protoURL=https://raw.githubusercontent.com/grpc/grpc-go/v1.52.0/examples/route_guide/routeguide/route_guide.proto \
--set grpc.call=routeguide.RouteGuide.GetFeature \
--set grpc.dataURL=https://raw.githubusercontent.com/iter8-tools/docs/v0.13.13/samples/grpc-payload/unary.json \
--set assess.SLOs.upper.grpc/error-rate=0 \
--set assess.SLOs.upper.grpc/latency/mean=200 \
--set assess.SLOs.upper.grpc/latency/p90=500 \
--set assess.SLOs.upper.grpc/latency/p'97\.5'=600 \
--set runner=job
- name: Try other iter8 k commands
if: steps.modified-files.outputs.any_modified == 'true'
run: |
iter8 k assert -c completed -c nofailure --timeout 60s
iter8 k assert -c completed -c nofailure -c slos --timeout 300s
iter8 k report
iter8 k log
iter8 k delete
Expand Down Expand Up @@ -370,19 +389,23 @@ jobs:
iter8 k launch \
--localChart \
--chartName charts/iter8 \
--set tasks={grpc} \
--set tasks={grpc,assess} \
--set grpc.host=routeguide.default:50051 \
--set grpc.protoURL=https://raw.githubusercontent.com/grpc/grpc-go/v1.52.0/examples/route_guide/routeguide/route_guide.proto \
--set grpc.endpoints.getFeature.call=routeguide.RouteGuide.GetFeature \
--set grpc.endpoints.getFeature.dataURL=https://raw.githubusercontent.com/iter8-tools/docs/v0.13.13/samples/grpc-payload/unary.json \
--set grpc.endpoints.listFeatures.call=routeguide.RouteGuide.ListFeatures \
--set grpc.endpoints.listFeatures.dataURL=https://raw.githubusercontent.com/iter8-tools/docs/v0.13.13/samples/grpc-payload/server.json \
--set assess.SLOs.upper.grpc-getFeature/error-rate=0 \
--set assess.SLOs.upper.grpc-getFeature/latency/mean=50 \
--set assess.SLOs.upper.grpc-listFeatures/error-rate=0 \
--set assess.SLOs.upper.grpc-listFeatures/latency/mean=100 \
--set runner=job
- name: Try other iter8 k commands
if: steps.modified-files.outputs.any_modified == 'true'
run: |
iter8 k assert -c completed -c nofailure --timeout 600s
iter8 k assert -c completed -c nofailure -c slos --timeout 300s
iter8 k report
iter8 k log
iter8 k delete
Expand Down Expand Up @@ -429,16 +452,20 @@ jobs:
iter8 k launch \
--localChart \
--chartName charts/iter8 \
--set tasks={grpc} \
--set tasks={grpc,assess} \
--set grpc.host="hello.default:50051" \
--set grpc.call="helloworld.Greeter.SayHello" \
--set grpc.protoURL="https://raw.githubusercontent.com/grpc/grpc-go/master/examples/helloworld/helloworld/helloworld.proto" \
--set assess.SLOs.upper.grpc/error-rate=0 \
--set assess.SLOs.upper.grpc/latency/mean=200 \
--set assess.SLOs.upper.grpc/latency/p90=500 \
--set assess.SLOs.upper.grpc/latency/p'97\.5'=600 \
--set runner=job
- name: Try other iter8 k commands
if: steps.modified-files.outputs.any_modified == 'true'
run: |
iter8 k assert -c completed -c nofailure --timeout 60s
iter8 k assert -c completed -c nofailure -c slos --timeout 300s
iter8 k report
iter8 k log
iter8 k delete
Expand Down Expand Up @@ -485,18 +512,22 @@ jobs:
iter8 k launch \
--localChart \
--chartName charts/iter8 \
--set tasks={grpc} \
--set tasks={grpc,assess} \
--set grpc.host="hello.default:50051" \
--set grpc.call="helloworld.Greeter.SayHello" \
--set grpc.protoURL="https://raw.githubusercontent.com/grpc/grpc-go/master/examples/helloworld/helloworld/helloworld.proto" \
--set assess.SLOs.upper.grpc/error-rate=0 \
--set assess.SLOs.upper.grpc/latency/mean=200 \
--set assess.SLOs.upper.grpc/latency/p90=500 \
--set assess.SLOs.upper.grpc/latency/p'97\.5'=600 \
--set runner=cronjob \
--set cronjobSchedule="*/1 * * * *"
- name: Try other iter8 k commands
if: steps.modified-files.outputs.any_modified == 'true'
run: |
sleep 120
iter8 k assert -c nofailure --timeout 600s
iter8 k assert -c nofailure -c slos --timeout 300s
iter8 k report
iter8 k log
iter8 k delete
Expand Down
129 changes: 69 additions & 60 deletions .github/workflows/testperformance.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ jobs:
--set runner=job
iter8 k assert -c completed -c nofailure -c slos --timeout 60s
iter8 k report
iter8 k log
iter8 k delete
- name: load-test-http with payload in Kubernetes
Expand All @@ -84,30 +85,32 @@ jobs:
--set runner=job
iter8 k assert -c completed -c nofailure -c slos --timeout 60s
iter8 k report
iter8 k log
iter8 k delete
- name: load-test-http with multiple endpoints in Kubernetes
run: |
iter8 k launch --localChart \
--chartName charts/iter8 \
--set "tasks={ready,http,assess}" \
--set ready.deploy=httpbin \
--set ready.service=httpbin \
--set ready.timeout=60s \
--set http.endpoints.get.url=http://httpbin.default/get \
--set http.endpoints.getAnything.url=http://httpbin.default/anything \
--set http.endpoints.post.url=http://httpbin.default/post \
--set http.endpoints.post.payloadStr=hello \
--set http.duration="3s" \
--set assess.SLOs.upper.http-get/error-count=0 \
--set assess.SLOs.upper.http-get/latency-mean=50 \
--set assess.SLOs.upper.http-getAnything/error-count=0 \
--set assess.SLOs.upper.http-getAnything/latency-mean=100 \
--set assess.SLOs.upper.http-post/error-count=0 \
--set assess.SLOs.upper.http-post/latency-mean=150 \
--set runner=job
--chartName charts/iter8 \
--set "tasks={ready,http,assess}" \
--set ready.deploy=httpbin \
--set ready.service=httpbin \
--set ready.timeout=60s \
--set http.endpoints.get.url=http://httpbin.default/get \
--set http.endpoints.getAnything.url=http://httpbin.default/anything \
--set http.endpoints.post.url=http://httpbin.default/post \
--set http.endpoints.post.payloadStr=hello \
--set http.duration="3s" \
--set assess.SLOs.upper.http-get/error-count=0 \
--set assess.SLOs.upper.http-get/latency-mean=50 \
--set assess.SLOs.upper.http-getAnything/error-count=0 \
--set assess.SLOs.upper.http-getAnything/latency-mean=100 \
--set assess.SLOs.upper.http-post/error-count=0 \
--set assess.SLOs.upper.http-post/latency-mean=150 \
--set runner=job
iter8 k assert -c completed -c nofailure -c slos --timeout 300s
iter8 k report
iter8 k log
iter8 k delete
kubernetes-load-test-grpc:
Expand Down Expand Up @@ -172,50 +175,52 @@ jobs:
--set grpc.call=routeguide.RouteGuide.GetFeature \
--set grpc.dataURL=https://raw.githubusercontent.com/iter8-tools/docs/v0.13.13/samples/grpc-payload/unary.json \
--set runner=job
iter8 k assert -c completed -c nofailure -c slos --timeout 60s
iter8 k assert -c completed -c nofailure --timeout 60s
iter8 k report
iter8 k log
iter8 k delete
- name: load test grpc service with protoURL 2
run: |
set -e
export LOG_LEVEL=trace
iter8 k launch --localChart \
--chartName charts/iter8 \
--set "tasks={ready,grpc,assess}" \
--set ready.service=hello \
--set ready.timeout=60s \
--set grpc.host=routeguide.default:50051 \
--set grpc.protoURL=https://raw.githubusercontent.com/grpc/grpc-go/v1.52.0/examples/route_guide/routeguide/route_guide.proto \
--set grpc.call=routeguide.RouteGuide.GetFeature \
--set grpc.dataURL=https://raw.githubusercontent.com/iter8-tools/docs/v0.13.13/samples/grpc-payload/unary.json \
--set assess.SLOs.upper.grpc/error-rate=0 \
--set assess.SLOs.upper.grpc/latency/mean=200 \
--set assess.SLOs.upper.grpc/latency/p90=500 \
--set assess.SLOs.upper.grpc/latency/p'97\.5'=600 \
--set runner=job
--chartName charts/iter8 \
--set "tasks={ready,grpc,assess}" \
--set ready.service=hello \
--set ready.timeout=60s \
--set grpc.host=routeguide.default:50051 \
--set grpc.protoURL=https://raw.githubusercontent.com/grpc/grpc-go/v1.52.0/examples/route_guide/routeguide/route_guide.proto \
--set grpc.call=routeguide.RouteGuide.GetFeature \
--set grpc.dataURL=https://raw.githubusercontent.com/iter8-tools/docs/v0.13.13/samples/grpc-payload/unary.json \
--set assess.SLOs.upper.grpc/error-rate=0 \
--set assess.SLOs.upper.grpc/latency/mean=200 \
--set assess.SLOs.upper.grpc/latency/p90=500 \
--set assess.SLOs.upper.grpc/latency/p'97\.5'=600 \
--set runner=job
iter8 k assert -c completed -c nofailure -c slos --timeout 60s
iter8 k report
iter8 k log
iter8 k delete
- name: load test grpc service with multiple endpoints
run: |
# set -e
# iter8 k launch --localChart -l trace \
# --chartName charts/iter8 \
# --set "tasks={grpc,assess}" \
# --set grpc.host=routeguide.default:50051 \
# --set grpc.protoURL=https://raw.githubusercontent.com/grpc/grpc-go/v1.52.0/examples/route_guide/routeguide/route_guide.proto \
# --set grpc.endpoints.getFeature.call=routeguide.RouteGuide.GetFeature \
# --set grpc.endpoints.getFeature.dataURL=https://raw.githubusercontent.com/iter8-tools/docs/v0.13.13/samples/grpc-payload/unary.json \
# --set grpc.endpoints.listFeatures.call=routeguide.RouteGuide.ListFeatures \
# --set grpc.endpoints.listFeatures.dataURL=https://raw.githubusercontent.com/iter8-tools/docs/v0.13.13/samples/grpc-payload/server.json \
# --set assess.SLOs.upper.grpc/error-rate=0 \
# --set assess.SLOs.upper.grpc/latency/mean=200 \
# --set assess.SLOs.upper.grpc/latency/p90=500 \
# --set assess.SLOs.upper.grpc/latency/p'97\.5'=600 \
# --set runner=job
# iter8 k assert -c completed -c nofailure -c slos --timeout 600s
# --chartName charts/iter8 \
# --set "tasks={grpc,assess}" \
# --set grpc.host=routeguide.default:50051 \
# --set grpc.protoURL=https://raw.githubusercontent.com/grpc/grpc-go/v1.52.0/examples/route_guide/routeguide/route_guide.proto \
# --set grpc.endpoints.getFeature.call=routeguide.RouteGuide.GetFeature \
# --set grpc.endpoints.getFeature.dataURL=https://raw.githubusercontent.com/iter8-tools/docs/v0.13.13/samples/grpc-payload/unary.json \
# --set grpc.endpoints.listFeatures.call=routeguide.RouteGuide.ListFeatures \
# --set grpc.endpoints.listFeatures.dataURL=https://raw.githubusercontent.com/iter8-tools/docs/v0.13.13/samples/grpc-payload/server.json \
# --set assess.SLOs.upper.grpc-getFeature/error-rate=0 \
# --set assess.SLOs.upper.grpc-getFeature/latency/mean=50 \
# --set assess.SLOs.upper.grpc-listFeatures/error-rate=0 \
# --set assess.SLOs.upper.grpc-listFeatures/latency/mean=100 \
# --set runner=job
# iter8 k assert -c completed -c nofailure -c slos --timeout 300s
# iter8 k report
# iter8 k delete
Expand All @@ -231,29 +236,31 @@ jobs:
--set grpc.endpoints.listFeatures.call=routeguide.RouteGuide.ListFeatures \
--set grpc.endpoints.listFeatures.dataURL=https://raw.githubusercontent.com/iter8-tools/docs/v0.13.13/samples/grpc-payload/server.json \
--set runner=job
iter8 k assert -c completed -c nofailure -c slos --timeout 600s
iter8 k assert -c completed -c nofailure --timeout 300s
iter8 k report
iter8 k log
iter8 k delete
- name: load test grpc service with multiple endpoints 2
run: |
set -e
iter8 k launch --localChart -l trace \
--chartName charts/iter8 \
--set "tasks={grpc,assess}" \
--set grpc.host=routeguide.default:50051 \
--set grpc.protoURL=https://raw.githubusercontent.com/grpc/grpc-go/v1.52.0/examples/route_guide/routeguide/route_guide.proto \
--set grpc.endpoints.getFeature.call=routeguide.RouteGuide.GetFeature \
--set grpc.endpoints.getFeature.dataURL=https://raw.githubusercontent.com/iter8-tools/docs/v0.13.13/samples/grpc-payload/unary.json \
--set grpc.endpoints.listFeatures.call=routeguide.RouteGuide.ListFeatures \
--set grpc.endpoints.listFeatures.dataURL=https://raw.githubusercontent.com/iter8-tools/docs/v0.13.13/samples/grpc-payload/server.json \
--set assess.SLOs.upper.grpc/error-rate=0 \
--set assess.SLOs.upper.grpc/latency/mean=200 \
--set assess.SLOs.upper.grpc/latency/p90=500 \
--set assess.SLOs.upper.grpc/latency/p'97\.5'=600 \
--set runner=job
iter8 k assert -c completed -c nofailure -c slos --timeout 600s
--chartName charts/iter8 \
--set "tasks={grpc,assess}" \
--set grpc.host=routeguide.default:50051 \
--set grpc.protoURL=https://raw.githubusercontent.com/grpc/grpc-go/v1.52.0/examples/route_guide/routeguide/route_guide.proto \
--set grpc.endpoints.getFeature.call=routeguide.RouteGuide.GetFeature \
--set grpc.endpoints.getFeature.dataURL=https://raw.githubusercontent.com/iter8-tools/docs/v0.13.13/samples/grpc-payload/unary.json \
--set grpc.endpoints.listFeatures.call=routeguide.RouteGuide.ListFeatures \
--set grpc.endpoints.listFeatures.dataURL=https://raw.githubusercontent.com/iter8-tools/docs/v0.13.13/samples/grpc-payload/server.json \
--set assess.SLOs.upper.grpc-getFeature/error-rate=0 \
--set assess.SLOs.upper.grpc-getFeature/latency/mean=50 \
--set assess.SLOs.upper.grpc-listFeatures/error-rate=0 \
--set assess.SLOs.upper.grpc-listFeatures/latency/mean=100 \
--set runner=job
iter8 k assert -c completed -c nofailure -c slos --timeout 300s
iter8 k report
iter8 k log
iter8 k delete
kubernetes-load-test-grpc2:
Expand Down Expand Up @@ -299,6 +306,7 @@ jobs:
--set runner=job
iter8 k assert -c completed -c nofailure -c slos --timeout 60s
iter8 k report
iter8 k log
iter8 k delete
- name: load test grpc service with proto/data/metadata URLs
Expand All @@ -319,4 +327,5 @@ jobs:
--set runner=job
iter8 k assert -c completed -c nofailure -c slos --timeout 60s
iter8 k report
iter8 k log
iter8 k delete

0 comments on commit 37fb151

Please sign in to comment.