[PATCH] CI: Fix the github actions Coverity run

Andrew Cooper posted 1 patch 11 months, 1 week ago
Patches applied successfully (tree, apply log)
git fetch https://gitlab.com/xen-project/patchew/xen tags/patchew/20230607093612.2219286-1-andrew.cooper3@citrix.com
.github/workflows/coverity.yml | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
[PATCH] CI: Fix the github actions Coverity run
Posted by Andrew Cooper 11 months, 1 week ago
The Install step is failing with:

  Package python-dev is not available, but is referred to by another package.
  This may mean that the package is missing, has been obsoleted, or
  E: Package 'python-dev' has no installation candidate
  is only available from another source
  However the following packages replace it:
    python2-dev python2 python-dev-is-python3

which is a side effect of ubuntu-latest having changed from 20.04 to 22.04.

Drop python-dev as python3-dev is already present, and used a fixed runs-on to
avoid such problems in the future.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
---
CC: Roger Pau Monné <roger.pau@citrix.com>
CC: Stefano Stabellini <sstabellini@kernel.org>
CC: Michal Orzel <michal.orzel@amd.com>

Untested.  This needs to be committed and wait until the next cron on the main
repo (which has the appropriate secret token) for an end-to-end test.
---
 .github/workflows/coverity.yml | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/.github/workflows/coverity.yml b/.github/workflows/coverity.yml
index 427fb86f947f..60ac8dee5570 100644
--- a/.github/workflows/coverity.yml
+++ b/.github/workflows/coverity.yml
@@ -8,7 +8,7 @@ on:
 
 jobs:
   coverity:
-    runs-on: ubuntu-latest
+    runs-on: ubuntu-22.04
     steps:
     - name: Install build dependencies
       run: |
@@ -18,7 +18,7 @@ jobs:
           libbz2-dev e2fslibs-dev uuid-dev ocaml \
           ocaml-findlib libyajl-dev \
           autoconf libtool liblzma-dev \
-          python3-dev golang python-dev libsystemd-dev
+          python3-dev golang libsystemd-dev
 
     - uses: actions/checkout@v2
       with:
-- 
2.30.2


Re: [PATCH] CI: Fix the github actions Coverity run
Posted by Roger Pau Monné 11 months, 1 week ago
On Wed, Jun 07, 2023 at 10:36:12AM +0100, Andrew Cooper wrote:
> The Install step is failing with:
> 
>   Package python-dev is not available, but is referred to by another package.
>   This may mean that the package is missing, has been obsoleted, or
>   E: Package 'python-dev' has no installation candidate
>   is only available from another source
>   However the following packages replace it:
>     python2-dev python2 python-dev-is-python3
> 
> which is a side effect of ubuntu-latest having changed from 20.04 to 22.04.
> 
> Drop python-dev as python3-dev is already present, and used a fixed runs-on to
> avoid such problems in the future.
> 
> Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>

Reviewed-by: Roger Pau Monné <roger.pau@citrix.com>

Thanks, Roger.

Re: [PATCH] CI: Fix the github actions Coverity run
Posted by Stefano Stabellini 11 months, 1 week ago
On Wed, 7 Jun 2023, Andrew Cooper wrote:
> The Install step is failing with:
> 
>   Package python-dev is not available, but is referred to by another package.
>   This may mean that the package is missing, has been obsoleted, or
>   E: Package 'python-dev' has no installation candidate
>   is only available from another source
>   However the following packages replace it:
>     python2-dev python2 python-dev-is-python3
> 
> which is a side effect of ubuntu-latest having changed from 20.04 to 22.04.
> 
> Drop python-dev as python3-dev is already present, and used a fixed runs-on to
> avoid such problems in the future.
> 
> Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>

Acked-by: Stefano Stabellini <sstabellini@kernel.org>


> ---
> CC: Roger Pau Monné <roger.pau@citrix.com>
> CC: Stefano Stabellini <sstabellini@kernel.org>
> CC: Michal Orzel <michal.orzel@amd.com>
> 
> Untested.  This needs to be committed and wait until the next cron on the main
> repo (which has the appropriate secret token) for an end-to-end test.
> ---
>  .github/workflows/coverity.yml | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/.github/workflows/coverity.yml b/.github/workflows/coverity.yml
> index 427fb86f947f..60ac8dee5570 100644
> --- a/.github/workflows/coverity.yml
> +++ b/.github/workflows/coverity.yml
> @@ -8,7 +8,7 @@ on:
>  
>  jobs:
>    coverity:
> -    runs-on: ubuntu-latest
> +    runs-on: ubuntu-22.04
>      steps:
>      - name: Install build dependencies
>        run: |
> @@ -18,7 +18,7 @@ jobs:
>            libbz2-dev e2fslibs-dev uuid-dev ocaml \
>            ocaml-findlib libyajl-dev \
>            autoconf libtool liblzma-dev \
> -          python3-dev golang python-dev libsystemd-dev
> +          python3-dev golang libsystemd-dev
>  
>      - uses: actions/checkout@v2
>        with:
> -- 
> 2.30.2
>