From d67bd6394a339240e75cb8fe6d746630f1801934 Mon Sep 17 00:00:00 2001 From: Junhua Zhai Date: Wed, 6 Nov 2024 02:17:52 +0000 Subject: [PATCH] Check dpapp status --- .github/workflows/dash-bmv2-ci.yml | 35 ++++++++++++++++++++++++++---- 1 file changed, 31 insertions(+), 4 deletions(-) diff --git a/.github/workflows/dash-bmv2-ci.yml b/.github/workflows/dash-bmv2-ci.yml index a87b8cbc1..3a2fc2354 100644 --- a/.github/workflows/dash-bmv2-ci.yml +++ b/.github/workflows/dash-bmv2-ci.yml @@ -41,10 +41,13 @@ 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 - docker_fg_root_flags: --privileged -u root - docker_bg_flags: -d --privileged + 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 @@ -85,9 +88,33 @@ jobs: - name: Run saithrift server run: DOCKER_FLAGS=$docker_bg_flags make run-saithrift-server - name: Run dpapp - run: DOCKER_FLAGS=$docker_bg_flags make run-dpapp HAVE_DPAPP=y + 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 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