Skip to content

Commit 658bd34

Browse files
authored
Bump versions and add verifyuserexperience workflow (#1593)
* Bump version Signed-off-by: Alan Cha <[email protected]> * Give more time for experiment tests to run Signed-off-by: Alan Cha <[email protected]> * Add verify user experience workflow Signed-off-by: Alan Cha <[email protected]> * Bump version Signed-off-by: Alan Cha <[email protected]> * Remove extra file Signed-off-by: Alan Cha <[email protected]> * Add sample services to testcode workflow Signed-off-by: Alan Cha <[email protected]> * Fix broken test Signed-off-by: Alan Cha <[email protected]> --------- Signed-off-by: Alan Cha <[email protected]>
1 parent ea5048d commit 658bd34

File tree

10 files changed

+63
-38
lines changed

10 files changed

+63
-38
lines changed

.github/workflows/releaseassets.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,4 +91,4 @@ jobs:
9191
tags: ${{ env.OWNER }}/iter8:${{ env.VERSION }},${{ env.OWNER }}/iter8:${{ env.MAJOR_MINOR_VERSION }},${{ env.OWNER }}/iter8:latest
9292
push: true
9393
build-args: |
94-
TAG=v${{ env.VERSION }}
94+
TAG=v${{ env.VERSION }}

.github/workflows/releasecharts.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,4 +40,4 @@ jobs:
4040
with:
4141
config: config.yaml
4242
env:
43-
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
43+
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}"

.github/workflows/testcharts.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ jobs:
133133
files: charts/iter8
134134

135135
- name: Install Iter8
136-
run: GOBIN=/usr/local/bin go install github.com/iter8-tools/iter8@v0.14
136+
run: GOBIN=/usr/local/bin go install github.com/iter8-tools/iter8@v0.16
137137
if: steps.modified-files.outputs.any_modified == 'true'
138138

139139
- name: Start kind cluster ${{ matrix.version }}
@@ -204,7 +204,7 @@ jobs:
204204
files: charts/iter8
205205

206206
- name: Install Iter8
207-
run: GOBIN=/usr/local/bin go install github.com/iter8-tools/iter8@v0.14
207+
run: GOBIN=/usr/local/bin go install github.com/iter8-tools/iter8@v0.16
208208
if: steps.modified-files.outputs.any_modified == 'true'
209209

210210
- name: Start kind cluster ${{ matrix.version }}
@@ -362,7 +362,7 @@ jobs:
362362
files: charts/iter8
363363

364364
- name: Install Iter8
365-
run: GOBIN=/usr/local/bin go install github.com/iter8-tools/iter8@v0.14
365+
run: GOBIN=/usr/local/bin go install github.com/iter8-tools/iter8@v0.16
366366
if: steps.modified-files.outputs.any_modified == 'true'
367367

368368
- name: Start kind cluster ${{ matrix.version }}
@@ -449,7 +449,7 @@ jobs:
449449
files: charts/iter8
450450

451451
- name: Install Iter8
452-
run: GOBIN=/usr/local/bin go install github.com/iter8-tools/iter8@v0.14
452+
run: GOBIN=/usr/local/bin go install github.com/iter8-tools/iter8@v0.16
453453
if: steps.modified-files.outputs.any_modified == 'true'
454454

455455
- name: Start kind cluster ${{ matrix.version }}

.github/workflows/testcode.yaml

Lines changed: 47 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,13 @@ jobs:
2121
uses: actions/setup-go@v4
2222
with:
2323
go-version: 1.19
24+
2425
- name: Check out code into the Go module directory
2526
uses: actions/checkout@v3
27+
2628
- name: Test and compute coverage
2729
run: make coverage # includes vet and lint
30+
2831
- name: Enforce coverage
2932
run: |
3033
export COVERAGE=$(go tool cover -func coverage.out | grep total | awk '{print substr($3, 1, length($3)-1)}')
@@ -44,21 +47,30 @@ jobs:
4447
uses: actions/setup-go@v4
4548
with:
4649
go-version: 1.19
50+
4751
- name: Check out code into the Go module directory
4852
uses: actions/checkout@v3
53+
4954
- name: Build and install Iter8
5055
run: make install
56+
5157
- name: Start kind cluster
5258
uses: helm/[email protected]
5359
with:
5460
wait: 300s
5561

