Skip to content

Commit

Permalink
Merge branch 'Azure:main' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
mmiele authored Aug 25, 2022
2 parents 9b51bb7 + e5e461a commit 9f62724
Show file tree
Hide file tree
Showing 147 changed files with 7,120 additions and 1,038 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/dash-bmv2-bldr-docker.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: DASH-docker-bmv2-bldr-build-image


on:
push:
branches: [ "**" ]
paths:
- '.github/workflows/dash-bmv2-bldr-docker.yml'
- 'dash-pipeline/dockerfiles/Dockerfile.bmv2-bldr'
- 'dash-pipeline/.dockerignore'
- 'dash-pipeline/dockerfiles/.dockerignore'
pull_request:
branches: [ "main" ]
paths:
- '.github/workflows/dash-bmv2-bldr-docker.yml'
- 'dash-pipeline/dockerfiles/Dockerfile.bmv2-bldr'
- 'dash-pipeline/.dockerignore'
- 'dash-pipeline/dockerfiles/.dockerignore'
workflow_dispatch:

jobs:
build:
name: Build docker dash-bmv2-bldr image
runs-on: ubuntu-20.04
defaults:
run:
working-directory: ./dash-pipeline
steps:
- uses: actions/checkout@v3
- name: Build dash-bmv2-bldr docker image
run: make docker-bmv2-bldr
- name: Publish dash-bmv2 docker image
run: make docker-publish-bmv2-bldr
84 changes: 84 additions & 0 deletions .github/workflows/dash-bmv2-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
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/docker files/Dockerfile.*'
- '!dash-pipeline/.dockerignore'
- '!dash-pipeline/**.md'
- '!dash-pipeline/**.svg'
- '!dash-pipeline/**.png'
- '!dash-pipeline/**.txt'
pull_request:
branches: [ "main" ]
paths:
- '.gitmodules'
- '.github/workflows/dash-bmv2-ci.yml'
- 'test/**.py'
- 'test/**requirements.txt'
- 'test/**.sh'
- 'test/**.yml'
- 'dash-pipeline/**'
- '!dash-pipeline/docker files/Dockerfile.*'
- '!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
env:
docker_fg_flags: -u root --privileged
docker_bg_flags: -d -u root --privileged
defaults:
run:
working-directory: ./dash-pipeline
steps:
- uses: actions/checkout@v3
- name: Pull docker p4c image
run: make docker-pull-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 docker saithrift-bldr image
run: make docker-pull-saithrift-bldr
- name: Generate SAI API
run: DOCKER_FLAGS=$docker_fg_flags make sai
- name: Pull docker bmv2-bldr image
run: make docker-pull-bmv2-bldr
- name: Build libsai c++ tests
run: DOCKER_FLAGS=$docker_fg_flags make test
- name: Prepare network
run: DOCKER_FLAGS=$docker_fg_flags make network
- name: Run P4 software switch (bmv2) with P4Runtime
run: DOCKER_FLAGS=$docker_bg_flags make run-switch
- 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 saithrift server
run: DOCKER_FLAGS=$docker_bg_flags make run-saithrift-server
- name: Run PTF Tests
run: DOCKER_FLAGS=$docker_fg_flags make run-saithrift-ptftests
- name: Deploy ixia-c Traffic Generator
run: DOCKER_FLAGS=$docker_fg_flags make deploy-ixiac
- name: Run Pytests
run: DOCKER_FLAGS=$docker_fg_flags make run-saithrift-pytests

62 changes: 0 additions & 62 deletions .github/workflows/dash-ci.yml

This file was deleted.

31 changes: 0 additions & 31 deletions .github/workflows/dash-dev-docker.yml

This file was deleted.

33 changes: 33 additions & 0 deletions .github/workflows/dash-grpc1.43.2-docker.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: DASH-docker-grpc1.43.2-build-image


on:
push:
branches: [ "**" ]
paths:
- '.github/workflows/dash-grpc1.43.2-docker.yml'
- 'dash-pipeline/dockerfiles/Dockerfile.grpc1.43.2'
- 'dash-pipeline/.dockerignore'
- 'dash-pipeline/dockerfiles/.dockerignore'
pull_request:
branches: [ "main" ]
paths:
- '.github/workflows/dash-grpc1.43.2-docker.yml'
- 'dash-pipeline/dockerfiles/Dockerfile.grpc1.43.2'
- 'dash-pipeline/.dockerignore'
- 'dash-pipeline/dockerfiles/.dockerignore'
workflow_dispatch:

