Skip to content

Commit

Permalink
Merge pull request #761 from nik-netlox/main
Browse files Browse the repository at this point in the history
gh-87 Ubuntu24 CICD workflow files added
  • Loading branch information
UltraInstinct14 authored Aug 15, 2024
2 parents baab58f + 8ce0ca5 commit e795498
Show file tree
Hide file tree
Showing 18 changed files with 744 additions and 104 deletions.
34 changes: 10 additions & 24 deletions .github/workflows/advanced-lb-sanity-ubuntu-22.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
name: Adv-LB-Sanity-CI-Ubuntu-22

on:
#push:
# branches:
# - main
#pull_request:
# branches: [ "main" ]
schedule:
# Runs "At 18:00 UTC every day-of-week"
- cron: '0 18 * * *'
workflow_dispatch:
inputs:
logLevel:
Expand All @@ -14,11 +12,17 @@ on:
default: 'warning'
tags:
description: 'Advanced LB Sanity ubuntu 22'
workflow_run:
workflows: ["Docker-Multi-Arch"]
types:
- completed

jobs:
build:
name: advanced-lb-sanity-ubuntu-22
runs-on: ubuntu-22.04
if: github.repository == 'loxilb-io/loxilb'
&& github.event.inputs.tagName == ''
steps:
- uses: actions/checkout@v2
with:
Expand All @@ -28,25 +32,7 @@ jobs:
with:
go-version: '>=1.18.0'
- run: sudo apt-get update
- run: sudo apt-get -y install clang-13 llvm libelf-dev gcc-multilib libpcap-dev linux-tools-$(uname -r) elfutils dwarves git libbsd-dev bridge-utils unzip build-essential bison flex iperf iproute2 nodejs socat ethtool lksctp-tools
- run: |
git clone --recurse-submodules https://github.com/loxilb-io/iproute2 iproute2-main
cd iproute2-main/libbpf/src/
sudo make install
mkdir build
DESTDIR=build OBJDIR=build make install
cd -
cd iproute2-main/
export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:`pwd`/libbpf/src/ && LIBBPF_FORCE=on LIBBPF_DIR=`pwd`/libbpf/src/build ./configure && make && sudo cp -f tc/tc /usr/local/sbin/ntc && cd -
- run: loxilb-ebpf/utils/mkllb_bpffs.sh
- run: sudo -E env "PATH=$PATH" make
- run: sudo -E env "PATH=$PATH" make test
- run: docker pull ghcr.io/loxilb-io/loxilb:latest
- run: docker run -u root --cap-add SYS_ADMIN --restart unless-stopped --privileged -dit -v /dev/log:/dev/log --name loxilb ghcr.io/loxilb-io/loxilb:latest
- run: pwd && ls && sudo -E env "PATH=$PATH" make docker-cp
- run: docker exec -dit loxilb mkllb_bpffs
- run: id=`docker ps -f name=loxilb | cut -d " " -f 1 | grep -iv "CONTAINER"` && docker commit $id ghcr.io/loxilb-io/loxilb:latest
- run: docker stop loxilb && docker rm loxilb
- run: sudo apt-get -y install linux-tools-$(uname -r) bridge-utils iperf iproute2 nodejs socat ethtool lksctp-tools
- run: |
cd cicd/k8slbsim/
./config.sh
Expand Down
89 changes: 89 additions & 0 deletions .github/workflows/advanced-lb-sanity-ubuntu-24.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,89 @@
name: Adv-LB-Sanity-CI-Ubuntu-24

on:
schedule:
# Runs "At 11:00 UTC every day-of-week"
- cron: '0 11 * * *'
workflow_dispatch:
inputs:
logLevel:
description: 'Log level'
required: true
default: 'warning'
tags:
description: 'Advanced LB Sanity ubuntu 24'
workflow_run:
workflows: ["Docker-Multi-Arch"]
types:
- completed

