* [PATCH v2 0/5] scrips/coverity-scan: COMPONENTS.md updates
@ 2024-06-04 14:59 Peter Maydell
2024-06-04 14:59 ` [PATCH v2 1/5] scripts/coverity-scan/COMPONENTS.md: Update paths to match gitlab CI Peter Maydell
` (5 more replies)
0 siblings, 6 replies; 12+ messages in thread
From: Peter Maydell @ 2024-06-04 14:59 UTC (permalink / raw)
To: qemu-devel; +Cc: Paolo Bonzini, Philippe Mathieu-Daudé
Since commit 83aa1baa069c we have been running the build for Coverity
Scan as a Gitlab CI job, rather than the old setup where it was run
on a local developer's machine. This is working well, but the
absolute paths of files are different for the Gitlab CI job, which
means that the regexes we use to identify Coverity components no
longer work. With Gitlab CI builds the file paths are of the form
/builds/qemu-project/qemu/accel/kvm/kvm-all.c
rather than the old
/qemu/accel/kvm/kvm-all.c
and our regexes all don't match.
The main aim of this series is to fix that, which is what patch 1 does.
Patches 2-5 are minor updates where we were missing files in some
components because we hadn't updated them when we moved things around
or added new files. They're worth doing now since handling patch 1
will require a manual deletion of all components in the coverity
web GUI and re-adding them. (There is, alas, no automated API for this.)
thanks
-- PMM
Peter Maydell (5):
scripts/coverity-scan/COMPONENTS.md: Update paths to match gitlab CI
scripts/coverity-scan/COMPONENTS.md: Fix 'char' component
scripts/coverity-scan/COMPONENTS.md: Add crypto headers in
host/include to the crypto component
scripts/coverity-scan/COMPONENTS.md: Fix monitor component
scripts/coverity-scan/COMPONENTS.md: Include libqmp in testlibs
scripts/coverity-scan/COMPONENTS.md | 107 ++++++++++++++--------------
1 file changed, 55 insertions(+), 52 deletions(-)
--
2.34.1
^ permalink raw reply [flat|nested] 12+ messages in thread
* [PATCH v2 1/5] scripts/coverity-scan/COMPONENTS.md: Update paths to match gitlab CI
2024-06-04 14:59 [PATCH v2 0/5] scrips/coverity-scan: COMPONENTS.md updates Peter Maydell
@ 2024-06-04 14:59 ` Peter Maydell
2024-06-04 15:16 ` Philippe Mathieu-Daudé
2024-06-04 14:59 ` [PATCH v2 2/5] scripts/coverity-scan/COMPONENTS.md: Fix 'char' component Peter Maydell
` (4 subsequent siblings)
5 siblings, 1 reply; 12+ messages in thread
From: Peter Maydell @ 2024-06-04 14:59 UTC (permalink / raw)
To: qemu-devel; +Cc: Paolo Bonzini, Philippe Mathieu-Daudé
Since commit 83aa1baa069c we have been running the build for Coverity
Scan as a Gitlab CI job, rather than the old setup where it was run
on a local developer's machine. This is working well, but the
absolute paths of files are different for the Gitlab CI job, which
means that the regexes we use to identify Coverity components no
longer work. With Gitlab CI builds the file paths are of the form
/builds/qemu-project/qemu/accel/kvm/kvm-all.c
rather than the old
/qemu/accel/kvm/kvm-all.c
and our regexes all don't match.
Update all the regexes to start with .*/qemu/ . This will hopefully
avoid the need to change them again in future if the build path
changes again.
This change was made with a search-and-replace of (/qemu)?
to .*/qemu .
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
---
scripts/coverity-scan/COMPONENTS.md | 104 ++++++++++++++--------------
1 file changed, 52 insertions(+), 52 deletions(-)
diff --git a/scripts/coverity-scan/COMPONENTS.md b/scripts/coverity-scan/COMPONENTS.md
index 1537e49cd5a..98d4bcd6a50 100644
--- a/scripts/coverity-scan/COMPONENTS.md
+++ b/scripts/coverity-scan/COMPONENTS.md
@@ -1,157 +1,157 @@
This is the list of currently configured Coverity components:
alpha
- ~ (/qemu)?((/include)?/hw/alpha/.*|/target/alpha/.*)
+ ~ .*/qemu((/include)?/hw/alpha/.*|/target/alpha/.*)
arm
- ~ (/qemu)?((/include)?/hw/arm/.*|(/include)?/hw/.*/(arm|allwinner-a10|bcm28|digic|exynos|imx|omap|stellaris|pxa2xx|versatile|zynq|cadence).*|/hw/net/xgmac.c|/hw/ssi/xilinx_spips.c|/target/arm/.*)
+ ~ .*/qemu((/include)?/hw/arm/.*|(/include)?/hw/.*/(arm|allwinner-a10|bcm28|digic|exynos|imx|omap|stellaris|pxa2xx|versatile|zynq|cadence).*|/hw/net/xgmac.c|/hw/ssi/xilinx_spips.c|/target/arm/.*)
avr
- ~ (/qemu)?((/include)?/hw/avr/.*|/target/avr/.*)
+ ~ .*/qemu((/include)?/hw/avr/.*|/target/avr/.*)
cris
- ~ (/qemu)?((/include)?/hw/cris/.*|/target/cris/.*)
+ ~ .*/qemu((/include)?/hw/cris/.*|/target/cris/.*)
hexagon-gen (component should be ignored in analysis)
- ~ (/qemu)?(/target/hexagon/.*generated.*)
+ ~ .*/qemu(/target/hexagon/.*generated.*)
hexagon
- ~ (/qemu)?(/target/hexagon/.*)
+ ~ .*/qemu(/target/hexagon/.*)
hppa
- ~ (/qemu)?((/include)?/hw/hppa/.*|/target/hppa/.*)
+ ~ .*/qemu((/include)?/hw/hppa/.*|/target/hppa/.*)
i386
- ~ (/qemu)?((/include)?/hw/i386/.*|/target/i386/.*|/hw/intc/[^/]*apic[^/]*\.c)
+ ~ .*/qemu((/include)?/hw/i386/.*|/target/i386/.*|/hw/intc/[^/]*apic[^/]*\.c)
loongarch
- ~ (/qemu)?((/include)?/hw/(loongarch/.*|.*/loongarch.*)|/target/loongarch/.*)
+ ~ .*/qemu((/include)?/hw/(loongarch/.*|.*/loongarch.*)|/target/loongarch/.*)
m68k
- ~ (/qemu)?((/include)?/hw/m68k/.*|/target/m68k/.*|(/include)?/hw(/.*)?/mcf.*|(/include)?/hw/nubus/.*)
+ ~ .*/qemu((/include)?/hw/m68k/.*|/target/m68k/.*|(/include)?/hw(/.*)?/mcf.*|(/include)?/hw/nubus/.*)
microblaze
- ~ (/qemu)?((/include)?/hw/microblaze/.*|/target/microblaze/.*)
+ ~ .*/qemu((/include)?/hw/microblaze/.*|/target/microblaze/.*)
mips
- ~ (/qemu)?((/include)?/hw/mips/.*|/target/mips/.*)
+ ~ .*/qemu((/include)?/hw/mips/.*|/target/mips/.*)
openrisc
- ~ (/qemu)?((/include)?/hw/openrisc/.*|/target/openrisc/.*)
+ ~ .*/qemu((/include)?/hw/openrisc/.*|/target/openrisc/.*)
ppc
- ~ (/qemu)?((/include)?/hw/ppc/.*|/target/ppc/.*|/hw/pci-host/(uninorth.*|dec.*|prep.*|ppc.*)|/hw/misc/macio/.*|(/include)?/hw/.*/(xics|openpic|spapr).*)
+ ~ .*/qemu((/include)?/hw/ppc/.*|/target/ppc/.*|/hw/pci-host/(uninorth.*|dec.*|prep.*|ppc.*)|/hw/misc/macio/.*|(/include)?/hw/.*/(xics|openpic|spapr).*)
riscv
- ~ (/qemu)?((/include)?/hw/riscv/.*|/target/riscv/.*|/hw/.*/(riscv_|ibex_|sifive_).*)
+ ~ .*/qemu((/include)?/hw/riscv/.*|/target/riscv/.*|/hw/.*/(riscv_|ibex_|sifive_).*)
rx
- ~ (/qemu)?((/include)?/hw/rx/.*|/target/rx/.*)
+ ~ .*/qemu((/include)?/hw/rx/.*|/target/rx/.*)
s390
- ~ (/qemu)?((/include)?/hw/s390x/.*|/target/s390x/.*|/hw/.*/s390_.*)
+ ~ .*/qemu((/include)?/hw/s390x/.*|/target/s390x/.*|/hw/.*/s390_.*)
sh4
- ~ (/qemu)?((/include)?/hw/sh4/.*|/target/sh4/.*)
+ ~ .*/qemu((/include)?/hw/sh4/.*|/target/sh4/.*)
sparc
- ~ (/qemu)?((/include)?/hw/sparc(64)?.*|/target/sparc/.*|/hw/.*/grlib.*|/hw/display/cg3.c)
+ ~ .*/qemu((/include)?/hw/sparc(64)?.*|/target/sparc/.*|/hw/.*/grlib.*|/hw/display/cg3.c)
tricore
- ~ (/qemu)?((/include)?/hw/tricore/.*|/target/tricore/.*)
+ ~ .*/qemu((/include)?/hw/tricore/.*|/target/tricore/.*)
xtensa
- ~ (/qemu)?((/include)?/hw/xtensa/.*|/target/xtensa/.*)
+ ~ .*/qemu((/include)?/hw/xtensa/.*|/target/xtensa/.*)
9pfs
- ~ (/qemu)?(/hw/9pfs/.*|/fsdev/.*)
+ ~ .*/qemu(/hw/9pfs/.*|/fsdev/.*)
audio
- ~ (/qemu)?((/include)?/(audio|hw/audio)/.*)
+ ~ .*/qemu((/include)?/(audio|hw/audio)/.*)
block
- ~ (/qemu)?(/block.*|(/include?)/(block|storage-daemon)/.*|(/include)?/hw/(block|ide|nvme)/.*|/qemu-(img|io).*|/util/(aio|async|thread-pool).*)
+ ~ .*/qemu(/block.*|(/include?)/(block|storage-daemon)/.*|(/include)?/hw/(block|ide|nvme)/.*|/qemu-(img|io).*|/util/(aio|async|thread-pool).*)
char
- ~ (/qemu)?(/qemu-char\.c|/include/sysemu/char\.h|(/include)?/hw/char/.*)
+ ~ .*/qemu(/qemu-char\.c|/include/sysemu/char\.h|(/include)?/hw/char/.*)
crypto
- ~ (/qemu)?((/include)?/crypto/.*|/hw/.*/.*crypto.*|(/include/sysemu|/backends)/cryptodev.*)
+ ~ .*/qemu((/include)?/crypto/.*|/hw/.*/.*crypto.*|(/include/sysemu|/backends)/cryptodev.*)
disas
- ~ (/qemu)?((/include)?/disas.*)
+ ~ .*/qemu((/include)?/disas.*)
fpu
- ~ (/qemu)?((/include)?(/fpu|/libdecnumber)/.*)
+ ~ .*/qemu((/include)?(/fpu|/libdecnumber)/.*)
io
- ~ (/qemu)?((/include)?/io/.*)
+ ~ .*/qemu((/include)?/io/.*)
ipmi
- ~ (/qemu)?((/include)?/hw/ipmi/.*)
+ ~ .*/qemu((/include)?/hw/ipmi/.*)
migration
- ~ (/qemu)?((/include)?/migration/.*)
+ ~ .*/qemu((/include)?/migration/.*)
monitor
- ~ (/qemu)?(/qapi.*|/qobject/.*|/monitor\..*|/[hq]mp\..*)
+ ~ .*/qemu(/qapi.*|/qobject/.*|/monitor\..*|/[hq]mp\..*)
nbd
- ~ (/qemu)?(/nbd/.*|/include/block/nbd.*|/qemu-nbd\.c)
+ ~ .*/qemu(/nbd/.*|/include/block/nbd.*|/qemu-nbd\.c)
net
- ~ (/qemu)?((/include)?(/hw)?/(net|rdma)/.*)
+ ~ .*/qemu((/include)?(/hw)?/(net|rdma)/.*)
pci
- ~ (/qemu)?(/include)?/hw/(cxl/|pci).*
+ ~ .*/qemu(/include)?/hw/(cxl/|pci).*
qemu-ga
- ~ (/qemu)?(/qga/.*)
+ ~ .*/qemu(/qga/.*)
scsi
- ~ (/qemu)?(/scsi/.*|/hw/scsi/.*|/include/hw/scsi/.*)
+ ~ .*/qemu(/scsi/.*|/hw/scsi/.*|/include/hw/scsi/.*)
trace
- ~ (/qemu)?(/.*trace.*\.[ch])
+ ~ .*/qemu(/.*trace.*\.[ch])
ui
- ~ (/qemu)?((/include)?(/ui|/hw/display|/hw/input)/.*)
+ ~ .*/qemu((/include)?(/ui|/hw/display|/hw/input)/.*)
usb
- ~ (/qemu)?(/hw/usb/.*|/include/hw/usb/.*)
+ ~ .*/qemu(/hw/usb/.*|/include/hw/usb/.*)
user
- ~ (/qemu)?(/linux-user/.*|/bsd-user/.*|/user-exec\.c|/thunk\.c|/include/user/.*)
+ ~ .*/qemu(/linux-user/.*|/bsd-user/.*|/user-exec\.c|/thunk\.c|/include/user/.*)
util
- ~ (/qemu)?(/util/.*|/include/qemu/.*)
+ ~ .*/qemu(/util/.*|/include/qemu/.*)
vfio
- ~ (/qemu)?(/include)?/hw/vfio/.*
+ ~ .*/qemu(/include)?/hw/vfio/.*
virtio
- ~ (/qemu)?(/include)?/hw/virtio/.*
+ ~ .*/qemu(/include)?/hw/virtio/.*
xen
- ~ (/qemu)?(.*/xen.*)
+ ~ .*/qemu(.*/xen.*)
hvf
- ~ (/qemu)?(.*/hvf.*)
+ ~ .*/qemu(.*/hvf.*)
kvm
- ~ (/qemu)?(.*/kvm.*)
+ ~ .*/qemu(.*/kvm.*)
tcg
- ~ (/qemu)?(/accel/tcg|/replay|/tcg)/.*
+ ~ .*/qemu(/accel/tcg|/replay|/tcg)/.*
sysemu
- ~ (/qemu)?(/system/.*|/accel/.*)
+ ~ .*/qemu(/system/.*|/accel/.*)
(headers)
- ~ (/qemu)?(/include/.*)
+ ~ .*/qemu(/include/.*)
testlibs
- ~ (/qemu)?(/tests/qtest(/libqos/.*|/libqtest.*))
+ ~ .*/qemu(/tests/qtest(/libqos/.*|/libqtest.*))
tests
- ~ (/qemu)?(/tests/.*)
+ ~ .*/qemu(/tests/.*)
--
2.34.1
^ permalink raw reply related [flat|nested] 12+ messages in thread
* [PATCH v2 2/5] scripts/coverity-scan/COMPONENTS.md: Fix 'char' component
2024-06-04 14:59 [PATCH v2 0/5] scrips/coverity-scan: COMPONENTS.md updates Peter Maydell
2024-06-04 14:59 ` [PATCH v2 1/5] scripts/coverity-scan/COMPONENTS.md: Update paths to match gitlab CI Peter Maydell
@ 2024-06-04 14:59 ` Peter Maydell
2024-06-04 15:16 ` Philippe Mathieu-Daudé
2024-06-04 14:59 ` [PATCH v2 3/5] scripts/coverity-scan/COMPONENTS.md: Add crypto headers in host/include to the crypto component Peter Maydell
` (3 subsequent siblings)
5 siblings, 1 reply; 12+ messages in thread
From: Peter Maydell @ 2024-06-04 14:59 UTC (permalink / raw)
To: qemu-devel; +Cc: Paolo Bonzini, Philippe Mathieu-Daudé
The 'char' component:
* includes the no-longer-present qemu-char.c, which has been
long since split into the chardev/ backend code
* also includes the hw/char devices
Split it into two components:
* char is the hw/char devices
* chardev is the chardev backends
with regexes matching our current sources.
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
---
scripts/coverity-scan/COMPONENTS.md | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/scripts/coverity-scan/COMPONENTS.md b/scripts/coverity-scan/COMPONENTS.md
index 98d4bcd6a50..fb081a59265 100644
--- a/scripts/coverity-scan/COMPONENTS.md
+++ b/scripts/coverity-scan/COMPONENTS.md
@@ -73,7 +73,10 @@ block
~ .*/qemu(/block.*|(/include?)/(block|storage-daemon)/.*|(/include)?/hw/(block|ide|nvme)/.*|/qemu-(img|io).*|/util/(aio|async|thread-pool).*)
char
- ~ .*/qemu(/qemu-char\.c|/include/sysemu/char\.h|(/include)?/hw/char/.*)
+ ~ .*/qemu((/include)?/hw/char/.*)
+
+chardev
+ ~ .*/qemu((/include)?/chardev/.*)
crypto
~ .*/qemu((/include)?/crypto/.*|/hw/.*/.*crypto.*|(/include/sysemu|/backends)/cryptodev.*)
--
2.34.1
^ permalink raw reply related [flat|nested] 12+ messages in thread
* [PATCH v2 3/5] scripts/coverity-scan/COMPONENTS.md: Add crypto headers in host/include to the crypto component
2024-06-04 14:59 [PATCH v2 0/5] scrips/coverity-scan: COMPONENTS.md updates Peter Maydell
2024-06-04 14:59 ` [PATCH v2 1/5] scripts/coverity-scan/COMPONENTS.md: Update paths to match gitlab CI Peter Maydell
2024-06-04 14:59 ` [PATCH v2 2/5] scripts/coverity-scan/COMPONENTS.md: Fix 'char' component Peter Maydell
@ 2024-06-04 14:59 ` Peter Maydell
2024-06-04 15:17 ` Philippe Mathieu-Daudé
2024-06-04 14:59 ` [PATCH v2 4/5] scripts/coverity-scan/COMPONENTS.md: Fix monitor component Peter Maydell
` (2 subsequent siblings)
5 siblings, 1 reply; 12+ messages in thread
From: Peter Maydell @ 2024-06-04 14:59 UTC (permalink / raw)
To: qemu-devel; +Cc: Paolo Bonzini, Philippe Mathieu-Daudé
host/include/*/host/crypto/ are relatively new headers; add them
to the crypto component.
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
---
scripts/coverity-scan/COMPONENTS.md | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/scripts/coverity-scan/COMPONENTS.md b/scripts/coverity-scan/COMPONENTS.md
index fb081a59265..205ab23b280 100644
--- a/scripts/coverity-scan/COMPONENTS.md
+++ b/scripts/coverity-scan/COMPONENTS.md
@@ -79,7 +79,7 @@ chardev
~ .*/qemu((/include)?/chardev/.*)
crypto
- ~ .*/qemu((/include)?/crypto/.*|/hw/.*/.*crypto.*|(/include/sysemu|/backends)/cryptodev.*)
+ ~ .*/qemu((/include)?/crypto/.*|/hw/.*/.*crypto.*|(/include/sysemu|/backends)/cryptodev.*|/host/include/.*/host/crypto/.*)
disas
~ .*/qemu((/include)?/disas.*)
--
2.34.1
^ permalink raw reply related [flat|nested] 12+ messages in thread
* [PATCH v2 4/5] scripts/coverity-scan/COMPONENTS.md: Fix monitor component
2024-06-04 14:59 [PATCH v2 0/5] scrips/coverity-scan: COMPONENTS.md updates Peter Maydell
` (2 preceding siblings ...)
2024-06-04 14:59 ` [PATCH v2 3/5] scripts/coverity-scan/COMPONENTS.md: Add crypto headers in host/include to the crypto component Peter Maydell
@ 2024-06-04 14:59 ` Peter Maydell
2024-06-04 15:18 ` Philippe Mathieu-Daudé
2024-06-04 14:59 ` [PATCH v2 5/5] scripts/coverity-scan/COMPONENTS.md: Include libqmp in testlibs Peter Maydell
2024-06-10 12:25 ` [PATCH v2 0/5] scrips/coverity-scan: COMPONENTS.md updates Peter Maydell
5 siblings, 1 reply; 12+ messages in thread
From: Peter Maydell @ 2024-06-04 14:59 UTC (permalink / raw)
To: qemu-devel; +Cc: Paolo Bonzini, Philippe Mathieu-Daudé
Update the 'monitor' component:
* qapi/ and monitor/ are now subdirectories
* add job-qmp.c
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
---
scripts/coverity-scan/COMPONENTS.md | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/scripts/coverity-scan/COMPONENTS.md b/scripts/coverity-scan/COMPONENTS.md
index 205ab23b280..3864f8eda07 100644
--- a/scripts/coverity-scan/COMPONENTS.md
+++ b/scripts/coverity-scan/COMPONENTS.md
@@ -97,7 +97,7 @@ migration
~ .*/qemu((/include)?/migration/.*)
monitor
- ~ .*/qemu(/qapi.*|/qobject/.*|/monitor\..*|/[hq]mp\..*)
+ ~ .*/qemu((/include)?/(qapi|qobject|monitor)/.*|/job-qmp.c)
nbd
~ .*/qemu(/nbd/.*|/include/block/nbd.*|/qemu-nbd\.c)
--
2.34.1
^ permalink raw reply related [flat|nested] 12+ messages in thread
* [PATCH v2 5/5] scripts/coverity-scan/COMPONENTS.md: Include libqmp in testlibs
2024-06-04 14:59 [PATCH v2 0/5] scrips/coverity-scan: COMPONENTS.md updates Peter Maydell
` (3 preceding siblings ...)
2024-06-04 14:59 ` [PATCH v2 4/5] scripts/coverity-scan/COMPONENTS.md: Fix monitor component Peter Maydell
@ 2024-06-04 14:59 ` Peter Maydell
2024-06-04 15:18 ` Philippe Mathieu-Daudé
2024-06-10 12:25 ` [PATCH v2 0/5] scrips/coverity-scan: COMPONENTS.md updates Peter Maydell
5 siblings, 1 reply; 12+ messages in thread
From: Peter Maydell @ 2024-06-04 14:59 UTC (permalink / raw)
To: qemu-devel; +Cc: Paolo Bonzini, Philippe Mathieu-Daudé
Add libqmp to the testlibs component.
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
---
scripts/coverity-scan/COMPONENTS.md | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/scripts/coverity-scan/COMPONENTS.md b/scripts/coverity-scan/COMPONENTS.md
index 3864f8eda07..858190be097 100644
--- a/scripts/coverity-scan/COMPONENTS.md
+++ b/scripts/coverity-scan/COMPONENTS.md
@@ -154,7 +154,7 @@ sysemu
~ .*/qemu(/include/.*)
testlibs
- ~ .*/qemu(/tests/qtest(/libqos/.*|/libqtest.*))
+ ~ .*/qemu(/tests/qtest(/libqos/.*|/libqtest.*|/libqmp.*))
tests
~ .*/qemu(/tests/.*)
--
2.34.1
^ permalink raw reply related [flat|nested] 12+ messages in thread
* Re: [PATCH v2 1/5] scripts/coverity-scan/COMPONENTS.md: Update paths to match gitlab CI
2024-06-04 14:59 ` [PATCH v2 1/5] scripts/coverity-scan/COMPONENTS.md: Update paths to match gitlab CI Peter Maydell
@ 2024-06-04 15:16 ` Philippe Mathieu-Daudé
0 siblings, 0 replies; 12+ messages in thread
From: Philippe Mathieu-Daudé @ 2024-06-04 15:16 UTC (permalink / raw)
To: Peter Maydell, qemu-devel; +Cc: Paolo Bonzini
On 4/6/24 16:59, Peter Maydell wrote:
> Since commit 83aa1baa069c we have been running the build for Coverity
> Scan as a Gitlab CI job, rather than the old setup where it was run
> on a local developer's machine. This is working well, but the
> absolute paths of files are different for the Gitlab CI job, which
> means that the regexes we use to identify Coverity components no
> longer work. With Gitlab CI builds the file paths are of the form
> /builds/qemu-project/qemu/accel/kvm/kvm-all.c
>
> rather than the old
> /qemu/accel/kvm/kvm-all.c
>
> and our regexes all don't match.
>
> Update all the regexes to start with .*/qemu/ . This will hopefully
> avoid the need to change them again in future if the build path
> changes again.
>
> This change was made with a search-and-replace of (/qemu)?
> to .*/qemu .
>
> Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
> ---
> scripts/coverity-scan/COMPONENTS.md | 104 ++++++++++++++--------------
> 1 file changed, 52 insertions(+), 52 deletions(-)
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [PATCH v2 2/5] scripts/coverity-scan/COMPONENTS.md: Fix 'char' component
2024-06-04 14:59 ` [PATCH v2 2/5] scripts/coverity-scan/COMPONENTS.md: Fix 'char' component Peter Maydell
@ 2024-06-04 15:16 ` Philippe Mathieu-Daudé
0 siblings, 0 replies; 12+ messages in thread
From: Philippe Mathieu-Daudé @ 2024-06-04 15:16 UTC (permalink / raw)
To: Peter Maydell, qemu-devel; +Cc: Paolo Bonzini
On 4/6/24 16:59, Peter Maydell wrote:
> The 'char' component:
> * includes the no-longer-present qemu-char.c, which has been
> long since split into the chardev/ backend code
> * also includes the hw/char devices
>
> Split it into two components:
> * char is the hw/char devices
> * chardev is the chardev backends
> with regexes matching our current sources.
>
> Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
> ---
> scripts/coverity-scan/COMPONENTS.md | 5 ++++-
> 1 file changed, 4 insertions(+), 1 deletion(-)
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [PATCH v2 3/5] scripts/coverity-scan/COMPONENTS.md: Add crypto headers in host/include to the crypto component
2024-06-04 14:59 ` [PATCH v2 3/5] scripts/coverity-scan/COMPONENTS.md: Add crypto headers in host/include to the crypto component Peter Maydell
@ 2024-06-04 15:17 ` Philippe Mathieu-Daudé
0 siblings, 0 replies; 12+ messages in thread
From: Philippe Mathieu-Daudé @ 2024-06-04 15:17 UTC (permalink / raw)
To: Peter Maydell, qemu-devel; +Cc: Paolo Bonzini
On 4/6/24 16:59, Peter Maydell wrote:
> host/include/*/host/crypto/ are relatively new headers; add them
> to the crypto component.
>
> Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
> ---
> scripts/coverity-scan/COMPONENTS.md | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [PATCH v2 4/5] scripts/coverity-scan/COMPONENTS.md: Fix monitor component
2024-06-04 14:59 ` [PATCH v2 4/5] scripts/coverity-scan/COMPONENTS.md: Fix monitor component Peter Maydell
@ 2024-06-04 15:18 ` Philippe Mathieu-Daudé
0 siblings, 0 replies; 12+ messages in thread
From: Philippe Mathieu-Daudé @ 2024-06-04 15:18 UTC (permalink / raw)
To: Peter Maydell, qemu-devel; +Cc: Paolo Bonzini
On 4/6/24 16:59, Peter Maydell wrote:
> Update the 'monitor' component:
> * qapi/ and monitor/ are now subdirectories
> * add job-qmp.c
>
> Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
> ---
> scripts/coverity-scan/COMPONENTS.md | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [PATCH v2 5/5] scripts/coverity-scan/COMPONENTS.md: Include libqmp in testlibs
2024-06-04 14:59 ` [PATCH v2 5/5] scripts/coverity-scan/COMPONENTS.md: Include libqmp in testlibs Peter Maydell
@ 2024-06-04 15:18 ` Philippe Mathieu-Daudé
0 siblings, 0 replies; 12+ messages in thread
From: Philippe Mathieu-Daudé @ 2024-06-04 15:18 UTC (permalink / raw)
To: Peter Maydell, qemu-devel; +Cc: Paolo Bonzini
On 4/6/24 16:59, Peter Maydell wrote:
> Add libqmp to the testlibs component.
>
> Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
> ---
> scripts/coverity-scan/COMPONENTS.md | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [PATCH v2 0/5] scrips/coverity-scan: COMPONENTS.md updates
2024-06-04 14:59 [PATCH v2 0/5] scrips/coverity-scan: COMPONENTS.md updates Peter Maydell
` (4 preceding siblings ...)
2024-06-04 14:59 ` [PATCH v2 5/5] scripts/coverity-scan/COMPONENTS.md: Include libqmp in testlibs Peter Maydell
@ 2024-06-10 12:25 ` Peter Maydell
5 siblings, 0 replies; 12+ messages in thread
From: Peter Maydell @ 2024-06-10 12:25 UTC (permalink / raw)
To: qemu-devel; +Cc: Paolo Bonzini, Philippe Mathieu-Daudé
On Tue, 4 Jun 2024 at 15:59, Peter Maydell <peter.maydell@linaro.org> wrote:
>
> Since commit 83aa1baa069c we have been running the build for Coverity
> Scan as a Gitlab CI job, rather than the old setup where it was run
> on a local developer's machine. This is working well, but the
> absolute paths of files are different for the Gitlab CI job, which
> means that the regexes we use to identify Coverity components no
> longer work. With Gitlab CI builds the file paths are of the form
> /builds/qemu-project/qemu/accel/kvm/kvm-all.c
>
> rather than the old
> /qemu/accel/kvm/kvm-all.c
>
> and our regexes all don't match.
>
> The main aim of this series is to fix that, which is what patch 1 does.
>
> Patches 2-5 are minor updates where we were missing files in some
> components because we hadn't updated them when we moved things around
> or added new files. They're worth doing now since handling patch 1
> will require a manual deletion of all components in the coverity
> web GUI and re-adding them. (There is, alas, no automated API for this.)
I'll take this via target-arm.next and do the web GUI update
at some point too.
thanks
-- PMM
^ permalink raw reply [flat|nested] 12+ messages in thread
end of thread, other threads:[~2024-06-10 12:25 UTC | newest]
Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-06-04 14:59 [PATCH v2 0/5] scrips/coverity-scan: COMPONENTS.md updates Peter Maydell
2024-06-04 14:59 ` [PATCH v2 1/5] scripts/coverity-scan/COMPONENTS.md: Update paths to match gitlab CI Peter Maydell
2024-06-04 15:16 ` Philippe Mathieu-Daudé
2024-06-04 14:59 ` [PATCH v2 2/5] scripts/coverity-scan/COMPONENTS.md: Fix 'char' component Peter Maydell
2024-06-04 15:16 ` Philippe Mathieu-Daudé
2024-06-04 14:59 ` [PATCH v2 3/5] scripts/coverity-scan/COMPONENTS.md: Add crypto headers in host/include to the crypto component Peter Maydell
2024-06-04 15:17 ` Philippe Mathieu-Daudé
2024-06-04 14:59 ` [PATCH v2 4/5] scripts/coverity-scan/COMPONENTS.md: Fix monitor component Peter Maydell
2024-06-04 15:18 ` Philippe Mathieu-Daudé
2024-06-04 14:59 ` [PATCH v2 5/5] scripts/coverity-scan/COMPONENTS.md: Include libqmp in testlibs Peter Maydell
2024-06-04 15:18 ` Philippe Mathieu-Daudé
2024-06-10 12:25 ` [PATCH v2 0/5] scrips/coverity-scan: COMPONENTS.md updates Peter Maydell
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).