jobs:
build:
name: Build docker dash-grpc1.43.2 image
runs-on: ubuntu-20.04
defaults:
run:
working-directory: ./dash-pipeline
steps:
- uses: actions/checkout@v3
- name: Build dash-grpc1.43.2 docker image
run: make docker-dash-grpc
- name: Publish dash-bmv2 docker image
run: make docker-publish-dash-grpc
17 changes: 17 additions & 0 deletions .github/workflows/dash-md-spellcheck.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Spellcheck
on:
pull_request:
paths:
- '**/*.md'
push:
paths:
- '**/*.md'
workflow_dispatch:

jobs:
spelling:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Spellcheck
uses: rojopolis/spellcheck-github-actions@0.26.0
33 changes: 33 additions & 0 deletions .github/workflows/dash-p4c-bmv2-docker.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: DASH-docker-p4c-bmv2-build-image


on:
push:
branches: [ "**" ]
paths:
- '.github/workflows/dash-p4c-bmv2-docker.yml'
- 'dash-pipeline/dockerfiles/Dockerfile.p4c-bmv2'
- 'dash-pipeline/.dockerignore'
- 'dash-pipeline/dockerfiles/.dockerignore'
pull_request:
branches: [ "main" ]
paths:
- '.github/workflows/dash-p4c-bmv2-docker.yml'
- 'dash-pipeline/dockerfiles/Dockerfile.p4c-bmv2'
- 'dash-pipeline/.dockerignore'
- 'dash-pipeline/dockerfiles/.dockerignore'
workflow_dispatch:

jobs:
build:
name: Build docker dash-p4c-bmv2 image
runs-on: ubuntu-20.04
defaults:
run:
working-directory: ./dash-pipeline
steps:
- uses: actions/checkout@v3
- name: Build dash-p4c-bmv2 docker image
run: make docker-dash-p4c
- name: Publish dash-p4c-bmv2 docker image
run: make docker-publish-dash-p4c
50 changes: 50 additions & 0 deletions .github/workflows/dash-saithrift-client-bldr-docker.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: DASH-docker-saithrift-client-bldr-image

on:
push:
branches: [ "**" ]
paths:
- '.github/workflows/dash-saithrift-client-bldr-docker.yml'
- '.github/workflows/dash-saithrift-client-bldr-docker.yml'
- 'dash-pipeline/Makefile'
- 'dash-pipeline/dockerfiles/Dockerfile.saithrift-bldr'
- 'dash-pipeline/dockerfiles/Dockerfile.saithrift-client-bldr'
- 'dash-pipeline/.dockerignore'
- 'dash-pipeline/dockerfiles/.dockerignore'
pull_request:
branches: [ "main" ]
paths:
- '.github/workflows/dash-saithrift-client-bldr-docker.yml'
- 'dash-pipeline/Makefile'
- 'dash-pipeline/dockerfiles/Dockerfile.saithrift-bldr'
- 'dash-pipeline/dockerfiles/Dockerfile.saithrift-client-bldr'
- 'dash-pipeline/.dockerignore'
- 'dash-pipeline/dockerfiles/.dockerignore'
workflow_dispatch:

jobs:
build:
name: Build dash-saithrift-client-bldr-image
runs-on: ubuntu-20.04
env:
docker_fg_flags: -u root --privileged
docker_bg_flags: -d -u root --privileged
defaults:
run:
working-directory: ./dash-pipeline
steps:
- uses: actions/checkout@v3
- name: Pull docker p4c image
run: make docker-pull-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: Build docker saithrift-bldr image
run: make docker-saithrift-bldr
- name: Generate SAI API
run: DOCKER_FLAGS=$docker_fg_flags make sai
- name: Generate SAI-Thrift client and server code and libs
run: DOCKER_FLAGS=$docker_fg_flags make saithrift-server
- name: Build saithrift client docker image
run: DOCKER_FLAGS=$docker_fg_flags make docker-saithrift-client-bldr
Loading

0 comments on commit 9f62724

Please sign in to comment.