From 4f040b96cc31ac14c46cc04879c538cfa340e526 Mon Sep 17 00:00:00 2001 From: Yaroslav Halchenko Date: Wed, 17 Jul 2024 08:16:26 -1000 Subject: [PATCH] btrfs-progs: ci: do apt-get update before trying to install To ensure that package indexes are up to date. That should help to avoid recent failed CI runs, which failed to install certain packages as local cache is out-of-date and remote mirrors no longer provide that specific (and out-of-date) version of package: E: Failed to fetch http://azure.archive.ubuntu.com/ubuntu/pool/main/s/systemd/libudev-dev_255.4-1ubuntu8.1_amd64.deb 404 Not Found [IP: 52.147.219.192 80] Signed-off-by: Yaroslav Halchenko [ Minor modification on the commit message. ] Signed-off-by: Qu Wenruo [ Move cache update to a separate command. ] Signed-off-by: David Sterba --- .github/workflows/artifacts-static-build.yml | 1 + .github/workflows/ci-sanitize.yml | 2 ++ .github/workflows/coverage.yml | 1 + .github/workflows/devel.yml | 7 +++++++ .github/workflows/pull-request.yml | 1 + .github/workflows/test.yml | 1 + 6 files changed, 13 insertions(+) diff --git a/.github/workflows/artifacts-static-build.yml b/.github/workflows/artifacts-static-build.yml index 3522ccc2..cf3cd4c9 100644 --- a/.github/workflows/artifacts-static-build.yml +++ b/.github/workflows/artifacts-static-build.yml @@ -13,6 +13,7 @@ jobs: runs-on: ubuntu-24.04 steps: - uses: actions/checkout@v4 + - run: sudo apt-get update -qqq - run: sudo apt-get install -y pkg-config gcc liblzo2-dev libzstd-dev libblkid-dev uuid-dev zlib1g-dev libext2fs-dev e2fsprogs libudev-dev python3-sphinx libaio-dev liburing-dev - name: Configure run: ./autogen.sh && ./configure --disable-documentation diff --git a/.github/workflows/ci-sanitize.yml b/.github/workflows/ci-sanitize.yml index 41f8c187..0ddae66e 100644 --- a/.github/workflows/ci-sanitize.yml +++ b/.github/workflows/ci-sanitize.yml @@ -18,6 +18,7 @@ jobs: - uses: actions/checkout@v4 - run: uname -a - run: sudo modprobe btrfs + - run: sudo apt-get update -qqq - run: sudo apt-get install -y pkg-config gcc liblzo2-dev libzstd-dev libblkid-dev uuid-dev zlib1g-dev libext2fs-dev e2fsprogs libudev-dev python3-sphinx libaio-dev liburing-dev attr jq - name: Configure run: ./autogen.sh && ./configure --disable-documentation @@ -58,6 +59,7 @@ jobs: - uses: actions/checkout@v4 - run: uname -a - run: sudo modprobe btrfs + - run: sudo apt-get update -qqq - run: sudo apt-get install -y pkg-config gcc liblzo2-dev libzstd-dev libblkid-dev uuid-dev zlib1g-dev libext2fs-dev e2fsprogs libudev-dev python3-sphinx libaio-dev liburing-dev attr jq - name: Configure run: ./autogen.sh && ./configure --disable-documentation diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index 51142774..85de321d 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -14,6 +14,7 @@ jobs: - uses: actions/checkout@v4 - run: uname -a - run: sudo modprobe btrfs + - run: sudo apt-get update -qqq - run: sudo apt-get install -y pkg-config gcc liblzo2-dev libzstd-dev libblkid-dev uuid-dev zlib1g-dev libext2fs-dev e2fsprogs libudev-dev python3-sphinx libaio-dev liburing-dev attr jq lcov - name: Configure run: ./autogen.sh && ./configure --disable-documentation diff --git a/.github/workflows/devel.yml b/.github/workflows/devel.yml index b6091913..68c5dd96 100644 --- a/.github/workflows/devel.yml +++ b/.github/workflows/devel.yml @@ -23,6 +23,7 @@ jobs: id: changed-files uses: tj-actions/changed-files@v44 - run: sudo modprobe btrfs + - run: sudo apt-get update -qqq - run: sudo apt-get install -y pkg-config gcc liblzo2-dev libzstd-dev libblkid-dev uuid-dev zlib1g-dev libext2fs-dev e2fsprogs libudev-dev python3-sphinx sphinx-rtd-theme-common python3-sphinx-rtd-theme - name: Configure run: ./autogen.sh && CC=${{ matrix.compiler }} ./configure @@ -66,6 +67,7 @@ jobs: steps: - uses: actions/checkout@v4 - run: sudo modprobe btrfs + - run: sudo apt-get update -qqq - run: sudo apt-get install -y pkg-config gcc liblzo2-dev libzstd-dev libblkid-dev uuid-dev zlib1g-dev libext2fs-dev e2fsprogs libudev-dev libaio-dev liburing-dev attr jq - name: Configure run: ./autogen.sh && CC=${{ matrix.compiler }} ./configure --disable-documentation @@ -91,6 +93,7 @@ jobs: steps: - uses: actions/checkout@v4 - run: sudo modprobe btrfs + - run: sudo apt-get update -qqq - run: sudo apt-get install -y pkg-config gcc liblzo2-dev libzstd-dev libblkid-dev uuid-dev zlib1g-dev libext2fs-dev e2fsprogs libudev-dev libaio-dev liburing-dev attr jq - name: Configure run: ./autogen.sh && ./configure --disable-documentation @@ -111,6 +114,7 @@ jobs: steps: - uses: actions/checkout@v4 - run: sudo modprobe btrfs + - run: sudo apt-get update -qqq - run: sudo apt-get install -y pkg-config gcc liblzo2-dev libzstd-dev libblkid-dev uuid-dev zlib1g-dev libext2fs-dev e2fsprogs libudev-dev libaio-dev liburing-dev attr jq - name: Configure run: ./autogen.sh && ./configure --disable-documentation @@ -133,6 +137,7 @@ jobs: steps: - uses: actions/checkout@v4 - run: sudo modprobe btrfs + - run: sudo apt-get update -qqq - run: sudo apt-get install -y pkg-config gcc liblzo2-dev libzstd-dev libblkid-dev uuid-dev zlib1g-dev libext2fs-dev e2fsprogs libudev-dev libaio-dev liburing-dev attr jq - name: Configure run: ./autogen.sh && ./configure --disable-documentation @@ -153,6 +158,7 @@ jobs: steps: - uses: actions/checkout@v4 - run: sudo modprobe btrfs + - run: sudo apt-get update -qqq - run: sudo apt-get install -y pkg-config gcc liblzo2-dev libzstd-dev libblkid-dev uuid-dev zlib1g-dev libext2fs-dev e2fsprogs libudev-dev libaio-dev liburing-dev attr jq - name: Configure run: ./autogen.sh && ./configure --disable-documentation @@ -173,6 +179,7 @@ jobs: steps: - uses: actions/checkout@v4 - run: sudo modprobe btrfs + - run: sudo apt-get update -qqq - run: sudo apt-get install -y pkg-config gcc liblzo2-dev libzstd-dev libblkid-dev uuid-dev zlib1g-dev libext2fs-dev e2fsprogs libudev-dev libaio-dev liburing-dev attr jq - name: Configure run: ./autogen.sh && ./configure --disable-documentation diff --git a/.github/workflows/pull-request.yml b/.github/workflows/pull-request.yml index e73b1802..d92e6799 100644 --- a/.github/workflows/pull-request.yml +++ b/.github/workflows/pull-request.yml @@ -18,6 +18,7 @@ jobs: - uses: actions/checkout@v4 - run: uname -a - run: sudo modprobe btrfs + - run: sudo apt-get update -qqq - run: sudo apt-get install -y pkg-config gcc liblzo2-dev libzstd-dev libblkid-dev uuid-dev zlib1g-dev libext2fs-dev e2fsprogs libudev-dev python3-sphinx libaio-dev liburing-dev attr jq - name: Configure run: ./autogen.sh && ./configure --disable-documentation diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 2083f1b2..3502c98a 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -15,6 +15,7 @@ jobs: - run: cat /proc/filesystems - run: gcc --version - run: df -HT + - run: sudo apt-get update -qqq - run: sudo apt-get install -y pkg-config gcc liblzo2-dev libzstd-dev libblkid-dev uuid-dev zlib1g-dev libext2fs-dev e2fsprogs libudev-dev python3-sphinx libaio-dev liburing-dev - name: Configure run: ./autogen.sh && ./configure