From 000985fc15ecd71e9d3360867df5d19e0a00a373 Mon Sep 17 00:00:00 2001 From: Brian Behlendorf Date: Mon, 27 Feb 2023 09:19:25 -0800 Subject: [PATCH] Workaround GitHub Action failure Ubuntu 20.04 and 22.04 workflows are failing due to an error which is hit when running `apt-get update`. Until the problematic package is fixed apply the suggested workaround described here: https://github.com/orgs/community/discussions/47863 Reviewed-by: Matthew Ahrens Reviewed-by: George Melikov Reviewed-by: Richard Yao Reviewed-by: Tino Reichardt Signed-off-by: Brian Behlendorf Closes #14530 --- .github/workflows/checkstyle.yaml | 6 ++++-- .github/workflows/zfs-tests-functional.yml | 6 ++++-- .github/workflows/zfs-tests-sanity.yml | 6 ++++-- .github/workflows/zloop.yml | 6 ++++-- 4 files changed, 16 insertions(+), 8 deletions(-) diff --git a/.github/workflows/checkstyle.yaml b/.github/workflows/checkstyle.yaml index 008adcc03e..b0fdc570d4 100644 --- a/.github/workflows/checkstyle.yaml +++ b/.github/workflows/checkstyle.yaml @@ -13,8 +13,10 @@ jobs: ref: ${{ github.event.pull_request.head.sha }} - name: Install dependencies run: | - sudo apt-get update - sudo apt-get -qq upgrade + # https://github.com/orgs/community/discussions/47863 + sudo apt-mark hold grub-efi-amd64-signed + sudo apt-get update --fix-missing + sudo apt-get upgrade sudo xargs --arg-file=${{ github.workspace }}/.github/workflows/build-dependencies.txt apt-get install -qq sudo xargs --arg-file=${{ github.workspace }}/.github/workflows/checkstyle-dependencies.txt apt-get install -qq sudo python3 -m pip install --quiet flake8 diff --git a/.github/workflows/zfs-tests-functional.yml b/.github/workflows/zfs-tests-functional.yml index 08ce254ec8..237a0cb73d 100644 --- a/.github/workflows/zfs-tests-functional.yml +++ b/.github/workflows/zfs-tests-functional.yml @@ -17,8 +17,10 @@ jobs: ref: ${{ github.event.pull_request.head.sha }} - name: Install dependencies run: | - sudo apt-get update - sudo apt-get -qq upgrade + # https://github.com/orgs/community/discussions/47863 + sudo apt-mark hold grub-efi-amd64-signed + sudo apt-get update --fix-missing + sudo apt-get upgrade sudo xargs --arg-file=${{ github.workspace }}/.github/workflows/build-dependencies.txt apt-get install -qq sudo apt-get clean - name: Autogen.sh diff --git a/.github/workflows/zfs-tests-sanity.yml b/.github/workflows/zfs-tests-sanity.yml index bab8aa175a..ef2c0a8695 100644 --- a/.github/workflows/zfs-tests-sanity.yml +++ b/.github/workflows/zfs-tests-sanity.yml @@ -13,8 +13,10 @@ jobs: ref: ${{ github.event.pull_request.head.sha }} - name: Install dependencies run: | - sudo apt-get update - sudo apt-get -qq upgrade + # https://github.com/orgs/community/discussions/47863 + sudo apt-mark hold grub-efi-amd64-signed + sudo apt-get update --fix-missing + sudo apt-get upgrade sudo xargs --arg-file=${{ github.workspace }}/.github/workflows/build-dependencies.txt apt-get install -qq sudo apt-get clean - name: Autogen.sh diff --git a/.github/workflows/zloop.yml b/.github/workflows/zloop.yml index 1a234ac994..8333a88de6 100644 --- a/.github/workflows/zloop.yml +++ b/.github/workflows/zloop.yml @@ -15,8 +15,10 @@ jobs: ref: ${{ github.event.pull_request.head.sha }} - name: Install dependencies run: | - sudo apt-get update - sudo apt-get -qq upgrade + # https://github.com/orgs/community/discussions/47863 + sudo apt-mark hold grub-efi-amd64-signed + sudo apt-get update --fix-missing + sudo apt-get upgrade sudo xargs --arg-file=${{ github.workspace }}/.github/workflows/build-dependencies.txt apt-get install -qq sudo apt-get clean - name: Autogen.sh