56-
# # No need to create httpbin application because only testing CLI
57-
#
58-
# - name: Create httpbin application
59-
# run: |
60-
# kubectl create deploy httpbin --image=kennethreitz/httpbin --port=80
61-
# kubectl expose deploy httpbin --port=80
62+
# Necessary for the experiment to succeed and job to complete
63+
- name: Create httpbin application
64+
run: |
65+
kubectl create deployment httpbin --image=kennethreitz/httpbin
66+
kubectl expose deployment httpbin --type=ClusterIP --port=80
67+
kubectl wait --for=condition=available --timeout=60s deploy/httpbin
68+
69+
# Necessary for the experiment to succeed and job to complete
70+
- name: Install controller
71+
run: |
72+
helm install --repo https://iter8-tools.github.io/iter8 iter8 controller --set logLevel=trace
73+
kubectl rollout status --watch --timeout=60s statefulset/iter8
6274
6375
- name: CLI test with http task
6476
run: |
@@ -81,6 +93,9 @@ jobs:
8193
iter8 k log
8294
iter8 k delete
8395
96+
# Not necessary to check the metrics server for data
97+
# Beyond the scope of the test suite (only testing CLI, not the released image)
98+
8499
cli-test-grpc:
85100
name: CLI test with grpc task
86101
runs-on: ubuntu-latest
@@ -89,8 +104,10 @@ jobs:
89104
uses: actions/setup-go@v4
90105
with:
91106
go-version: 1.19
107+
92108
- name: Check out code into the Go module directory
93109
uses: actions/checkout@v3
110+
94111
- name: Build and install Iter8
95112
run: make install
96113

@@ -99,21 +116,26 @@ jobs:
99116
with:
100117
wait: 300s
101118

102-
# # No need to create routeguide application because only testing CLI
103-
#
104-
# - name: Create routeguide application
105-
# run: |
106-
# kubectl create deployment routeguide --image=golang --port=50051 \
107-
# -- bash -c "git clone -b v1.52.0 --depth 1 https://github.com/grpc/grpc-go; cd grpc-go/examples/route_guide; sed -i "''" "'"s/localhost//"'" server/server.go; go run server/server.go"
108-
# kubectl expose deployment routeguide --port=50051
109-
# kubectl wait --for=condition=available --timeout=60s deployment/routeguide
110-
111-
# - name: Test gRPC service with grpcurl
112-
# run: |
113-
# curl -sO https://gist.githubusercontent.com/kalantar/510737f0fd58c0432a08e5b6e45ec97f/raw/524d6660284bf653ce0f29f3a25ed0e913c3df80/grpcurl-routeguide.yaml
114-
# kubectl apply -f grpcurl-routeguide.yaml
115-
# sleep 180
116-
# kubectl logs deploy/sleep
119+
# Necessary for the experiment to succeed and job to complete
120+
- name: Create routeguide application
121+
run: |
122+
kubectl create deployment routeguide --image=golang --port=50051 \
123+
-- bash -c "git clone -b v1.52.0 --depth 1 https://github.com/grpc/grpc-go; cd grpc-go/examples/route_guide; sed -i "''" "'"s/localhost//"'" server/server.go; go run server/server.go"
124+
kubectl expose deployment routeguide --port=50051
125+
kubectl wait --for=condition=available --timeout=60s deployment/routeguide
126+
127+
# Necessary for the experiment to succeed and job to complete
128+
- name: Test gRPC service with grpcurl
129+
run: |
130+
curl -sO https://gist.githubusercontent.com/kalantar/510737f0fd58c0432a08e5b6e45ec97f/raw/524d6660284bf653ce0f29f3a25ed0e913c3df80/grpcurl-routeguide.yaml
131+
kubectl apply -f grpcurl-routeguide.yaml
132+
sleep 180
133+
kubectl logs deploy/sleep
134+
135+
- name: Install controller
136+
run: |
137+
helm install --repo https://iter8-tools.github.io/iter8 iter8 controller --set logLevel=trace
138+
kubectl rollout status --watch --timeout=60s statefulset/iter8
117139
118140
- name: CLI test with grpc task
119141
run: |
@@ -136,4 +158,7 @@ jobs:
136158
- name: Try other iter8 k commands
137159
run: |
138160
iter8 k log
139-
iter8 k delete
161+
iter8 k delete
162+
163+
# Not necessary to check the metrics server for data
164+
# Beyond the scope of the test suite (only testing CLI, not the released image)

