Skip to content

Commit

Permalink
Fix verifyuserexperience workflow (#1631)
Browse files Browse the repository at this point in the history
* Fix verifyuserexperience workflow

Signed-off-by: Alan Cha <Alan.cha1@ibm.com>

* Update metrics service query in verifyuserexperience workflow

Signed-off-by: Alan Cha <Alan.cha1@ibm.com>

* Update other workflows

Signed-off-by: Alan Cha <Alan.cha1@ibm.com>

---------

Signed-off-by: Alan Cha <Alan.cha1@ibm.com>
  • Loading branch information
Alan-Cha authored Sep 8, 2023
1 parent f873bca commit 8b2a9f7
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 38 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/lintcharts2.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ on:
- charts/**

jobs:
http-experiment:
name: Lint HTTP experiment
http:
name: Lint HTTP performance test
runs-on: ubuntu-latest

steps:
Expand Down Expand Up @@ -49,8 +49,8 @@ jobs:
with:
directory: iter8.yaml

grpc-experiment:
name: Lint gRPC experiment
grpc:
name: Lint gRPC performance test
runs-on: ubuntu-latest

steps:
Expand Down
24 changes: 12 additions & 12 deletions .github/workflows/testcharts.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ jobs:

# TODO: add check to verify when a change is made to kustomize, a similar change is made to charts

http-experiment:
http:
name: HTTP performance test
needs: get_versions
runs-on: ubuntu-latest
Expand Down Expand Up @@ -110,9 +110,9 @@ jobs:
- name: Check GET /httpDashboard
if: steps.modified-files.outputs.any_modified == 'true'
run: |
curl "http://localhost:8080/httpDashboard?namespace=default&experiment=httpbin-test" -f
curl "http://localhost:8080/httpDashboard?namespace=default&test=httpbin-test" -f
http-payload-experiment:
http-payload:
name: HTTP performance test with payload
needs: get_versions
runs-on: ubuntu-latest
Expand Down Expand Up @@ -179,9 +179,9 @@ jobs:
- name: Check GET /httpDashboard
if: steps.modified-files.outputs.any_modified == 'true'
run: |
curl "http://localhost:8080/httpDashboard?namespace=default&experiment=httpbin-test" -f
curl "http://localhost:8080/httpDashboard?namespace=default&test=httpbin-test" -f
http-multiple-experiment:
http-multiple:
name: HTTP performance test with multiple endpoints
needs: get_versions
runs-on: ubuntu-latest
Expand Down Expand Up @@ -250,9 +250,9 @@ jobs:
- name: Check GET /httpDashboard
if: steps.modified-files.outputs.any_modified == 'true'
run: |
curl "http://localhost:8080/httpDashboard?namespace=default&experiment=httpbin-test" -f
curl "http://localhost:8080/httpDashboard?namespace=default&test=httpbin-test" -f
grpc-experiment:
grpc:
name: gRPC performance test
needs: get_versions
runs-on: ubuntu-latest
Expand Down Expand Up @@ -333,9 +333,9 @@ jobs:
- name: Check GET /grpcDashboard
if: steps.modified-files.outputs.any_modified == 'true'
run: |
curl "http://localhost:8080/grpcDashboard?namespace=default&experiment=routeguide-test" -f
curl "http://localhost:8080/grpcDashboard?namespace=default&test=routeguide-test" -f
grpc-multiple-experiment:
grpc-multiple:
name: gRPC performance test with multiple endpoints
needs: get_versions
runs-on: ubuntu-latest
Expand Down Expand Up @@ -418,9 +418,9 @@ jobs:
- name: Check GET /grpcDashboard
if: steps.modified-files.outputs.any_modified == 'true'
run: |
curl "http://localhost:8080/grpcDashboard?namespace=default&experiment=routeguide-test" -f
curl "http://localhost:8080/grpcDashboard?namespace=default&test=routeguide-test" -f
grpc-experiment2:
grpc2:
name: gRPC performance test 2
needs: get_versions
runs-on: ubuntu-latest
Expand Down Expand Up @@ -488,4 +488,4 @@ jobs:
- name: Check GET /grpcDashboard
if: steps.modified-files.outputs.any_modified == 'true'
run: |
curl "http://localhost:8080/grpcDashboard?namespace=default&experiment=hello-test" -f
curl "http://localhost:8080/grpcDashboard?namespace=default&test=hello-test" -f
44 changes: 22 additions & 22 deletions .github/workflows/verifyuserexperience.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ on:
workflow_dispatch:

jobs:
http-experiment:
http:
name: HTTP performance test
runs-on: ubuntu-latest

Expand Down Expand Up @@ -40,7 +40,7 @@ jobs:
--set "tasks={http}" \
--set http.url="http://httpbin.default/get" \
--set logLevel=trace
kubectl wait --for=condition=complete --timeout=180s job/default-1-job
kubectl wait --for=condition=complete --timeout=180s job/httpbin-test-1-job
- name: Get Kubernetes status
run: |
Expand All @@ -57,9 +57,9 @@ jobs:
- name: Check GET /httpDashboard
run: |
curl "http://localhost:8080/httpDashboard?namespace=default&experiment=default" -f
curl "http://localhost:8080/httpDashboard?namespace=default&test=httpbin-test" -f
http-payload-experiment:
http-payload:
name: HTTP performance test with payload
runs-on: ubuntu-latest

Expand Down Expand Up @@ -88,7 +88,7 @@ jobs:
--set http.url="http://httpbin.default/post" \
--set http.payloadStr=hello \
--set logLevel=trace
kubectl wait --for=condition=complete --timeout=180s job/default-1-job
kubectl wait --for=condition=complete --timeout=180s job/httpbin-test-1-job
- name: Get Kubernetes status
run: |
Expand All @@ -106,9 +106,9 @@ jobs:
- name: Check GET /httpDashboard
run: |
curl "http://localhost:8080/httpDashboard?namespace=default&experiment=default" -f
curl "http://localhost:8080/httpDashboard?namespace=default&test=httpbin-test" -f
http-multiple-experiment:
http-multiple:
name: HTTP performance test with multiple endpoints
runs-on: ubuntu-latest

Expand Down Expand Up @@ -138,7 +138,7 @@ jobs:
--set http.endpoints.post.url=http://httpbin.default/post \
--set http.endpoints.post.payloadStr=hello \
--set logLevel=trace
kubectl wait --for=condition=complete --timeout=180s job/default-1-job
kubectl wait --for=condition=complete --timeout=180s job/httpbin-test-1-job
- name: Get Kubernetes status
run: |
Expand All @@ -155,9 +155,9 @@ jobs:
- name: Check GET /httpDashboard
run: |
curl "http://localhost:8080/httpDashboard?namespace=default&experiment=default" -f
curl "http://localhost:8080/httpDashboard?namespace=default&test=httpbin-test" -f
grpc-experiment:
grpc:
name: gRPC performance test
runs-on: ubuntu-latest

Expand Down Expand Up @@ -199,7 +199,7 @@ 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 logLevel=trace
kubectl wait --for=condition=complete --timeout=180s job/default-1-job
kubectl wait --for=condition=complete --timeout=180s job/routeguide-test-1-job
- name: Get Kubernetes status
run: |
Expand All @@ -216,9 +216,9 @@ jobs:
- name: Check GET /grpcDashboard
run: |
curl "http://localhost:8080/grpcDashboard?namespace=default&experiment=default" -f
curl "http://localhost:8080/grpcDashboard?namespace=default&test=routeguide-test" -f
grpc-multiple-experiment:
grpc-multiple:
name: gRPC performance test with multiple endpoints
runs-on: ubuntu-latest

Expand Down Expand Up @@ -262,7 +262,7 @@ 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 logLevel=trace
kubectl wait --for=condition=complete --timeout=180s job/default-1-job
kubectl wait --for=condition=complete --timeout=180s job/routeguide-test-1-job
- name: Get Kubernetes status
run: |
Expand All @@ -279,9 +279,9 @@ jobs:
- name: Check GET /grpcDashboard
run: |
curl "http://localhost:8080/grpcDashboard?namespace=default&experiment=default" -f
curl "http://localhost:8080/grpcDashboard?namespace=default&test=routeguide-test" -f
grpc-experiment2:
grpc2:
name: gRPC performance test 2
runs-on: ubuntu-latest

Expand Down Expand Up @@ -311,7 +311,7 @@ jobs:
--set grpc.call="helloworld.Greeter.SayHello" \
--set grpc.protoURL="https://raw.githubusercontent.com/grpc/grpc-go/master/examples/helloworld/helloworld/helloworld.proto" \
--set logLevel=trace
kubectl wait --for=condition=complete --timeout=180s job/default-1-job
kubectl wait --for=condition=complete --timeout=180s job/hello-test-1-job
- name: Get Kubernetes status
run: |
Expand All @@ -328,7 +328,7 @@ jobs:
- name: Check GET /grpcDashboard
run: |
curl "http://localhost:8080/grpcDashboard?namespace=default&experiment=default" -f
curl "http://localhost:8080/grpcDashboard?namespace=default&test=hello-test" -f
readiness:
name: Readiness test
Expand Down Expand Up @@ -362,7 +362,7 @@ jobs:
--set ready.timeout=60s \
--set http.url=http://httpbin.default/get \
--set logLevel=trace
kubectl wait --for=condition=complete --timeout=180s job/default-1-job
kubectl wait --for=condition=complete --timeout=180s job/httpbin-test-1-job
- name: Get Kubernetes status
run: |
Expand All @@ -379,7 +379,7 @@ jobs:
- name: Check GET /httpDashboard
run: |
curl "http://localhost:8080/httpDashboard?namespace=default&experiment=default" -f
curl "http://localhost:8080/httpDashboard?namespace=default&test=httpbin-test" -f
readiness-with-namespace:
name: Readiness test with namespace
Expand Down Expand Up @@ -419,7 +419,7 @@ jobs:
--set ready.namespace=default \
--set http.url=http://httpbin.default/get \
--set logLevel=trace
kubectl wait --for=condition=complete --timeout=180s -n experiments job/default-1-job
kubectl wait --for=condition=complete --timeout=180s -n experiments job/httpbin-test-1-job
- name: Get Kubernetes status
run: |
Expand All @@ -436,4 +436,4 @@ jobs:
- name: Check GET /httpDashboard
run: |
curl "http://localhost:8080/httpDashboard?namespace=experiments&experiment=default" -f
curl "http://localhost:8080/httpDashboard?namespace=experiments&test=httpbin-test" -f

0 comments on commit 8b2a9f7

Please sign in to comment.