* [PATCH] ci: run more checks in private repositories
@ 2022-03-24 14:53 David Marchand
2022-03-25 14:32 ` Aaron Conole
2024-07-09 13:17 ` [PATCH v2] " Robin Jarry
0 siblings, 2 replies; 4+ messages in thread
From: David Marchand @ 2022-03-24 14:53 UTC (permalink / raw)
To: dev; +Cc: thomas, Aaron Conole, Michael Santana
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 <david.marchand@redhat.com>
---
.ci/linux-build.sh | 2 --
.github/workflows/build.yml | 25 ++++++++++++++++++++++++-
2 files changed, 24 insertions(+), 3 deletions(-)
diff --git a/.ci/linux-build.sh b/.ci/linux-build.sh
index 69940dec8b..e3ac497012 100755
--- a/.ci/linux-build.sh
+++ b/.ci/linux-build.sh
@@ -117,8 +117,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
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 02819aa5de..829a10f5be 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -9,7 +9,31 @@ 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: v22.03
+
jobs:
+ checkpatch:
+ if: github.repository != 'DPDK/dpdk'
+ name: Check patches
+ runs-on: ubuntu-18.04
+ steps:
+ - name: Checkout sources
+ uses: actions/checkout@v2
+ 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-git-log.sh -r upstream/${{ env.REF_GIT_BRANCH }}.. || failed=true
+ devtools/check-meson.py || failed=true
+ devtools/check-symbol-maps.sh || failed=true
+ [ -z "$failed" ]
build:
name: ${{ join(matrix.config.*, '-') }}
runs-on: ${{ matrix.config.os }}
@@ -23,7 +47,6 @@ jobs:
LIBABIGAIL_VERSION: libabigail-1.8
MINI: ${{ matrix.config.mini != '' }}
PPC64LE: ${{ matrix.config.cross == 'ppc64le' }}
- REF_GIT_TAG: v22.03
RUN_TESTS: ${{ contains(matrix.config.checks, 'tests') }}
strategy:
--
2.23.0
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] ci: run more checks in private repositories
2022-03-24 14:53 [PATCH] ci: run more checks in private repositories David Marchand
@ 2022-03-25 14:32 ` Aaron Conole
2022-04-28 12:12 ` David Marchand
2024-07-09 13:17 ` [PATCH v2] " Robin Jarry
1 sibling, 1 reply; 4+ messages in thread
From: Aaron Conole @ 2022-03-25 14:32 UTC (permalink / raw)
To: David Marchand; +Cc: dev, thomas, Michael Santana
David Marchand <david.marchand@redhat.com> writes:
> 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 <david.marchand@redhat.com>
> ---
Looks good to me. The extra fetches shouldn't take too long (since we
refresh main branch weekly to the robot repository). The checks look
good - and since it's part of the same build workflow, it will be
reported in the same place (and hopefully in a readable form).
Acked-by: Aaron Conole <aconole@redhat.com>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] ci: run more checks in private repositories
2022-03-25 14:32 ` Aaron Conole
@ 2022-04-28 12:12 ` David Marchand
0 siblings, 0 replies; 4+ messages in thread
From: David Marchand @ 2022-04-28 12:12 UTC (permalink / raw)
To: Aaron Conole, Thomas Monjalon; +Cc: dev, Michael Santana
On Fri, Mar 25, 2022 at 3:32 PM Aaron Conole <aconole@redhat.com> wrote:
> David Marchand <david.marchand@redhat.com> writes:
>
> > 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 <david.marchand@redhat.com>
> > ---
>
> Looks good to me. The extra fetches shouldn't take too long (since we
> refresh main branch weekly to the robot repository). The checks look
> good - and since it's part of the same build workflow, it will be
> reported in the same place (and hopefully in a readable form).
Thanks for the review.
Thomas expressed a concern that the check-git-log.sh script has too
many false positives.
I will respin removing this check.
--
David Marchand
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH v2] ci: run more checks in private repositories
2022-03-24 14:53 [PATCH] ci: run more checks in private repositories David Marchand
2022-03-25 14:32 ` Aaron Conole
@ 2024-07-09 13:17 ` Robin Jarry
1 sibling, 0 replies; 4+ messages in thread
From: Robin Jarry @ 2024-07-09 13:17 UTC (permalink / raw)
To: dev, Aaron Conole, Michael Santana; +Cc: David Marchand
From: David Marchand <david.marchand@redhat.com>
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 <david.marchand@redhat.com>
Signed-off-by: Robin Jarry <rjarry@redhat.com>
Acked-by: Aaron Conole <aconole@redhat.com>
---
Notes:
v2:
* rebased on HEAD
* removed check-git-log.sh from checks to avoid too many false positives
.ci/linux-build.sh | 2 --
.github/workflows/build.yml | 24 +++++++++++++++++++++++-
2 files changed, 23 insertions(+), 3 deletions(-)
diff --git a/.ci/linux-build.sh b/.ci/linux-build.sh
index 15ed51e4c18c..fdb578762116 100755
--- a/.ci/linux-build.sh
+++ b/.ci/linux-build.sh
@@ -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
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index dbf25626d4c4..7efc0b935e17 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -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: v24.03
+
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 }}
@@ -27,7 +50,6 @@ jobs:
MINGW: ${{ matrix.config.cross == 'mingw' }}
MINI: ${{ matrix.config.mini != '' }}
PPC64LE: ${{ matrix.config.cross == 'ppc64le' }}
- REF_GIT_TAG: v24.03
RISCV64: ${{ matrix.config.cross == 'riscv64' }}
RUN_TESTS: ${{ contains(matrix.config.checks, 'tests') }}
STDATOMIC: ${{ contains(matrix.config.checks, 'stdatomic') }}
--
2.45.2
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2024-07-09 13:17 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-03-24 14:53 [PATCH] ci: run more checks in private repositories David Marchand
2022-03-25 14:32 ` Aaron Conole
2022-04-28 12:12 ` David Marchand
2024-07-09 13:17 ` [PATCH v2] " Robin Jarry
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).