.github/workflows/verifyuserexperience.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ jobs:
6767

6868
steps:
6969
- name: Install Iter8
70-
run: GOBIN=/usr/local/bin go install github.com/iter8-tools/iter8@v0.14
70+
run: GOBIN=/usr/local/bin go install github.com/iter8-tools/iter8@v0.16
7171

7272
- name: Start kind cluster
7373
uses: helm/[email protected]
@@ -117,7 +117,7 @@ jobs:
117117

118118
steps:
119119
- name: Install Iter8
120-
run: GOBIN=/usr/local/bin go install github.com/iter8-tools/iter8@v0.14
120+
run: GOBIN=/usr/local/bin go install github.com/iter8-tools/iter8@v0.16
121121

122122
- name: Start kind cluster
123123
uses: helm/[email protected]
@@ -232,7 +232,7 @@ jobs:
232232

233233
steps:
234234
- name: Install Iter8
235-
run: GOBIN=/usr/local/bin go install github.com/iter8-tools/iter8@v0.14
235+
run: GOBIN=/usr/local/bin go install github.com/iter8-tools/iter8@v0.16
236236

237237
- name: Start kind cluster
238238
uses: helm/[email protected]
@@ -297,7 +297,7 @@ jobs:
297297

298298
steps:
299299
- name: Install Iter8
300-
run: GOBIN=/usr/local/bin go install github.com/iter8-tools/iter8@v0.14
300+
run: GOBIN=/usr/local/bin go install github.com/iter8-tools/iter8@v0.16
301301

302302
- name: Start kind cluster
303303
uses: helm/[email protected]

base/util.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,11 @@ import (
1919

2020
// MajorMinor is the minor version of Iter8
2121
// set this manually whenever the major or minor version changes
22-
var MajorMinor = "v0.15"
22+
var MajorMinor = "v0.16"
2323

2424
// Version is the semantic version of Iter8 (with the `v` prefix)
2525
// Version is intended to be set using LDFLAGS at build time
26-
var Version = "v0.15.0"
26+
var Version = "v0.16.0"
2727

2828
const (
2929
toYAMLString = "toYaml"

testdata/controllers/blue-green-http-kserve/initialize.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ metadata:
3232
labels:
3333
app.kubernetes.io/managed-by: iter8
3434
iter8.tools/kind: routemap
35-
iter8.tools/version: v0.15
35+
iter8.tools/version: v0.16
3636
data:
3737
strSpec: |
3838
versions:

testdata/controllers/canary-http-kserve/initialize.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ metadata:
3232
labels:
3333
app.kubernetes.io/managed-by: iter8
3434
iter8.tools/kind: routemap
35-
iter8.tools/version: v0.15
35+
iter8.tools/version: v0.16
3636
data:
3737
strSpec: |
3838
versions:

testdata/controllers/mirror-grpc-kserve/initialize.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ metadata:
4343
labels:
4444
app.kubernetes.io/managed-by: iter8
4545
iter8.tools/kind: routemap
46-
iter8.tools/version: v0.15
46+
iter8.tools/version: v0.16
4747
data:
4848
strSpec: |
4949
versions:

testdata/controllers/mirror/default-routing.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ metadata:
4949
labels:
5050
app.kubernetes.io/managed-by: iter8
5151
iter8.tools/kind: routemap
52-
iter8.tools/version: v0.15
52+
iter8.tools/version: v0.16
5353
data:
5454
strSpec: |
5555
versions:

0 commit comments

Comments
 (0)