Skip to content

[dpapp] Initial dpapp implementation being a vpp plugin #1366

[dpapp] Initial dpapp implementation being a vpp plugin

[dpapp] Initial dpapp implementation being a vpp plugin #1366

Workflow file for this run

name: DASH-BMV2-CI
on:
push:
branches: [ "**" ]
paths:
- '.gitmodules'
- '.github/workflows/dash-bmv2-ci.yml'
- 'test/**.py'
- 'test/**requirements.txt'
- 'test/**.sh'
- 'test/**.yml'
- 'dash-pipeline/**'
- '!dash-pipeline/dockerfiles/Dockerfile.*'
- 'dash-pipeline/dockerfiles/*.env'
- '!dash-pipeline/.dockerignore'
- '!dash-pipeline/**.md'
- '!dash-pipeline/**.svg'
- '!dash-pipeline/**.png'
- '!dash-pipeline/**.txt'
pull_request:
branches: [ "**" ]
paths:
- '.gitmodules'
- '.github/workflows/dash-bmv2-ci.yml'
- 'test/**.py'
- 'test/**requirements.txt'
- 'test/**.sh'
- 'test/**.yml'
- 'dash-pipeline/**'
- '!dash-pipeline/dockerfiles/Dockerfile.*'
- 'dash-pipeline/dockerfiles/*.env'
- '!dash-pipeline/.dockerignore'
- '!dash-pipeline/**.md'
- '!dash-pipeline/**.svg'
- '!dash-pipeline/**.png'
- '!dash-pipeline/**.txt'
workflow_dispatch:
jobs:
build:
name: Build and Test DASH Pipeline
runs-on: ubuntu-20.04
continue-on-error: true
strategy:
fail-fast: false
env:
docker_fg_flags: --privileged --memory=4g
docker_fg_root_flags: --privileged -u root --memory=4g
docker_bg_flags: -d --privileged --memory=4g
defaults:
run:
working-directory: ./dash-pipeline
steps:
- uses: actions/checkout@v3
- name: Pull docker p4c image
run: make docker-dash-p4c
- name: Build P4 software switch (bmv2) and P4Info
run: DOCKER_FLAGS=$docker_fg_flags make p4
- name: Install SAI submodule
run: git submodule update --init
- name: Pull/Build docker saithrift-bldr image
run: make docker-saithrift-bldr
- name: Pull/Build docker bmv2-bldr image
run: make docker-bmv2-bldr
- name: Generate SAI API
run: DOCKER_FLAGS=$docker_fg_flags make sai
- name: Pull/Build docker dpapp image
run: make docker-dash-dpapp
- name: Build bmv2 dpapp
run: DOCKER_FLAGS=$docker_fg_flags make dpapp
- name: Check if SAI spec is updated
run: DOCKER_FLAGS=$docker_fg_flags make check-sai-spec
- name: Build libsai c++ tests
run: DOCKER_FLAGS=$docker_fg_flags make test
- name: Prepare network
run: DOCKER_FLAGS=$docker_fg_flags make network HAVE_DPAPP=y
- name: Run P4 software switch (bmv2) with P4Runtime
run: DOCKER_FLAGS=$docker_bg_flags make run-switch HAVE_DPAPP=y
- name: Force bmv2 to load forwarding pipeline config via dummy libsai call
run: DOCKER_FLAGS=$docker_fg_flags make init-switch
- name: Test SAI library over P4RT to switch
run: DOCKER_FLAGS=$docker_fg_flags make run-libsai-test
- name: Generate saithrift-server
run: DOCKER_FLAGS=$docker_fg_flags make saithrift-server
- name: Generate saithrift-client local docker
run: DOCKER_FLAGS=$docker_fg_flags make docker-saithrift-client
- name: Run dpapp
run: |
sleep 2 #wait a moment for saithrift-server ready
cat /proc/cpuinfo
cat /proc/meminfo
sysctl vm.max_map_count
free -h
df -h
top -b -n 1
DOCKER_FLAGS=$docker_bg_flags make run-dpapp HAVE_DPAPP=y
- name: Check dpapp status
run: |
sleep 7 #wait a moment for dpapp ready
docker info
cat /proc/meminfo | grep -i huge
docker stats --no-stream
docker top dash-dpapp-$USER
docker logs -t dash-dpapp-$USER
- name: Run saithrift server
run: DOCKER_FLAGS=$docker_bg_flags make run-saithrift-server
- name: Run PTF Tests
timeout-minutes: 10
run: DOCKER_FLAGS=$docker_fg_root_flags make run-saithrift-ptftests
- name: Check dpapp status again
if: ${{ always() }}
run: |
docker stats --no-stream
tail -50 /var/log/syslog
docker top dash-dpapp-$USER
docker logs -t dash-dpapp-$USER
- name: Deploy ixia-c Traffic Generator
run: DOCKER_FLAGS=$docker_fg_flags make deploy-ixiac
- name: Run Pytests
run: DOCKER_FLAGS=$docker_fg_root_flags make run-saithrift-pytests
- name: Pull/Build SAI-Challenger client builder docker image
run: DOCKER_FLAGS=$docker_fg_flags make docker-saichallenger-client-bldr
- name: Build SAI-Challenger client docker image
run: DOCKER_FLAGS=$docker_fg_flags make docker-saichallenger-client
- name: Run SAI-Challenger Tests
run: DOCKER_FLAGS=$docker_fg_root_flags make run-saichallenger-tests
- name: Build libsai debian packages
run: DOCKER_FLAGS=$docker_fg_root_flags make libsai-debs
- uses: actions/upload-artifact@v3
with:
name: libsai-debian-packages
path: /home/runner/work/DASH/DASH/dash-pipeline/SAI/debian/*deb
if-no-files-found: error