Skip to content

Commit

Permalink
Adding kind multiversion testing
Browse files Browse the repository at this point in the history
Signed-off-by: John O'Loughlin <[email protected]>
  • Loading branch information
johnoloughlin committed Oct 3, 2023
1 parent 5510096 commit 55deda8
Show file tree
Hide file tree
Showing 3 changed files with 67 additions and 37 deletions.
34 changes: 0 additions & 34 deletions .github/workflows/e2e_latest_vpp.yml

This file was deleted.

60 changes: 60 additions & 0 deletions .github/workflows/weekly_e2e.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
name: Weekly_E2E
on:
schedule:
- cron: "37 4 * * 0"
pull_request:
paths:
- '**weekly_e2e.yml'
push:
branches:
- master
paths:
- '**weekly_e2e.yml'
jobs:

vpp_latest:
name: E2E_vpp_latest
runs-on: hugepage-runner
steps:
- name: Set up Go
uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe # v4.1.0
with:
go-version: 1.20.1
- uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0
- name: vpp_ligato_latest_container
run: source ./ci/ci.sh && vpp_ligato_latest_container
- name: install_go_kubectl_kind
run: source ./ci/ci.sh && install_go_kubectl_kind
- name: create_kind_cluster
run: source ./ci/ci.sh && create_kind_cluster
- name: deploy_multus
run: source ./ci/ci.sh && deploy_multus
- name: vpp_e2e_test
run: source ./ci/ci.sh && vpp_e2e_test

kind_multiversion:
name: E2E_kind_multiversion-${{ matrix.kubernetes_version }}
runs-on: hugepage-runner
strategy:
matrix:
kubernetes_version: [v1.28.0,v1.27.0,v1.26.0]
steps:
- name: Set up Go
uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe # v4.1.0
with:
go-version: 1.20.1
- uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0
- name: install_go_kubectl_kind
run: source ./ci/ci.sh && install_go_kubectl_kind
- name: create_kind_cluster
run: source ./ci/ci.sh && create_kind_cluster -v ${{ matrix.kubernetes_version }}
- name: deploy_multus
run: source ./ci/ci.sh && deploy_multus
- name: vpp_e2e_test
run: source ./ci/ci.sh && vpp_e2e_test
- name: build_ovs_container
run: source ./ci/ci.sh && build_ovs_container
- name: build_test-pmd_container
run: source ./ci/ci.sh && build_testpmd_container
- name: ovs_e2e_test
run: source ./ci/ci.sh && ovs_e2e_test
10 changes: 7 additions & 3 deletions ci/ci.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,13 @@ wget -q https://dl.k8s.io/release/v1.27.3/bin/linux/amd64/kubectl -O /home/runne
chmod +x /home/runner/go/bin/kubectl
}


create_kind_cluster(){
kind create cluster
kubectl_version="v1.27.3"
case "$1" in
-v | --version ) kubectl_version="$2";
esac

kind create cluster --image "kindest/node:$kubectl_version"
kubectl get all --all-namespaces

#docker run -itd --device=/dev/hugepages:/dev/hugepages --privileged -v "$(pwd)/docker/vpp-centos-userspace-cni/:/etc/vpp/" --name vpp ligato/vpp-base
Expand Down Expand Up @@ -138,7 +142,7 @@ run_all(){
# it gives much better logging breakdown on github
# the run_all function is only used for manual deployment
install_go_kubectl_kind
create_kind_cluster
create_kind_cluster -v v1.27.3
deploy_multus
vpp_e2e_test
build_ovs_container
Expand Down

0 comments on commit 55deda8

Please sign in to comment.