jobs:
build:
name: advanced-lb-sanity-ubuntu-24
runs-on: ubuntu-24.04
if: github.repository == 'loxilb-io/loxilb'
&& github.event.inputs.tagName == ''
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- uses: actions/setup-python@v2
- uses: actions/setup-go@v3
with:
go-version: '>=1.18.0'
- run: sudo apt-get update
- run: sudo apt-get -y install linux-tools-$(uname -r) bridge-utils iperf iproute2 nodejs socat ethtool lksctp-tools
- run: |
cd cicd/k8slbsim/
./config.sh
./validation.sh
./rmconfig.sh
cd -
- run: |
cd cicd/onearml2/
./config.sh
./validation.sh
./rmconfig.sh
cd -
- run: |
cd cicd/ulcltcplb/
./config.sh
./validation.sh
./rmconfig.sh
cd -
- run: |
cd cicd/ulclsctplb/
./config.sh
./validation.sh
./rmconfig.sh
cd -
- run: |
cd cicd/tcptunlb/
./config.sh
./validation.sh
./rmconfig.sh
cd -
- run: |
cd cicd/sctptunlb/
./config.sh
./validation.sh
./rmconfig.sh
cd -
- run: |
cd cicd/wrrtcplb1/
./config.sh
./validation.sh
./rmconfig.sh
cd -
- run: |
cd cicd/wrrtcplb2/
./config.sh
./validation.sh
./rmconfig.sh
cd -
- run: |
cd cicd/nat64tcp/
./config.sh
./validation.sh
./rmconfig.sh
cd -
51 changes: 51 additions & 0 deletions .github/workflows/basic-sanity-ubuntu-24.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
name: Sanity-CI-Ubuntu-24
on:
schedule:
# Runs "At 11:00 UTC every day-of-week"
- cron: '0 11 * * *'
pull_request:
branches: [ "main" ]
workflow_dispatch:
inputs:
testName:
description: 'Test Run-Name'
required: true
default: 'Sanity-BuildCI-u24'
workflow_run:
workflows: ["Docker-Multi-Arch"]
types:
- completed
jobs:
build:
name: basic-sanity-ubuntu-24
runs-on: ubuntu-24.04
if: github.repository == 'loxilb-io/loxilb'
&& github.event.inputs.tagName == ''
steps:
- uses: actions/checkout@v4
with:
submodules: recursive

- name: Login to GitHub Container Registry
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- uses: actions/setup-python@v2
- uses: actions/setup-go@v3
with:
go-version: '>=1.18.0'
- run: |
cd cicd/sconnect/
./config.sh
./validation.sh
./rmconfig.sh
cd -
- run: |
cd cicd/tcplb/
./config.sh
./validation.sh
./rmconfig.sh
cd -
28 changes: 10 additions & 18 deletions .github/workflows/cluster-sanity-ubuntu-22.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
name: Cluster-Sanity-CI-Ubuntu-22

on:
schedule:
# Runs "At 18:00 UTC every day-of-week"
- cron: '0 18 * * *'
workflow_dispatch:
inputs:
userInput:
Expand All @@ -9,11 +12,17 @@ on:
default: 'Finished'
tags:
description: 'Cluster Sanity Ubuntu 22'
workflow_run:
workflows: ["Docker-Multi-Arch"]
types:
- completed

jobs:
build:
name: cluster-sanity-ubuntu-22
runs-on: ubuntu-22.04
if: github.repository == 'loxilb-io/loxilb'
&& github.event.inputs.tagName == ''
steps:
- uses: actions/checkout@v2
with:
Expand All @@ -23,24 +32,7 @@ jobs:
with:
go-version: '>=1.18.0'
- run: sudo apt-get update
- run: sudo apt-get -y install clang-13 llvm libelf-dev gcc-multilib libpcap-dev linux-tools-$(uname -r) elfutils dwarves git libbsd-dev bridge-utils unzip build-essential bison flex iperf iproute2 nodejs socat lksctp-tools
- run: |
git clone --recurse-submodules https://github.com/loxilb-io/iproute2 iproute2-main
cd iproute2-main/libbpf/src/
sudo make install
mkdir build
DESTDIR=build OBJDIR=build make install
cd -
cd iproute2-main/
export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:`pwd`/libbpf/src/ && LIBBPF_FORCE=on LIBBPF_DIR=`pwd`/libbpf/src/build ./configure && make && sudo cp -f tc/tc /usr/local/sbin/ntc && cd -
- run: loxilb-ebpf/utils/mkllb_bpffs.sh
- run: sudo -E env "PATH=$PATH" make
- run: sudo -E env "PATH=$PATH" make test
- run: docker pull ghcr.io/loxilb-io/loxilb:latest
- run: docker run -u root --cap-add SYS_ADMIN --restart unless-stopped --privileged -dit -v /dev/log:/dev/log --name loxilb ghcr.io/loxilb-io/loxilb:latest
- run: pwd && ls && sudo -E env "PATH=$PATH" make docker-cp
- run: id=`docker ps -f name=loxilb | cut -d " " -f 1 | grep -iv "CONTAINER"` && docker commit $id ghcr.io/loxilb-io/loxilb:latest
- run: docker stop loxilb && docker rm loxilb
- run: sudo apt-get -y install lksctp-tools
- run: |
cd cicd/cluster1/
./config.sh
Expand Down
52 changes: 52 additions & 0 deletions .github/workflows/cluster-sanity-ubuntu-24.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
name: Cluster-Sanity-CI-Ubuntu-24

on:
schedule:
# Runs "At 11:00 UTC every day-of-week"
- cron: '0 11 * * *'
workflow_dispatch:
inputs:
userInput:
description: 'Enter string to print at end'
required: true
default: 'Finished'
tags:
description: 'Cluster Sanity Ubuntu 24'
workflow_run:
workflows: ["Docker-Multi-Arch"]
types:
- completed

jobs:
build:
name: cluster-sanity-ubuntu-24
runs-on: ubuntu-22.04
if: github.repository == 'loxilb-io/loxilb'
&& github.event.inputs.tagName == ''
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- uses: actions/setup-python@v2
- uses: actions/setup-go@v3
with:
go-version: '>=1.18.0'
- run: sudo apt-get update
- run: sudo apt-get -y install linux-tools-$(uname -r) bridge-utils unzip iperf iproute2 nodejs socat lksctp-tools
- run: |
cd cicd/cluster1/
./config.sh
./validation.sh
./rmconfig.sh
cd -
cd cicd/cluster2/
./config.sh
./validation.sh
./rmconfig.sh
cd -
cd cicd/cluster3/
./config.sh
./validation.sh
./rmconfig.sh
cd -
- run: echo ${{ github.event.inputs.userInput }}
22 changes: 3 additions & 19 deletions .github/workflows/data-store-CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,38 +23,22 @@ on:
options:
- ubuntu-20.04
- ubuntu-22.04
- ubuntu-24.04

jobs:
build:
name: data-store
runs-on: ${{ github.event.inputs.runsOn }}
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
with:
submodules: recursive
- uses: actions/setup-python@v2
- uses: actions/setup-go@v3
with:
go-version: '>=1.18.0'
- run: sudo apt-get update
- run: if [[ ${{ github.event.inputs.runsOn }} == 'ubuntu-22.04' ]]; then sudo apt-get -y install clang-13 lksctp-tools; else sudo apt-get -y install clang-10; fi
- run: sudo apt-get -y install llvm libelf-dev gcc-multilib libpcap-dev linux-tools-$(uname -r) elfutils dwarves git libbsd-dev bridge-utils unzip build-essential bison flex iperf iproute2 nodejs socat
- run: |
git clone --recurse-submodules https://github.com/loxilb-io/iproute2 iproute2-main
cd iproute2-main/libbpf/src/
sudo make install
mkdir build
DESTDIR=build OBJDIR=build make install
cd -
cd iproute2-main/
export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:`pwd`/libbpf/src/ && LIBBPF_FORCE=on LIBBPF_DIR=`pwd`/libbpf/src/build ./configure && make && sudo cp -f tc/tc /usr/local/sbin/ntc && cd -
- run: loxilb-ebpf/utils/mkllb_bpffs.sh
- run: sudo -E env "PATH=$PATH" make
- run: docker pull ghcr.io/loxilb-io/loxilb:latest
- run: docker run -u root --cap-add SYS_ADMIN --restart unless-stopped --privileged -dit -v /dev/log:/dev/log --name loxilb ghcr.io/loxilb-io/loxilb:latest
- run: pwd && ls && sudo -E env "PATH=$PATH" make docker-cp
- run: id=`docker ps -f name=loxilb | cut -d " " -f 1 | grep -iv "CONTAINER"` && docker commit $id ghcr.io/loxilb-io/loxilb:latest
- run: docker stop loxilb && docker rm loxilb
- run: sudo apt-get -y install lksctp-tools linux-tools-$(uname -r) bridge-utils iperf iproute2 nodejs socat
- run: |
cd cicd/data-store/
./test.sh ${{ github.event.inputs.testName }}
Expand Down
Loading

0 comments on commit e795498

Please sign in to comment.