From 35f999dded045276787f13444f8ef62ebac7d74e Mon Sep 17 00:00:00 2001 From: Akhil Mohan Date: Wed, 25 Sep 2024 11:31:44 +0530 Subject: [PATCH 1/2] remove installation of unused bats support libs bats-core/bats-action installs a few support libraries by default which are not used by runc. Disable the installation, which will remove /usr/bin/tar: Permission denied errors. Signed-off-by: Akhil Mohan --- .github/workflows/test.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 37bbd13b7f0..c7c340225c3 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -158,6 +158,10 @@ jobs: uses: bats-core/bats-action@2.0.0 with: bats-version: 1.9.0 + support-install: false + assert-install: false + detik-install: false + file-install: false - name: Allow userns for runc # https://discourse.ubuntu.com/t/ubuntu-24-04-lts-noble-numbat-release-notes/39890#unprivileged-user-namespace-restrictions-15 From 5b161e04ae1404f2280b8f7c42e2251bf05569ca Mon Sep 17 00:00:00 2001 From: Akhil Mohan Date: Wed, 25 Sep 2024 13:56:48 +0530 Subject: [PATCH 2/2] update bats-action to 2.1.1 bats-action@2.1.1 supports: - ubuntu 20.04 - cache key with multiple arch Signed-off-by: Akhil Mohan --- .github/workflows/test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index c7c340225c3..7c49cc0ae7c 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -155,7 +155,7 @@ jobs: run: sudo -E PATH="$PATH" make EXTRA_FLAGS="${{ matrix.race }}" all - name: Setup Bats and bats libs - uses: bats-core/bats-action@2.0.0 + uses: bats-core/bats-action@2.1.1 with: bats-version: 1.9.0 support-install: false