-
Notifications
You must be signed in to change notification settings - Fork 92
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
split CRI test workflow into 3 separate tests
Signed-off-by: Shyam Jesal <s.jesalpura@gmail.com>
- Loading branch information
1 parent
24aee2e
commit 025d79f
Showing
3 changed files
with
108 additions
and
70 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
name: stock containerd tests | ||
|
||
on: | ||
push: | ||
branches: [ master ] | ||
paths-ignore: | ||
- 'docs/**' | ||
- '**.md' | ||
pull_request: | ||
branches: [ master ] | ||
paths-ignore: | ||
- 'docs/**' | ||
- '**.md' | ||
workflow_dispatch: | ||
|
||
env: | ||
GOOS: linux | ||
GO111MODULE: on | ||
|
||
jobs: | ||
stock-containerd-test: | ||
name: Stock Containerd test | ||
runs-on: [self-hosted, cri] | ||
|
||
steps: | ||
- name: Setup TMPDIR | ||
run: mkdir -p $HOME/tmp | ||
|
||
- name: Check out code into the Go module directory | ||
uses: actions/checkout@v2 | ||
|
||
- name: Start Containerd | ||
run: sudo containerd & | ||
|
||
- name: Create k8s cluster | ||
run: ./scripts/cluster/create_one_node_cluster.sh stock-only && sleep 2m | ||
|
||
- name: Deploy zipkin | ||
env: | ||
KUBECONFIG: /etc/kubernetes/admin.conf | ||
run: ./scripts/setup_zipkin.sh && sleep 5s | ||
|
||
- name: Create helloworld container | ||
run: KUBECONFIG=/etc/kubernetes/admin.conf kn service create helloworld-go --image gcr.io/knative-samples/helloworld-go --env TARGET="vHive CRI test" | ||
|
||
- name: Cleaning | ||
if: ${{ always() }} | ||
run: ./scripts/github_runner/clean_cri_runner.sh stock-only |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
name: vHive cri test | ||
|
||
on: | ||
push: | ||
branches: [ master ] | ||
paths-ignore: | ||
- 'docs/**' | ||
- '**.md' | ||
pull_request: | ||
branches: [ master ] | ||
paths-ignore: | ||
- 'docs/**' | ||
- '**.md' | ||
workflow_dispatch: | ||
|
||
env: | ||
GOOS: linux | ||
GO111MODULE: on | ||
|
||
jobs: | ||
cri-tests: | ||
name: CRI tests | ||
runs-on: [self-hosted, cri] | ||
|
||
steps: | ||
- name: Setup TMPDIR | ||
run: mkdir -p $HOME/tmp | ||
|
||
- name: Set up Go 1.15 | ||
env: | ||
GOROOT: $HOME/go | ||
GOCACHE: /root/tmp/gocache | ||
GOPATH: /root/tmp/gopath | ||
uses: actions/setup-go@v2 | ||
with: | ||
go-version: 1.15 | ||
|
||
- name: Check out code into the Go module directory | ||
uses: actions/checkout@v2 | ||
|
||
- name: Setup firecracker-containerd | ||
run: ./scripts/setup_firecracker_containerd.sh | ||
|
||
- name: Build | ||
env: | ||
GOCACHE: /root/tmp/gocache | ||
GOPATH: /root/tmp/gopath | ||
run: go build | ||
|
||
- name: Run vHive CRI tests | ||
env: | ||
TMPDIR: /root/tmp/ | ||
GOCACHE: /root/tmp/gocache | ||
GOPATH: /root/tmp/gopath | ||
run: make test-cri | ||
|
||
- name: Cleaning | ||
if: ${{ always() }} | ||
run: ./scripts/github_runner/clean_cri_runner.sh |