Skip to content

Commit a0785fc

Browse files
committed
run stock cri test on the old CRI runner
Also, run this test on Mondays and not on commits. Signed-off-by: Dmitrii Ustiugov <dmitrii.ustiugov@epfl.ch>
1 parent b376dff commit a0785fc

File tree

1 file changed

+23
-32
lines changed

1 file changed

+23
-32
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,55 +1,46 @@
11
name: stock Containerd CRI tests
22

33
on:
4-
push:
5-
branches: [ main ]
6-
paths-ignore:
7-
- 'docs/**'
8-
- '**.md'
9-
- 'function-images/**'
10-
pull_request:
11-
branches: [ main ]
12-
paths-ignore:
13-
- 'docs/**'
14-
- '**.md'
15-
- 'function-images/**'
164
workflow_dispatch:
175
schedule:
18-
- cron: '0 0 * * *'
6+
- cron: '0 9 * * *'
197

208
env:
219
GOOS: linux
2210
GO111MODULE: on
2311
TMPDIR: /root/tmp/
24-
KUBECONFIG: /etc/kubernetes/admin.conf
2512

2613
jobs:
2714
stock-containerd-test:
2815
name: Stock Containerd test
29-
runs-on: [stock-knative]
16+
runs-on: [self-hosted, cri]
3017

3118
steps:
32-
- name: Setup TMPDIR
33-
run: mkdir -p $TMPDIR
19+
- name: Setup TMPDIR
20+
run: mkdir -p $TMPDIR
3421

35-
- name: Check out code into the Go module directory
36-
uses: actions/checkout@v2
22+
- name: Check out code into the Go module directory
23+
uses: actions/checkout@v2
3724

38-
- name: Fix namespace
39-
run: kubectl config set-context --current --namespace=default
25+
- name: Start Containerd
26+
run: sudo containerd &
4027

41-
- name: Create helloworld container
42-
run: kn service create helloworld-go --image gcr.io/knative-samples/helloworld-go --env TARGET="vHive CRI test"
28+
- name: Create k8s cluster
29+
run: ./scripts/cluster/create_one_node_cluster.sh stock-only && sleep 2m
4330

44-
- name: Invoke the deployed function
45-
run: |
46-
set -x
31+
- name: Deploy zipkin
32+
env:
33+
KUBECONFIG: /etc/kubernetes/admin.conf
34+
run: ./scripts/setup_zipkin.sh && sleep 5s
4735

48-
export NODEPORT=$(kubectl get svc kourier-ingress -n kourier-system -o=jsonpath='{.spec.ports[0].nodePort}')
49-
export URL=$(kubectl get ksvc -n default helloworld-go -o jsonpath='{.status.url}')
36+
- name: Create helloworld container
37+
run: KUBECONFIG=/etc/kubernetes/admin.conf kn service create helloworld-go --image gcr.io/knative-samples/helloworld-go --env TARGET="vHive CRI test"
5038

51-
curl $URL:$NODEPORT
39+
- name: Invoke the deployed function
40+
run: curl http://helloworld-go.default.192.168.1.240.sslip.io
5241

53-
- name: Cleaning
54-
if: ${{ always() }}
55-
run: kn service delete helloworld-go --wait
42+
- name: Cleaning
43+
if: ${{ always() }}
44+
run: |
45+
kn service delete helloworld-go --wait
46+
./scripts/github_runner/clean_cri_runner.sh stock-only

0 commit comments

Comments
 (0)