Skip to content

Commit

Permalink
ci: run more checks in private repositories
Browse files Browse the repository at this point in the history
Though devtools/checkpatches.sh is run as part of our CI, some other
(not well known) checks could help when run in private repositories
before submitting to the mailing list and even when run from the
ovsrobot.

Most of them require a git history or checked sources to run.
And I can't guarantee there won't be false positives.

Add a new job just for those checks so that it won't block compilation
tests in other jobs.

Signed-off-by: David Marchand <[email protected]>
Signed-off-by: Robin Jarry <[email protected]>
Acked-by: Aaron Conole <[email protected]>
  • Loading branch information
david-marchand committed Nov 26, 2024
1 parent df8b5bf commit 24a0c35
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 3 deletions.
2 changes: 0 additions & 2 deletions .ci/linux-build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -148,8 +148,6 @@ if [ "$ABI_CHECKS" = "true" ]; then

export PATH=$(pwd)/libabigail/bin:$PATH

REF_GIT_REPO=${REF_GIT_REPO:-https://dpdk.org/git/dpdk}

if [ "$(cat reference/VERSION 2>/dev/null)" != "$REF_GIT_TAG" ]; then
rm -rf reference
fi
Expand Down
24 changes: 23 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,30 @@ defaults:
run:
shell: bash --noprofile --norc -exo pipefail {0}

env:
REF_GIT_BRANCH: main
REF_GIT_REPO: https://dpdk.org/git/dpdk
REF_GIT_TAG: none

jobs:
checkpatch:
if: github.repository != 'DPDK/dpdk'
name: Check patches
runs-on: ubuntu-24.04
steps:
- name: Checkout sources
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Check patches
run: |
git remote add upstream ${{ env.REF_GIT_REPO }}
git fetch upstream ${{ env.REF_GIT_BRANCH }}
failed=
devtools/check-doc-vs-code.sh upstream/${{ env.REF_GIT_BRANCH }} || failed=true
devtools/check-meson.py || failed=true
devtools/check-symbol-maps.sh || failed=true
[ -z "$failed" ]
ubuntu-vm-builds:
name: ${{ join(matrix.config.*, '-') }}
runs-on: ${{ matrix.config.os }}
Expand All @@ -27,7 +50,6 @@ jobs:
MINGW: ${{ matrix.config.cross == 'mingw' }}
MINI: ${{ matrix.config.mini != '' }}
PPC64LE: ${{ matrix.config.cross == 'ppc64le' }}
REF_GIT_TAG: none
RISCV64: ${{ matrix.config.cross == 'riscv64' }}
RUN_TESTS: ${{ contains(matrix.config.checks, 'tests') }}
STDATOMIC: ${{ contains(matrix.config.checks, 'stdatomic') }}
Expand Down

0 comments on commit 24a0c35

Please sign in to comment.