From a08449abedeb1ece7d439d939edbbd54460d5c5a Mon Sep 17 00:00:00 2001 From: Chai Bot Date: Sun, 23 Aug 2026 19:39:12 +0000 Subject: [PATCH] OSAC-4322: skip e2e workflows for test-only PRs MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Add test file patterns to the dorny/paths-filter ignore list in all three e2e workflow files so PRs that only touch test files (unit, integration, contract) do not trigger expensive e2e runs. New ignore patterns: - !**/*_test.go (Go test files) - !**/testdata/** (Go test fixtures) - !**/test/** (integration test dirs) - !**/tests/** (Python test dirs) - !**/it/** (fulfillment-service integration tests) - !**/conftest.py (pytest config) - !**/fixtures/** (test fixtures) The existing dorny/paths-filter `predicate-quantifier: 'every'` semantics ensure that PRs touching both test AND non-test files still trigger e2e — the skip only applies when every changed file matches an ignore pattern. unit-tests.yml and integration-tests.yml are intentionally NOT changed: test-only PRs should still run those lighter CI checks. Signed-off-by: Chai Bot --- .github/workflows/e2e-bmaas-full-install.yml | 7 +++++++ .github/workflows/e2e-caas-full-install.yml | 7 +++++++ .github/workflows/e2e-vmaas-full-install.yml | 7 +++++++ 3 files changed, 21 insertions(+) diff --git a/.github/workflows/e2e-bmaas-full-install.yml b/.github/workflows/e2e-bmaas-full-install.yml index 5dc32e058..afdb9ce70 100644 --- a/.github/workflows/e2e-bmaas-full-install.yml +++ b/.github/workflows/e2e-bmaas-full-install.yml @@ -74,6 +74,13 @@ jobs: - '!.design/**' - '!.skillsaw.yaml' - '!.pre-commit-config.yaml' + - '!**/*_test.go' + - '!**/testdata/**' + - '!**/test/**' + - '!**/tests/**' + - '!**/it/**' + - '!**/conftest.py' + - '!**/fixtures/**' # Builds fulfillment-service, osac-operator, osac-aap's execution # environment (twice -- once each for aap.bootstrap.image and diff --git a/.github/workflows/e2e-caas-full-install.yml b/.github/workflows/e2e-caas-full-install.yml index 9c3c9fe71..803deba27 100644 --- a/.github/workflows/e2e-caas-full-install.yml +++ b/.github/workflows/e2e-caas-full-install.yml @@ -74,6 +74,13 @@ jobs: - '!.design/**' - '!.skillsaw.yaml' - '!.pre-commit-config.yaml' + - '!**/*_test.go' + - '!**/testdata/**' + - '!**/test/**' + - '!**/tests/**' + - '!**/it/**' + - '!**/conftest.py' + - '!**/fixtures/**' # Builds fulfillment-service, osac-operator, osac-aap's execution # environment (twice -- once each for aap.bootstrap.image and diff --git a/.github/workflows/e2e-vmaas-full-install.yml b/.github/workflows/e2e-vmaas-full-install.yml index a28dfd4d0..833db276f 100644 --- a/.github/workflows/e2e-vmaas-full-install.yml +++ b/.github/workflows/e2e-vmaas-full-install.yml @@ -74,6 +74,13 @@ jobs: - '!.design/**' - '!.skillsaw.yaml' - '!.pre-commit-config.yaml' + - '!**/*_test.go' + - '!**/testdata/**' + - '!**/test/**' + - '!**/tests/**' + - '!**/it/**' + - '!**/conftest.py' + - '!**/fixtures/**' # Builds fulfillment-service, osac-operator, osac-aap's execution # environment (twice -- once each for aap.bootstrap.image and