From e7955f3e8a3e50542460778cc950f0871e9c9757 Mon Sep 17 00:00:00 2001 From: Nikhil Malik <66406124+nik-netlox@users.noreply.github.com> Date: Mon, 19 Aug 2024 11:23:13 +0900 Subject: [PATCH 1/2] Update liveness-sanity-ubuntu-22.yml --- .../workflows/liveness-sanity-ubuntu-22.yml | 33 +++++-------------- 1 file changed, 8 insertions(+), 25 deletions(-) diff --git a/.github/workflows/liveness-sanity-ubuntu-22.yml b/.github/workflows/liveness-sanity-ubuntu-22.yml index d5983ab8e..d68284d3b 100644 --- a/.github/workflows/liveness-sanity-ubuntu-22.yml +++ b/.github/workflows/liveness-sanity-ubuntu-22.yml @@ -1,11 +1,8 @@ name: Liveness-LB-Sanity-CI-Ubuntu-22 - on: - #push: - # branches: - # - main - #pull_request: - # branches: [ "main" ] + schedule: + # Runs "At 17:00 UTC every day-of-week" + - cron: '0 17 * * *' workflow_dispatch: inputs: logLevel: @@ -14,6 +11,10 @@ on: default: 'warning' tags: description: 'Liveness LB Sanity Ubuntu 22' + workflow_run: + workflows: ["Docker-Multi-Arch"] + types: + - completed jobs: build: @@ -28,25 +29,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 iperf iproute2 nodejs socat ethtool lksctp-tools - run: | cd cicd/tcplbmon/ ./config.sh From 5ac706d79a1cab1fb9d1c86aba8a3f650d0c8d79 Mon Sep 17 00:00:00 2001 From: Nikhil Malik <66406124+nik-netlox@users.noreply.github.com> Date: Mon, 19 Aug 2024 14:20:20 +0900 Subject: [PATCH 2/2] Update liveness-sanity-ubuntu-22.yml --- .github/workflows/liveness-sanity-ubuntu-22.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/liveness-sanity-ubuntu-22.yml b/.github/workflows/liveness-sanity-ubuntu-22.yml index d68284d3b..24ce44c6b 100644 --- a/.github/workflows/liveness-sanity-ubuntu-22.yml +++ b/.github/workflows/liveness-sanity-ubuntu-22.yml @@ -20,6 +20,7 @@ jobs: build: name: liveness-lb-sanity-ubuntu-22 runs-on: ubuntu-22.04 + if: github.repository == 'loxilb-io/loxilb' steps: - uses: actions/checkout@v2 with: