aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows/ci-pipeline-arm64.yml
diff options
context:
space:
mode:
authorTuomas Taipale <tuomas.taipale@nokia.com>2023-08-11 05:26:36 +0000
committerMatias Elo <matias.elo@nokia.com>2023-08-15 11:12:40 +0300
commitdcea93db1f8b947c1378bb943a01a9b0e1eca6c2 (patch)
treec09473ab9c7142f59067aa9b73426e069058b961 /.github/workflows/ci-pipeline-arm64.yml
parent30ee4db2240a2fec844f93fce675324a881e5106 (diff)
github_ci: utilize new logging actions
Take newly added local github actions into use. Signed-off-by: Tuomas Taipale <tuomas.taipale@nokia.com> Reviewed-by: Matias Elo <matias.elo@nokia.com>
Diffstat (limited to '.github/workflows/ci-pipeline-arm64.yml')
-rw-r--r--.github/workflows/ci-pipeline-arm64.yml102
1 files changed, 42 insertions, 60 deletions
diff --git a/.github/workflows/ci-pipeline-arm64.yml b/.github/workflows/ci-pipeline-arm64.yml
index 1b516b274..c6825668e 100644
--- a/.github/workflows/ci-pipeline-arm64.yml
+++ b/.github/workflows/ci-pipeline-arm64.yml
@@ -31,9 +31,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' }}
@@ -51,9 +50,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' }}
@@ -68,9 +66,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' }}
@@ -87,9 +84,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' }}
@@ -99,9 +95,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
Build_XDP:
if: ${{ github.repository == 'OpenDataPlane/odp' }}
@@ -118,9 +113,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}-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
Run_distcheck:
if: ${{ github.repository == 'OpenDataPlane/odp' }}
@@ -134,9 +128,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/distcheck.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:
if: ${{ github.repository == 'OpenDataPlane/odp' }}
@@ -155,9 +148,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' }}
@@ -172,9 +166,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' }}
@@ -188,9 +181,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' }}
@@ -200,9 +192,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-generic/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' }}
@@ -212,9 +203,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-generic/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' }}
@@ -224,9 +214,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_scheduler_scalable:
if: ${{ github.repository == 'OpenDataPlane/odp' }}
@@ -236,9 +225,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=scalable -e CI_SKIP=pktio_test_pktin_event_sched $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' }}
@@ -249,9 +237,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-generic/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_inline_timer:
if: ${{ github.repository == 'OpenDataPlane/odp' }}
@@ -262,9 +249,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-generic/test/inline-timer.conf
$CONTAINER_NAMESPACE/odp-ci-${OS}-${ARCH}-native /odp/scripts/ci/check_inline_timer.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_packet_align:
if: ${{ github.repository == 'OpenDataPlane/odp' }}
@@ -275,9 +261,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-generic/test/packet_align.conf
$CONTAINER_NAMESPACE/odp-ci-${OS}-${ARCH}-native /odp/scripts/ci/check_pktio.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' }}
@@ -287,9 +272,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' }}
@@ -299,9 +283,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' }}
@@ -311,6 +294,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