From 7349dda508c382db92db8eb3ddaf56a3eebfbaa2 Mon Sep 17 00:00:00 2001 From: Lukas Hirt Date: Thu, 17 Sep 2026 11:41:03 +0200 Subject: [PATCH] ci: [OCISDEV-1429] skip acceptance-coverage on docs-only PRs (#12963) acceptance-coverage ran unconditionally (if: always()) even when its upstream test jobs (local-api-tests, cli-tests, ldap-pool-tests, core-api-tests) were skipped for docs-only PRs, per detect-changes. With no coverage artifacts to download, actions/download-artifact never creates the target directory and the subsequent `go tool covdata textfmt` step fails with "no such file or directory", blocking merge of docs-only PRs. Skip the job using the same docs-only guard build-and-test already uses. Signed-off-by: Lukas Hirt --- .github/workflows/acceptance-tests.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/acceptance-tests.yml b/.github/workflows/acceptance-tests.yml index 84daf2deabd..06b67a75c14 100644 --- a/.github/workflows/acceptance-tests.yml +++ b/.github/workflows/acceptance-tests.yml @@ -860,8 +860,8 @@ jobs: acceptance-coverage: name: acceptance-coverage - needs: [local-api-tests, cli-tests, ldap-pool-tests, core-api-tests] - if: always() && github.event_name == 'pull_request' + needs: [detect-changes, local-api-tests, cli-tests, ldap-pool-tests, core-api-tests] + if: always() && github.event_name == 'pull_request' && needs.detect-changes.outputs.docs-only != 'true' runs-on: ubuntu-latest env: GOCOVERDIR: ${{ github.workspace }}/coverage-reports