forked from sonic-net/DASH
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
147 changed files
with
7,120 additions
and
1,038 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Oops, something went wrong.