qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] .gitlab-ci.d/buildtest.yml: Install 'file' for the Coverity job
@ 2025-10-17 13:31 Peter Maydell
  2025-10-19 15:55 ` Philippe Mathieu-Daudé
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Peter Maydell @ 2025-10-17 13:31 UTC (permalink / raw)
  To: qemu-devel; +Cc: Daniel P. Berrangé, Paolo Bonzini

The coverity-scan upload job has started failing as of 30th
September:

[ERROR] Cannot find '/usr/bin/file' command, and no 'file' command is found in the PATH
        Coverity Capture uses this tool to identify the file type of executables.
        Please ensure '/usr/bin/file' is available, or add the 'file' utility to your PATH.

This seems to have broken when we moved our containers from Fedora 40
to 41 -- probably F40 indirectly pulled in 'file' via some other
dependency, but in F41 it does not.

Explicitly install 'file' for the coverity job, in the same way we
already do for curl and wget.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
---
I don't know any way to test this except by applying it and letting the
coverity job run when it hits upstream git... Possibly we might find that
it complains about some other missing dependency and we need to iterate
on this.
---
 .gitlab-ci.d/buildtest.yml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/.gitlab-ci.d/buildtest.yml b/.gitlab-ci.d/buildtest.yml
index 0502094b9aa..21f6d7e96fe 100644
--- a/.gitlab-ci.d/buildtest.yml
+++ b/.gitlab-ci.d/buildtest.yml
@@ -759,7 +759,7 @@ coverity:
     - job: amd64-fedora-container
       optional: true
   before_script:
-    - dnf install -y curl wget
+    - dnf install -y curl wget file
   script:
     # would be nice to cancel the job if over quota (https://gitlab.com/gitlab-org/gitlab/-/issues/256089)
     # for example:
-- 
2.43.0



^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH] .gitlab-ci.d/buildtest.yml: Install 'file' for the Coverity job
  2025-10-17 13:31 [PATCH] .gitlab-ci.d/buildtest.yml: Install 'file' for the Coverity job Peter Maydell
@ 2025-10-19 15:55 ` Philippe Mathieu-Daudé
  2025-10-19 19:35 ` Richard Henderson
  2025-10-21 14:28 ` Peter Maydell
  2 siblings, 0 replies; 4+ messages in thread
From: Philippe Mathieu-Daudé @ 2025-10-19 15:55 UTC (permalink / raw)
  To: Peter Maydell, qemu-devel; +Cc: Daniel P. Berrangé, Paolo Bonzini

On 17/10/25 15:31, Peter Maydell wrote:
> The coverity-scan upload job has started failing as of 30th
> September:
> 
> [ERROR] Cannot find '/usr/bin/file' command, and no 'file' command is found in the PATH
>          Coverity Capture uses this tool to identify the file type of executables.
>          Please ensure '/usr/bin/file' is available, or add the 'file' utility to your PATH.
> 
> This seems to have broken when we moved our containers from Fedora 40
> to 41 -- probably F40 indirectly pulled in 'file' via some other
> dependency, but in F41 it does not.
> 
> Explicitly install 'file' for the coverity job, in the same way we
> already do for curl and wget.
> 
> Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
> ---
> I don't know any way to test this except by applying it and letting the
> coverity job run when it hits upstream git... Possibly we might find that
> it complains about some other missing dependency and we need to iterate
> on this.
> ---
>   .gitlab-ci.d/buildtest.yml | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)

Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] .gitlab-ci.d/buildtest.yml: Install 'file' for the Coverity job
  2025-10-17 13:31 [PATCH] .gitlab-ci.d/buildtest.yml: Install 'file' for the Coverity job Peter Maydell
  2025-10-19 15:55 ` Philippe Mathieu-Daudé
@ 2025-10-19 19:35 ` Richard Henderson
  2025-10-21 14:28 ` Peter Maydell
  2 siblings, 0 replies; 4+ messages in thread
From: Richard Henderson @ 2025-10-19 19:35 UTC (permalink / raw)
  To: qemu-devel

On 10/17/25 06:31, Peter Maydell wrote:
> The coverity-scan upload job has started failing as of 30th
> September:
> 
> [ERROR] Cannot find '/usr/bin/file' command, and no 'file' command is found in the PATH
>          Coverity Capture uses this tool to identify the file type of executables.
>          Please ensure '/usr/bin/file' is available, or add the 'file' utility to your PATH.
> 
> This seems to have broken when we moved our containers from Fedora 40
> to 41 -- probably F40 indirectly pulled in 'file' via some other
> dependency, but in F41 it does not.
> 
> Explicitly install 'file' for the coverity job, in the same way we
> already do for curl and wget.
> 
> Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
> ---
> I don't know any way to test this except by applying it and letting the
> coverity job run when it hits upstream git... Possibly we might find that
> it complains about some other missing dependency and we need to iterate
> on this.
> ---
>   .gitlab-ci.d/buildtest.yml | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)

Applied to master.


r~


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] .gitlab-ci.d/buildtest.yml: Install 'file' for the Coverity job
  2025-10-17 13:31 [PATCH] .gitlab-ci.d/buildtest.yml: Install 'file' for the Coverity job Peter Maydell
  2025-10-19 15:55 ` Philippe Mathieu-Daudé
  2025-10-19 19:35 ` Richard Henderson
@ 2025-10-21 14:28 ` Peter Maydell
  2 siblings, 0 replies; 4+ messages in thread
From: Peter Maydell @ 2025-10-21 14:28 UTC (permalink / raw)
  To: qemu-devel; +Cc: Daniel P. Berrangé, Paolo Bonzini

On Fri, 17 Oct 2025 at 14:31, Peter Maydell <peter.maydell@linaro.org> wrote:
>
> The coverity-scan upload job has started failing as of 30th
> September:
>
> [ERROR] Cannot find '/usr/bin/file' command, and no 'file' command is found in the PATH
>         Coverity Capture uses this tool to identify the file type of executables.
>         Please ensure '/usr/bin/file' is available, or add the 'file' utility to your PATH.
>
> This seems to have broken when we moved our containers from Fedora 40
> to 41 -- probably F40 indirectly pulled in 'file' via some other
> dependency, but in F41 it does not.
>
> Explicitly install 'file' for the coverity job, in the same way we
> already do for curl and wget.
>
> Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
> ---
> I don't know any way to test this except by applying it and letting the
> coverity job run when it hits upstream git... Possibly we might find that
> it complains about some other missing dependency and we need to iterate
> on this.

Happily, this does seem to have been sufficient, and the job has
now passed and Coverity has completed a scan.

-- PMM


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2025-10-21 14:29 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-10-17 13:31 [PATCH] .gitlab-ci.d/buildtest.yml: Install 'file' for the Coverity job Peter Maydell
2025-10-19 15:55 ` Philippe Mathieu-Daudé
2025-10-19 19:35 ` Richard Henderson
2025-10-21 14:28 ` 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).