diff options
author | Matias Elo <matias.elo@nokia.com> | 2023-10-30 16:05:46 +0200 |
---|---|---|
committer | Matias Elo <matias.elo@nokia.com> | 2023-10-30 16:05:46 +0200 |
commit | a0ae0cc5ee02beb9a17d4083d217142b57fd7ee7 (patch) | |
tree | dff334ed7d71218a678c330e82239d92059e66fb /.github | |
parent | 77d57e69ea968b465dca27aa8f6d9b423d757565 (diff) | |
parent | 14915c20de199e2cda397b157cbba8a86c105d04 (diff) |
Merge ODP v1.42.1.0
Merge ODP linux-generic v1.42.1.0 into linux-dpdk.
Signed-off-by: Matias Elo <matias.elo@nokia.com>
Diffstat (limited to '.github')
-rw-r--r-- | .github/actions/build-failure-log/action.yml | 7 | ||||
-rw-r--r-- | .github/actions/dump-log/action.yml | 7 | ||||
-rw-r--r-- | .github/actions/run-failure-log/action.yml | 7 | ||||
-rw-r--r-- | .github/workflows/ci-pipeline-arm64.yml | 85 | ||||
-rw-r--r-- | .github/workflows/ci-pipeline.yml | 233 |
5 files changed, 154 insertions, 185 deletions
diff --git a/.github/actions/build-failure-log/action.yml b/.github/actions/build-failure-log/action.yml new file mode 100644 index 000000000..571274c41 --- /dev/null +++ b/.github/actions/build-failure-log/action.yml @@ -0,0 +1,7 @@ +name: 'Build Failure Logger' +description: 'Log output of failing build' +runs: + using: 'composite' + steps: + - run: find . -name config.log -exec cat {} \; + shell: bash diff --git a/.github/actions/dump-log/action.yml b/.github/actions/dump-log/action.yml new file mode 100644 index 000000000..039583686 --- /dev/null +++ b/.github/actions/dump-log/action.yml @@ -0,0 +1,7 @@ +name: 'Dump Logs' +description: 'Dump logs of successful run' +runs: + using: 'composite' + steps: + - run: find . -name "*.log" -exec echo -e "\n\n @@@@@ {} @@@@@\n\n" \; -exec cat {} \; + shell: bash diff --git a/.github/actions/run-failure-log/action.yml b/.github/actions/run-failure-log/action.yml new file mode 100644 index 000000000..520d178c8 --- /dev/null +++ b/.github/actions/run-failure-log/action.yml @@ -0,0 +1,7 @@ +name: 'Run Failure Logger' +description: 'Log output of failing run' +runs: + using: 'composite' + steps: + - run: find . -name "*.trs" | xargs grep -l '^.test-result. FAIL' | while read trs ; do echo FAILURE detected at $trs; cat ${trs%%.trs}.log ; done + shell: bash diff --git a/.github/workflows/ci-pipeline-arm64.yml b/.github/workflows/ci-pipeline-arm64.yml index 84f52c1da..9e85a7881 100644 --- a/.github/workflows/ci-pipeline-arm64.yml +++ b/.github/workflows/ci-pipeline-arm64.yml @@ -3,7 +3,7 @@ name: CI arm64 # github.repository has been used to ensure CI is only run on the repo where # self-hosted runners are installed. This will prevent [self-hosted, ARM64] CI failing on forks -on: [push, pull_request] +on: [push, pull_request, merge_group] env: ARCH: arm64 CC: gcc @@ -11,7 +11,6 @@ env: OS: ubuntu_20.04 jobs: - Build: if: ${{ github.repository == 'OpenDataPlane/odp-dpdk' }} runs-on: [self-hosted, ARM64] @@ -31,9 +30,8 @@ jobs: - uses: actions/checkout@v3 - run: sudo docker run -i -v `pwd`:/odp --privileged --shm-size 8g -e CC="${{matrix.cc}}" -e CONF="${{matrix.conf}}" $CONTAINER_NAMESPACE/odp-ci-${OS}-${ARCH}-native /odp/scripts/ci/build_${ARCH}.sh - - name: Failure log - if: ${{ failure() }} - run: find . -name config.log -exec cat {} \; + - if: ${{ failure() }} + uses: ./.github/actions/build-failure-log Build_static_u22: if: ${{ github.repository == 'OpenDataPlane/odp-dpdk' }} @@ -51,9 +49,8 @@ jobs: - uses: actions/checkout@v3 - run: sudo docker run -i -v `pwd`:/odp --privileged --shm-size 8g -e CC="gcc-${{matrix.cc_ver}}" -e CXX="g++-${{matrix.cc_ver}}" -e CONF="${CONF} ${{matrix.conf}}" $CONTAINER_NAMESPACE/odp-ci-${OS}-${ARCH}-native /odp/scripts/ci/build_static.sh - - name: Failure log - if: ${{ failure() }} - run: find . -name config.log -exec cat {} \; + - if: ${{ failure() }} + uses: ./.github/actions/build-failure-log Build_OS: if: ${{ github.repository == 'OpenDataPlane/odp-dpdk' }} @@ -68,9 +65,8 @@ jobs: - uses: actions/checkout@v3 - run: sudo docker run -i -v `pwd`:/odp --privileged --shm-size 8g -e CC="${{matrix.cc}}" -e CONF="${CONF}" $CONTAINER_NAMESPACE/odp-ci-${{matrix.os}}-${ARCH}-native /odp/scripts/ci/build_${ARCH}.sh - - name: Failure log - if: ${{ failure() }} - run: find . -name config.log -exec cat {} \; + - if: ${{ failure() }} + uses: ./.github/actions/build-failure-log Build_gcc_u22: if: ${{ github.repository == 'OpenDataPlane/odp-dpdk' }} @@ -87,9 +83,8 @@ jobs: - uses: actions/checkout@v3 - run: sudo docker run -i -v `pwd`:/odp --privileged --shm-size 8g -e CC="gcc-${{matrix.cc_ver}}" -e CXX="g++-${{matrix.cc_ver}}" -e CONF="${{matrix.conf}}" $CONTAINER_NAMESPACE/odp-ci-${OS}-${ARCH}-native /odp/scripts/ci/build_${ARCH}.sh - - name: Failure log - if: ${{ failure() }} - run: find . -name config.log -exec cat {} \; + - if: ${{ failure() }} + uses: ./.github/actions/build-failure-log Build_out-of-tree: if: ${{ github.repository == 'OpenDataPlane/odp-dpdk' }} @@ -99,9 +94,8 @@ jobs: - uses: actions/checkout@v3 - run: sudo docker run -i -v `pwd`:/odp --privileged --shm-size 8g -e CC="${CC}" -e CONF="${CONF}" $CONTAINER_NAMESPACE/odp-ci-${OS}-${ARCH}-native /odp/scripts/ci/out_of_tree.sh - - name: Failure log - if: ${{ failure() }} - run: find . -name config.log -exec cat {} \; + - if: ${{ failure() }} + uses: ./.github/actions/build-failure-log Run_distcheck: if: ${{ github.repository == 'OpenDataPlane/odp-dpdk' }} @@ -116,9 +110,8 @@ jobs: # Ignore distcheck failure (caused by the first 'make check' run unmounting huge pages) - run: sudo docker run -i -v `pwd`:/odp --privileged --shm-size 8g -e CC="${{matrix.cc}}" -e CONF="${{matrix.conf}}" $CONTAINER_NAMESPACE/odp-ci-${OS}-${ARCH}-native /odp/scripts/ci/distcheck.sh || true - - name: Failure log - if: ${{ failure() }} - run: find . -name "*.trs" | xargs grep -l '^.test-result. FAIL' | while read trs ; do echo FAILURE detected at $trs; cat ${trs%%.trs}.log ; done + - if: ${{ failure() }} + uses: ./.github/actions/run-failure-log Run: if: ${{ github.repository == 'OpenDataPlane/odp-dpdk' }} @@ -137,9 +130,10 @@ jobs: - uses: actions/checkout@v3 - run: sudo docker run -i -v `pwd`:/odp --privileged --shm-size 8g -e CC="${{matrix.cc}}" -e ARCH="${ARCH}" -e CXX=g++-10 -e CONF="${{matrix.conf}}" $CONTAINER_NAMESPACE/odp-ci-${OS}-${ARCH}-native /odp/scripts/ci/check.sh - - name: Failure log - if: ${{ failure() }} - run: find . -name "*.trs" | xargs grep -l '^.test-result. FAIL' | while read trs ; do echo FAILURE detected at $trs; cat ${trs%%.trs}.log ; done + - if: ${{ failure() }} + uses: ./.github/actions/run-failure-log + - if: ${{ success() }} + uses: ./.github/actions/dump-log Run_CFLAGS: if: ${{ github.repository == 'OpenDataPlane/odp-dpdk' }} @@ -154,9 +148,8 @@ jobs: - uses: actions/checkout@v3 - run: sudo docker run -i -v `pwd`:/odp --privileged --shm-size 8g -e CC="${{matrix.cc}}" -e ARCH="${ARCH}" -e CXX=g++-10 -e CFLAGS="${{matrix.cflags}}" $CONTAINER_NAMESPACE/odp-ci-${OS}-${ARCH}-native /odp/scripts/ci/check.sh - - name: Failure log - if: ${{ failure() }} - run: find . -name "*.trs" | xargs grep -l '^.test-result. FAIL' | while read trs ; do echo FAILURE detected at $trs; cat ${trs%%.trs}.log ; done + - if: ${{ failure() }} + uses: ./.github/actions/run-failure-log Run_OS: if: ${{ github.repository == 'OpenDataPlane/odp-dpdk' }} @@ -170,9 +163,8 @@ jobs: - uses: actions/checkout@v3 - run: sudo docker run -i -v `pwd`:/odp --privileged --shm-size 8g -e CC="${CC}" -e ARCH="${ARCH}" -e CONF="${CONF}" $CONTAINER_NAMESPACE/odp-ci-${{matrix.os}}-${ARCH}-native /odp/scripts/ci/check.sh - - name: Failure log - if: ${{ failure() }} - run: find . -name "*.trs" | xargs grep -l '^.test-result. FAIL' | while read trs ; do echo FAILURE detected at $trs; cat ${trs%%.trs}.log ; done + - if: ${{ failure() }} + uses: ./.github/actions/run-failure-log Run_sched_config: if: ${{ github.repository == 'OpenDataPlane/odp-dpdk' }} @@ -182,9 +174,8 @@ jobs: - uses: actions/checkout@v3 - run: sudo docker run -i -v `pwd`:/odp --privileged --shm-size 8g -e CC="${CC}" -e ARCH="${ARCH}" -e CONF="${CONF}" -e ODP_CONFIG_FILE=/odp/platform/linux-dpdk/test/sched-basic.conf $CONTAINER_NAMESPACE/odp-ci-${OS}-${ARCH}-native /odp/scripts/ci/check.sh - - name: Failure log - if: ${{ failure() }} - run: find . -name "*.trs" | xargs grep -l '^.test-result. FAIL' | while read trs ; do echo FAILURE detected at $trs; cat ${trs%%.trs}.log ; done + - if: ${{ failure() }} + uses: ./.github/actions/run-failure-log Run_stash_config: if: ${{ github.repository == 'OpenDataPlane/odp-dpdk' }} @@ -194,9 +185,8 @@ jobs: - uses: actions/checkout@v3 - run: sudo docker run -i -v `pwd`:/odp --privileged --shm-size 8g -e CC="${CC}" -e ARCH="${ARCH}" -e CONF="${CONF}" -e ODP_CONFIG_FILE=/odp/platform/linux-dpdk/test/stash-custom.conf $CONTAINER_NAMESPACE/odp-ci-${OS}-${ARCH}-native /odp/scripts/ci/check.sh - - name: Failure log - if: ${{ failure() }} - run: find . -name "*.trs" | xargs grep -l '^.test-result. FAIL' | while read trs ; do echo FAILURE detected at $trs; cat ${trs%%.trs}.log ; done + - if: ${{ failure() }} + uses: ./.github/actions/run-failure-log Run_scheduler_sp: if: ${{ github.repository == 'OpenDataPlane/odp-dpdk' }} @@ -206,9 +196,8 @@ jobs: - uses: actions/checkout@v3 - run: sudo docker run -i -v `pwd`:/odp --privileged --shm-size 8g -e CC="${CC}" -e ARCH="${ARCH}" -e CONF="${CONF}" -e ODP_SCHEDULER=sp $CONTAINER_NAMESPACE/odp-ci-${OS}-${ARCH}-native /odp/scripts/ci/check.sh - - name: Failure log - if: ${{ failure() }} - run: find . -name "*.trs" | xargs grep -l '^.test-result. FAIL' | while read trs ; do echo FAILURE detected at $trs; cat ${trs%%.trs}.log ; done + - if: ${{ failure() }} + uses: ./.github/actions/run-failure-log Run_process_mode: if: ${{ github.repository == 'OpenDataPlane/odp-dpdk' }} @@ -219,9 +208,8 @@ jobs: - run: sudo docker run -i -v `pwd`:/odp --privileged --shm-size 8g -e CC="${CC}" -e ARCH="${ARCH}" -e CONF="${CONF}" -e ODP_CONFIG_FILE=/odp/platform/linux-dpdk/test/process-mode.conf -e ODPH_PROC_MODE=1 $CONTAINER_NAMESPACE/odp-ci-${OS}-${ARCH}-native /odp/scripts/ci/check.sh - - name: Failure log - if: ${{ failure() }} - run: find . -name "*.trs" | xargs grep -l '^.test-result. FAIL' | while read trs ; do echo FAILURE detected at $trs; cat ${trs%%.trs}.log ; done + - if: ${{ failure() }} + uses: ./.github/actions/run-failure-log Run_dpdk-19_11: if: ${{ github.repository == 'OpenDataPlane/odp-dpdk' }} @@ -231,9 +219,8 @@ jobs: - uses: actions/checkout@v3 - run: sudo docker run -i -v `pwd`:/odp --privileged --shm-size 8g -e CC="${CC}" -e ARCH="${ARCH}" -e CONF="${CONF}" $CONTAINER_NAMESPACE/odp-ci-${OS}-${ARCH}-native-dpdk_19.11 /odp/scripts/ci/check.sh - - name: Failure log - if: ${{ failure() }} - run: find . -name "*.trs" | xargs grep -l '^.test-result. FAIL' | while read trs ; do echo FAILURE detected at $trs; cat ${trs%%.trs}.log ; done + - if: ${{ failure() }} + uses: ./.github/actions/run-failure-log Run_dpdk-20_11: if: ${{ github.repository == 'OpenDataPlane/odp-dpdk' }} @@ -243,9 +230,8 @@ jobs: - uses: actions/checkout@v3 - run: sudo docker run -i -v `pwd`:/odp --privileged --shm-size 8g -e CC="${CC}" -e ARCH="${ARCH}" -e CONF="${CONF}" $CONTAINER_NAMESPACE/odp-ci-${OS}-${ARCH}-native-dpdk_20.11 /odp/scripts/ci/check.sh - - name: Failure log - if: ${{ failure() }} - run: find . -name "*.trs" | xargs grep -l '^.test-result. FAIL' | while read trs ; do echo FAILURE detected at $trs; cat ${trs%%.trs}.log ; done + - if: ${{ failure() }} + uses: ./.github/actions/run-failure-log Run_dpdk-21_11: if: ${{ github.repository == 'OpenDataPlane/odp-dpdk' }} @@ -255,6 +241,5 @@ jobs: - uses: actions/checkout@v3 - run: sudo docker run -i -v `pwd`:/odp --privileged --shm-size 8g -e CC="${CC}" -e ARCH="${ARCH}" -e CONF="${CONF}" $CONTAINER_NAMESPACE/odp-ci-${OS}-${ARCH}-native-dpdk_21.11 /odp/scripts/ci/check.sh - - name: Failure log - if: ${{ failure() }} - run: find . -name "*.trs" | xargs grep -l '^.test-result. FAIL' | while read trs ; do echo FAILURE detected at $trs; cat ${trs%%.trs}.log ; done + - if: ${{ failure() }} + uses: ./.github/actions/run-failure-log diff --git a/.github/workflows/ci-pipeline.yml b/.github/workflows/ci-pipeline.yml index 280e9653e..81349afcd 100644 --- a/.github/workflows/ci-pipeline.yml +++ b/.github/workflows/ci-pipeline.yml @@ -1,6 +1,6 @@ name: CI x86_64 -on: [push, pull_request] +on: [push, pull_request, merge_group] env: ARCH: x86_64 CC: gcc @@ -11,55 +11,51 @@ jobs: Checkpatch: runs-on: ubuntu-20.04 steps: - - uses: actions/checkout@v3 - with: - fetch-depth: 0 - - - name: Install dependencies - run: | - sudo apt update - sudo apt install codespell - - - name: Check pull request - if: github.event_name == 'pull_request' - env: - CHECKPATCH_COMMAND: ./scripts/checkpatch.pl - uses: webispy/checkpatch-action@v8 - - - name: Check push - if: github.event_name == 'push' && github.ref != 'refs/heads/master' - run: | - AFTER=${{ github.event.after }} - BEFORE=${{ github.event.before }} - if [ -z "${BEFORE//0}" ] || [ -z "${AFTER//0}" ]; then - COMMIT_RANGE="" - else - COMMIT_RANGE="${BEFORE}..${AFTER}" - fi - ./scripts/ci-checkpatches.sh ${COMMIT_RANGE} + - uses: actions/checkout@v3 + with: + fetch-depth: 0 + - name: Install dependencies + run: | + sudo apt update + sudo apt install codespell + - name: Check pull request + if: github.event_name == 'pull_request' + env: + CHECKPATCH_COMMAND: ./scripts/checkpatch.pl + uses: webispy/checkpatch-action@v8 + - name: Check push + if: github.event_name == 'push' && github.ref != 'refs/heads/master' + run: | + AFTER=${{ github.event.after }} + BEFORE=${{ github.event.before }} + if [ -z "${BEFORE//0}" ] || [ -z "${AFTER//0}" ]; then + COMMIT_RANGE="" + else + COMMIT_RANGE="${BEFORE}..${AFTER}" + fi + ./scripts/ci-checkpatches.sh ${COMMIT_RANGE} Documentation: runs-on: ubuntu-20.04 steps: - - uses: actions/checkout@v3 - - - name: Install dependencies - run: | - sudo apt update - sudo apt install doxygen asciidoctor libconfig-dev libssl-dev mscgen cmake graphviz libdpdk-dev - sudo gem install asciidoctor - - name: Build - shell: bash - run: | - ./bootstrap - ./configure --enable-user-guides - pushd doc - make - popd - touch ./doxygen.log - # Doxygen does not trap on warnings, check for them here. - make doxygen-doc 2>&1 | tee ./doxygen.log - ! fgrep -rq warning ./doxygen.log + - uses: actions/checkout@v3 + - name: Install dependencies + run: | + sudo apt update + sudo apt install doxygen asciidoctor libconfig-dev libssl-dev mscgen cmake graphviz libdpdk-dev + sudo gem install asciidoctor + - name: Build + shell: bash + run: | + ./bootstrap + ./configure --enable-user-guides + pushd doc + make + popd + touch ./doxygen.log + # Doxygen does not trap on warnings, check for them here. + make doxygen-doc 2>&1 | tee ./doxygen.log + ! fgrep -rq warning ./doxygen.log Build: runs-on: ubuntu-20.04 @@ -78,9 +74,8 @@ jobs: - uses: actions/checkout@v3 - run: sudo docker run -i -v `pwd`:/odp --privileged --shm-size 8g -e CC="${{matrix.cc}}" -e CONF="${{matrix.conf}}" $CONTAINER_NAMESPACE/odp-ci-${OS}-${ARCH} /odp/scripts/ci/build_${ARCH}.sh - - name: Failure log - if: ${{ failure() }} - run: find . -name config.log -exec cat {} \; + - if: ${{ failure() }} + uses: ./.github/actions/build-failure-log Build_static_u22: runs-on: ubuntu-20.04 @@ -96,9 +91,8 @@ jobs: - uses: actions/checkout@v3 - run: sudo docker run -i -v `pwd`:/odp --privileged --shm-size 8g -e CC="gcc-${{matrix.cc_ver}}" -e CXX="g++-${{matrix.cc_ver}}" -e CONF="${CONF} ${{matrix.conf}}" $CONTAINER_NAMESPACE/odp-ci-${OS}-${ARCH}-static /odp/scripts/ci/build_static.sh - - name: Failure log - if: ${{ failure() }} - run: find . -name config.log -exec cat {} \; + - if: ${{ failure() }} + uses: ./.github/actions/build-failure-log Build_arm64: runs-on: ubuntu-20.04 @@ -114,9 +108,8 @@ jobs: - uses: actions/checkout@v3 - run: sudo docker run -i -v `pwd`:/odp --privileged --shm-size 8g -e CC="${{matrix.cc}}" -e CONF="${CONF} ${{matrix.conf}}" $CONTAINER_NAMESPACE/odp-ci-${OS}-${ARCH} /odp/scripts/ci/build_${ARCH}.sh - - name: Failure log - if: ${{ failure() }} - run: find . -name config.log -exec cat {} \; + - if: ${{ failure() }} + uses: ./.github/actions/build-failure-log Build_arm64_u18: runs-on: ubuntu-20.04 @@ -131,9 +124,8 @@ jobs: - uses: actions/checkout@v3 - run: sudo docker run -i -v `pwd`:/odp --privileged --shm-size 8g -e CC="${{matrix.cc}}" -e CONF="${CONF}" $CONTAINER_NAMESPACE/odp-ci-${OS}-${ARCH} /odp/scripts/ci/build_${ARCH}.sh - - name: Failure log - if: ${{ failure() }} - run: find . -name config.log -exec cat {} \; + - if: ${{ failure() }} + uses: ./.github/actions/build-failure-log Build_ppc64el: runs-on: ubuntu-20.04 @@ -148,9 +140,8 @@ jobs: - uses: actions/checkout@v3 - run: sudo docker run -i -v `pwd`:/odp --privileged --shm-size 8g -e CC="${CC}" -e CONF="${CONF} ${{matrix.conf}}" $CONTAINER_NAMESPACE/odp-ci-${OS}-${ARCH} /odp/scripts/ci/build_${ARCH}.sh - - name: Failure log - if: ${{ failure() }} - run: find . -name config.log -exec cat {} \; + - if: ${{ failure() }} + uses: ./.github/actions/build-failure-log Build_i386: runs-on: ubuntu-20.04 @@ -166,9 +157,8 @@ jobs: - uses: actions/checkout@v3 - run: sudo docker run -i -v `pwd`:/odp --privileged --shm-size 8g -e CC="${{matrix.cc}}" -e CONF="${{matrix.conf}}" $CONTAINER_NAMESPACE/odp-ci-${OS}-${ARCH} /odp/scripts/ci/build_${ARCH}.sh - - name: Failure log - if: ${{ failure() }} - run: find . -name config.log -exec cat {} \; + - if: ${{ failure() }} + uses: ./.github/actions/build-failure-log Build_OS: runs-on: ubuntu-20.04 @@ -182,9 +172,8 @@ jobs: - uses: actions/checkout@v3 - run: sudo docker run -i -v `pwd`:/odp --privileged --shm-size 8g -e CC="${{matrix.cc}}" -e CONF="${{matrix.conf}}" $CONTAINER_NAMESPACE/odp-ci-${{matrix.os}}-${ARCH} /odp/scripts/ci/build_${ARCH}.sh - - name: Failure log - if: ${{ failure() }} - run: find . -name config.log -exec cat {} \; + - if: ${{ failure() }} + uses: ./.github/actions/build-failure-log Build_gcc_u18: runs-on: ubuntu-20.04 @@ -199,9 +188,8 @@ jobs: - uses: actions/checkout@v3 - run: sudo docker run -i -v `pwd`:/odp --privileged --shm-size 8g -e CC="gcc-${{matrix.cc_ver}}" -e CXX="g++-${{matrix.cc_ver}}" -e CONF="${{matrix.conf}}" $CONTAINER_NAMESPACE/odp-ci-${OS}-${ARCH} /odp/scripts/ci/build_${ARCH}.sh - - name: Failure log - if: ${{ failure() }} - run: find . -name config.log -exec cat {} \; + - if: ${{ failure() }} + uses: ./.github/actions/build-failure-log Build_gcc_u22: runs-on: ubuntu-20.04 @@ -216,43 +204,28 @@ jobs: - uses: actions/checkout@v3 - run: sudo docker run -i -v `pwd`:/odp --privileged --shm-size 8g -e CC="gcc-${{matrix.cc_ver}}" -e CXX="g++-${{matrix.cc_ver}}" -e CONF="${{matrix.conf}}" $CONTAINER_NAMESPACE/odp-ci-${OS}-${ARCH} /odp/scripts/ci/build_${ARCH}.sh - - name: Failure log - if: ${{ failure() }} - run: find . -name config.log -exec cat {} \; + - if: ${{ failure() }} + uses: ./.github/actions/build-failure-log Build_out-of-tree: runs-on: ubuntu-20.04 steps: - - uses: actions/checkout@v3 - - run: sudo docker run -i -v `pwd`:/odp --privileged --shm-size 8g -e CC="${CC}" - -e CONF="${CONF}" $CONTAINER_NAMESPACE/odp-ci-${OS}-${ARCH} /odp/scripts/ci/out_of_tree.sh - - name: Failure log - if: ${{ failure() }} - run: find . -name config.log -exec cat {} \; + - uses: actions/checkout@v3 + - run: sudo docker run -i -v `pwd`:/odp --privileged --shm-size 8g -e CC="${CC}" + -e CONF="${CONF}" $CONTAINER_NAMESPACE/odp-ci-${OS}-${ARCH} /odp/scripts/ci/out_of_tree.sh + - if: ${{ failure() }} + uses: ./.github/actions/build-failure-log Build_linux-generic: runs-on: ubuntu-20.04 env: CONF: "--with-platform=linux-generic" steps: - - uses: actions/checkout@v3 - - run: sudo docker run -i -v `pwd`:/odp --privileged --shm-size 8g -e CC="${CC}" -e ODP_LIB_NAME="libodp-linux" - -e CONF="${CONF}" $CONTAINER_NAMESPACE/odp-ci-${OS}-${ARCH} /odp/scripts/ci/build_${ARCH}.sh - - name: Failure log - if: ${{ failure() }} - run: find . -name config.log -exec cat {} \; - - Run_coverage: - runs-on: ubuntu-20.04 - steps: - uses: actions/checkout@v3 - - run: sudo docker run -i -v `pwd`:/odp --privileged --shm-size 8g -e CC="${CC}" - -e CONF="${CONF}" $CONTAINER_NAMESPACE/odp-ci-${OS}-${ARCH} /odp/scripts/ci/coverage.sh - - name: Failure log - if: ${{ failure() }} - run: find . -name "*.trs" | xargs grep -l '^.test-result. FAIL' | while read trs ; do echo FAILURE detected at $trs; cat ${trs%%.trs}.log ; done - - name: Upload to Codecov - uses: codecov/codecov-action@v3 + - run: sudo docker run -i -v `pwd`:/odp --privileged --shm-size 8g -e CC="${CC}" -e ODP_LIB_NAME="libodp-linux" + -e CONF="${CONF}" $CONTAINER_NAMESPACE/odp-ci-${OS}-${ARCH} /odp/scripts/ci/build_${ARCH}.sh + - if: ${{ failure() }} + uses: ./.github/actions/build-failure-log Run_distcheck: runs-on: ubuntu-20.04 @@ -261,13 +234,12 @@ jobs: matrix: conf: ['--enable-user-guides', '--enable-user-guides --enable-abi-compat'] steps: - - uses: actions/checkout@v3 - # Ignore distcheck failure (caused by the first 'make check' run unmounting huge pages) - - run: sudo docker run -i -v `pwd`:/odp --privileged --shm-size 8g -e CC="${{matrix.cc}}" + - uses: actions/checkout@v3 + # Ignore distcheck failure (caused by the first 'make check' run unmounting huge pages) + - run: sudo docker run -i -v `pwd`:/odp --privileged --shm-size 8g -e CC="${{matrix.cc}}" -e CONF="${{matrix.conf}}" $CONTAINER_NAMESPACE/odp-ci-${OS}-${ARCH} /odp/scripts/ci/distcheck.sh || true - - name: Failure log - if: ${{ failure() }} - run: find . -name "*.trs" | xargs grep -l '^.test-result. FAIL' | while read trs ; do echo FAILURE detected at $trs; cat ${trs%%.trs}.log ; done + - if: ${{ failure() }} + uses: ./.github/actions/run-failure-log Run: runs-on: ubuntu-20.04 @@ -284,9 +256,10 @@ jobs: - uses: actions/checkout@v3 - run: sudo docker run -i -v `pwd`:/odp --privileged --shm-size 8g -e CC="${{matrix.cc}}" -e ARCH="${ARCH}" -e CXX=g++-10 -e CONF="${{matrix.conf}}" $CONTAINER_NAMESPACE/odp-ci-${OS}-${ARCH} /odp/scripts/ci/check.sh - - name: Failure log - if: ${{ failure() }} - run: find . -name "*.trs" | xargs grep -l '^.test-result. FAIL' | while read trs ; do echo FAILURE detected at $trs; cat ${trs%%.trs}.log ; done + - if: ${{ failure() }} + uses: ./.github/actions/run-failure-log + - if: ${{ success() }} + uses: ./.github/actions/dump-log Run_OS: runs-on: ubuntu-20.04 @@ -299,9 +272,8 @@ jobs: - uses: actions/checkout@v3 - run: sudo docker run -i -v `pwd`:/odp --privileged --shm-size 8g -e CC="${{matrix.cc}}" -e ARCH="${ARCH}" -e CONF="${CONF}" $CONTAINER_NAMESPACE/odp-ci-${{matrix.os}}-${ARCH} /odp/scripts/ci/check.sh - - name: Failure log - if: ${{ failure() }} - run: find . -name "*.trs" | xargs grep -l '^.test-result. FAIL' | while read trs ; do echo FAILURE detected at $trs; cat ${trs%%.trs}.log ; done + - if: ${{ failure() }} + uses: ./.github/actions/run-failure-log Run_sched_config: runs-on: ubuntu-20.04 @@ -309,9 +281,8 @@ jobs: - uses: actions/checkout@v3 - run: sudo docker run -i -v `pwd`:/odp --privileged --shm-size 8g -e CC="${CC}" -e ARCH="${ARCH}" -e CONF="${CONF}" -e ODP_CONFIG_FILE=/odp/platform/linux-dpdk/test/sched-basic.conf $CONTAINER_NAMESPACE/odp-ci-${OS}-${ARCH} /odp/scripts/ci/check.sh - - name: Failure log - if: ${{ failure() }} - run: find . -name "*.trs" | xargs grep -l '^.test-result. FAIL' | while read trs ; do echo FAILURE detected at $trs; cat ${trs%%.trs}.log ; done + - if: ${{ failure() }} + uses: ./.github/actions/run-failure-log Run_stash_config: runs-on: ubuntu-20.04 @@ -319,9 +290,8 @@ jobs: - uses: actions/checkout@v3 - run: sudo docker run -i -v `pwd`:/odp --privileged --shm-size 8g -e CC="${CC}" -e ARCH="${ARCH}" -e CONF="${CONF}" -e ODP_CONFIG_FILE=/odp/platform/linux-dpdk/test/stash-custom.conf $CONTAINER_NAMESPACE/odp-ci-${OS}-${ARCH} /odp/scripts/ci/check.sh - - name: Failure log - if: ${{ failure() }} - run: find . -name "*.trs" | xargs grep -l '^.test-result. FAIL' | while read trs ; do echo FAILURE detected at $trs; cat ${trs%%.trs}.log ; done + - if: ${{ failure() }} + uses: ./.github/actions/run-failure-log Run_scheduler_sp: runs-on: ubuntu-20.04 @@ -329,9 +299,8 @@ jobs: - uses: actions/checkout@v3 - run: sudo docker run -i -v `pwd`:/odp --privileged --shm-size 8g -e CC="${CC}" -e ARCH="${ARCH}" -e CONF="${CONF}" -e ODP_SCHEDULER=sp $CONTAINER_NAMESPACE/odp-ci-${OS}-${ARCH} /odp/scripts/ci/check.sh - - name: Failure log - if: ${{ failure() }} - run: find . -name "*.trs" | xargs grep -l '^.test-result. FAIL' | while read trs ; do echo FAILURE detected at $trs; cat ${trs%%.trs}.log ; done + - if: ${{ failure() }} + uses: ./.github/actions/run-failure-log Run_process_mode: runs-on: ubuntu-20.04 @@ -340,9 +309,8 @@ jobs: - run: sudo docker run -i -v `pwd`:/odp --privileged --shm-size 8g -e CC="${CC}" -e ARCH="${ARCH}" -e CONF="${CONF}" -e ODP_CONFIG_FILE=/odp/platform/linux-dpdk/test/process-mode.conf -e ODPH_PROC_MODE=1 $CONTAINER_NAMESPACE/odp-ci-${OS}-${ARCH} /odp/scripts/ci/check.sh - - name: Failure log - if: ${{ failure() }} - run: find . -name "*.trs" | xargs grep -l '^.test-result. FAIL' | while read trs ; do echo FAILURE detected at $trs; cat ${trs%%.trs}.log ; done + - if: ${{ failure() }} + uses: ./.github/actions/run-failure-log Run_alternate_timer: runs-on: ubuntu-20.04 @@ -351,9 +319,8 @@ jobs: - run: sudo docker run -i -v `pwd`:/odp --privileged --shm-size 8g -e CC="${CC}" -e ARCH="${ARCH}" -e ODP_CONFIG_FILE=/odp/platform/linux-dpdk/test/alternate-timer.conf -e CONF="${CONF}" $CONTAINER_NAMESPACE/odp-ci-${OS}-${ARCH} /odp/scripts/ci/check.sh - - name: Failure log - if: ${{ failure() }} - run: find . -name "*.trs" | xargs grep -l '^.test-result. FAIL' | while read trs ; do echo FAILURE detected at $trs; cat ${trs%%.trs}.log ; done + - if: ${{ failure() }} + uses: ./.github/actions/run-failure-log Run_dpdk-19_11: runs-on: ubuntu-20.04 @@ -361,9 +328,8 @@ jobs: - uses: actions/checkout@v3 - run: sudo docker run -i -v `pwd`:/odp --privileged --shm-size 8g -e CC="${CC}" -e ARCH="${ARCH}" -e CONF="${CONF}" $CONTAINER_NAMESPACE/odp-ci-${OS}-${ARCH}-dpdk_19.11 /odp/scripts/ci/check.sh - - name: Failure log - if: ${{ failure() }} - run: find . -name "*.trs" | xargs grep -l '^.test-result. FAIL' | while read trs ; do echo FAILURE detected at $trs; cat ${trs%%.trs}.log ; done + - if: ${{ failure() }} + uses: ./.github/actions/run-failure-log Run_dpdk-20_11: runs-on: ubuntu-20.04 @@ -371,9 +337,8 @@ jobs: - uses: actions/checkout@v3 - run: sudo docker run -i -v `pwd`:/odp --privileged --shm-size 8g -e CC="${CC}" -e ARCH="${ARCH}" -e CONF="${CONF}" $CONTAINER_NAMESPACE/odp-ci-${OS}-${ARCH}-dpdk_20.11 /odp/scripts/ci/check.sh - - name: Failure log - if: ${{ failure() }} - run: find . -name "*.trs" | xargs grep -l '^.test-result. FAIL' | while read trs ; do echo FAILURE detected at $trs; cat ${trs%%.trs}.log ; done + - if: ${{ failure() }} + uses: ./.github/actions/run-failure-log Run_dpdk-21_11: runs-on: ubuntu-20.04 @@ -381,9 +346,8 @@ jobs: - uses: actions/checkout@v3 - run: sudo docker run -i -v `pwd`:/odp --privileged --shm-size 8g -e CC="${CC}" -e ARCH="${ARCH}" -e CONF="${CONF}" $CONTAINER_NAMESPACE/odp-ci-${OS}-${ARCH}-dpdk_21.11 /odp/scripts/ci/check.sh - - name: Failure log - if: ${{ failure() }} - run: find . -name "*.trs" | xargs grep -l '^.test-result. FAIL' | while read trs ; do echo FAILURE detected at $trs; cat ${trs%%.trs}.log ; done + - if: ${{ failure() }} + uses: ./.github/actions/run-failure-log Run_crypto: runs-on: ubuntu-20.04 @@ -397,6 +361,5 @@ jobs: -e CONF="${CONF}" -e ODP_PLATFORM_PARAMS="--vdev=${{matrix.driver}}" -e ODP_CONFIG_FILE=/odp/platform/linux-dpdk/test/crypto.conf $CONTAINER_NAMESPACE/odp-ci-${OS}-${ARCH} /odp/scripts/ci/check_validation.sh - - name: Failure log - if: ${{ failure() }} - run: find . -name "*.trs" | xargs grep -l '^.test-result. FAIL' | while read trs ; do echo FAILURE detected at $trs; cat ${trs%%.trs}.log ; done + - if: ${{ failure() }} + uses: ./.github/actions/run-failure-log |