Skip to contentSkip to conversation

ci: ignore APT update failure in GitHub Actions

PATCH Applied David Marchand 3 participants 4 messages Feb 1, 2021 – Feb 2, 2021

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ci: ignore APT update failure in GitHub Actions

Ubuntu 18.04 GHA virtual machine images point at an invalid APT repository.
We have no control over this, simply ignore the failure.

This was caught by Ilya for OVS and the robot just hit the same issue for DPDK:

"""
Get:46 http://security.ubuntu.com/ubuntu bionic-security/restricted Translation-en [29.9 kB]
Get:47 http://security.ubuntu.com/ubuntu bionic-security/universe amd64 Packages [1104 kB]
Get:48 http://security.ubuntu.com/ubuntu bionic-security/universe Translation-en [247 kB]
Reading package lists...
E: The repository 'https://apt.postgresql.org/pub/repos/apt bionic-pgdg Release' no longer has a Release file.
Error: Process completed with exit code 100.
"""

Fixes 9d620630ea30 ("ci: fix package installation in GitHub Actions")
---
 .github/workflows/build.yml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
.github/workflows/build.yml +1 -1
index a5b579adda..2fd1dde86f 100644
@@ -88,7 +88,7 @@ jobs:
         path: reference
         key: ${{ steps.get_ref_keys.outputs.abi }}
     - name: Update APT cache
-      run: sudo apt update
+      run: sudo apt update || true
     - name: Install packages
       run: sudo apt install -y ccache libnuma-dev python3-setuptools
         python3-wheel python3-pip python3-pyelftools ninja-build libbsd-dev
Signature · 1 line
2.23.0
Acked-by on v1 1/1
#1 lore raw
Quoted 33 lines · David Marchand

Ubuntu 18.04 GHA virtual machine images point at an invalid APT repository.
We have no control over this, simply ignore the failure.

This was caught by Ilya for OVS and the robot just hit the same issue for DPDK:

"""
Get:46 http://security.ubuntu.com/ubuntu bionic-security/restricted Translation-en [29.9 kB]
Get:47 http://security.ubuntu.com/ubuntu bionic-security/universe amd64 Packages [1104 kB]
Get:48 http://security.ubuntu.com/ubuntu bionic-security/universe Translation-en [247 kB]
Reading package lists...
E: The repository 'https://apt.postgresql.org/pub/repos/apt bionic-pgdg Release' no longer has a Release file.
Error: Process completed with exit code 100.
"""

Fixes 9d620630ea30 ("ci: fix package installation in GitHub Actions")
---
 .github/workflows/build.yml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
.github/workflows/build.yml +0 -0
index a5b579adda..2fd1dde86f 100644

.github/workflows/build.yml jobs: · line 94

Quoted 8 lines
.github/workflows/build.yml +1 -1
@@ -88,7 +88,7 @@ jobs:
         path: reference
         key: ${{ steps.get_ref_keys.outputs.abi }}
     - name: Update APT cache
-      run: sudo apt update
+      run: sudo apt update || true
     - name: Install packages
       run: sudo apt install -y ccache libnuma-dev python3-setuptools
         python3-wheel python3-pip python3-pyelftools ninja-build libbsd-dev

LGTM,

Acked-by on v1 1/1
#2 lore raw
In reply to David Marchand
Quoted 20 lines · David Marchand

Ubuntu 18.04 GHA virtual machine images point at an invalid APT repository.
We have no control over this, simply ignore the failure.

This was caught by Ilya for OVS and the robot just hit the same issue for DPDK:

"""
Get:46 http://security.ubuntu.com/ubuntu bionic-security/restricted Translation-en [29.9 kB]
Get:47 http://security.ubuntu.com/ubuntu bionic-security/universe amd64 Packages [1104 kB]
Get:48 http://security.ubuntu.com/ubuntu bionic-security/universe Translation-en [247 kB]
Reading package lists...
E: The repository 'https://apt.postgresql.org/pub/repos/apt bionic-pgdg Release' no longer has a Release file.
Error: Process completed with exit code 100.
"""

Quoted 4 lines
Fixes 9d620630ea30 ("ci: fix package installation in GitHub Actions")

---

author Acked-by Ilya Maximets Acked-by Aaron Conole on v1 1/1 Applied
#3 lore raw
In reply to David Marchand
Quoted 21 lines · David Marchand

Ubuntu 18.04 GHA virtual machine images point at an invalid APT repository.
We have no control over this, simply ignore the failure.

This was caught by Ilya for OVS and the robot just hit the same issue for DPDK:

"""
Get:46 http://security.ubuntu.com/ubuntu bionic-security/restricted Translation-en [29.9 kB]
Get:47 http://security.ubuntu.com/ubuntu bionic-security/universe amd64 Packages [1104 kB]
Get:48 http://security.ubuntu.com/ubuntu bionic-security/universe Translation-en [247 kB]
Reading package lists...
E: The repository 'https://apt.postgresql.org/pub/repos/apt bionic-pgdg Release' no longer has a Release file.
Error: Process completed with exit code 100.
"""

Quoted 3 lines
Fixes 9d620630ea30 ("ci: fix package installation in GitHub Actions")

Applied, thanks.

Signature · 1 line
David Marchand