Skip to contentSkip to conversation

CI: Fix package installation for Coverity run

PATCH In review Andrew Cooper 3 participants 4 messages Nov 5, 2024 – Nov 6, 2024

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 CI: Fix package installation for Coverity run

Something has changed recently in the Github Actions environment and the golang metapacakge resolves to something that no longer exists:

https://github.com/xen-project/xen/actions/runs/11539340171/job/32120834909

Update metadata before installing, which fixes things.

---
CC: Anthony PERARD <[email protected]>
CC: Stefano Stabellini <[email protected]>
CC: Michal Orzel <[email protected]>
CC: Doug Goldstein <[email protected]>
CC: Roger Pau Monné <[email protected]>

Example dry run with this fix:

https://github.com/andyhhp/xen/actions/runs/11692180675/job/32560954258

---
 .github/workflows/coverity.yml | 1 +
 1 file changed, 1 insertion(+)
.github/workflows/coverity.yml +1 -0
index 984636eb4635..a6c2819b0a24 100644
@@ -12,6 +12,7 @@ jobs:
     steps:
     - name: Install build dependencies
       run: |
+        sudo apt-get update
         sudo apt-get install -y \
           build-essential \
           git-core \
Signature · 1 line
2.39.5
Acked-by on v1 1/1
#1 lore raw
Quoted 8 lines · Andrew Cooper

Something has changed recently in the Github Actions environment and the golang metapacakge resolves to something that no longer exists:

https://github.com/xen-project/xen/actions/runs/11539340171/job/32120834909

Update metadata before installing, which fixes things.

Seems like the current Ubuntu image has a stale apt cache? It's good practice to update before we install anyway.

Thanks, Roger.

#2 lore raw
Quoted 6 lines · Roger Pau Monné
Quoted 5 lines · Andrew Cooper

Something has changed recently in the Github Actions environment and the golang metapacakge resolves to something that no longer exists:

https://github.com/xen-project/xen/actions/runs/11539340171/job/32120834909

Quoted 7 lines
Quoted 3 lines

Update metadata before installing, which fixes things.

Seems like the current Ubuntu image has a stale apt cache? It's good practice to update before we install anyway.

Thanks, and yeah.   As chance would have it, the problem resolved itself in this mornings run, but we should take the patch anyway.

A couple of weeks ago, they did strip out one of the versions of Go, but it wasn't the version of Go we were trying to use.  But in hindsight, that doesn't mean that the metadata was kept properly up to date.

~Andrew

Acked-by on v1 1/1
#3 lore raw
In reply to Andrew Cooper
Quoted 8 lines · Andrew Cooper

Something has changed recently in the Github Actions environment and the golang metapacakge resolves to something that no longer exists:

https://github.com/xen-project/xen/actions/runs/11539340171/job/32120834909

Update metadata before installing, which fixes things.

Quoted 29 lines

---
CC: Anthony PERARD <[email protected]>
CC: Stefano Stabellini <[email protected]>
CC: Michal Orzel <[email protected]>
CC: Doug Goldstein <[email protected]>
CC: Roger Pau Monné <[email protected]>

Example dry run with this fix:

https://github.com/andyhhp/xen/actions/runs/11692180675/job/32560954258

---
 .github/workflows/coverity.yml | 1 +
 1 file changed, 1 insertion(+)
.github/workflows/coverity.yml +1 -0
index 984636eb4635..a6c2819b0a24 100644
@@ -12,6 +12,7 @@ jobs:
     steps:
     - name: Install build dependencies
       run: |
+        sudo apt-get update
         sudo apt-get install -y \
           build-essential \
           git-core \
Signature · 1 line
2.39.5