From 49f840c366989dbf7a2df6364954aff787c98b1a Mon Sep 17 00:00:00 2001 From: Heikki Linnakangas Date: Sun, 21 Apr 2024 22:00:15 +0300 Subject: [PATCH] CI: Disable cleanup of `docker/setup-buildx-action` It started to fail with the following error (for no obvious reason): ``` /nvme/actions-runner/_work/_actions/docker/setup-buildx-action/v3/webpack:/docker-setup-buildx/node_modules/@actions/cache/lib/cache.js:175 throw new Error(`Path Validation Error: Path(s) specified in the action for caching do(es) not exist, hence no cache is being saved.`); ^ Error: Path Validation Error: Path(s) specified in the action for caching do(es) not exist, hence no cache is being saved. at Object.rejected (/nvme/actions-runner/_work/_actions/docker/setup-buildx-action/v3/webpack:/docker-setup-buildx/node_modules/@actions/cache/lib/cache.js:175:1) at Generator.next () at fulfilled (/nvme/actions-runner/_work/_actions/docker/setup-buildx-action/v3/webpack:/docker-setup-buildx/node_modules/@actions/cache/lib/cache.js:29:1) ``` --- .github/workflows/build_and_test.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/workflows/build_and_test.yml b/.github/workflows/build_and_test.yml index 1d35fa9223..3b97f7b820 100644 --- a/.github/workflows/build_and_test.yml +++ b/.github/workflows/build_and_test.yml @@ -736,6 +736,11 @@ jobs: mkdir -p .docker-custom echo DOCKER_CONFIG=$(pwd)/.docker-custom >> $GITHUB_ENV - uses: docker/setup-buildx-action@v3 + with: + # Disable cleanup to work-around failure at post-run stage: + # "Path Validation Error: Path(s) specified in the action for caching do(es) not exist, hence no cache is being saved." + # See also https://github.com/neondatabase/neon/pull/7445 + cleanup: false - uses: docker/login-action@v3 with: @@ -799,6 +804,10 @@ jobs: config-inline: | [worker.oci] max-parallelism = 1 + # Disable cleanup to work-around failure at post-run stage: + # "Path Validation Error: Path(s) specified in the action for caching do(es) not exist, hence no cache is being saved." + # See also https://github.com/neondatabase/neon/pull/7445 + cleanup: false - uses: docker/login-action@v3 with: