Skip to content

OpenRAG is a comprehensive, single package Retrieval-Augmented Generation platform built on Langflow, Docling, and Opensearch.

Python

chore: Update test-e2e.yml (#1758)

Edwin Jose9180900e1efa
diff --git a/.github/workflows/test-e2e.yml b/.github/workflows/test-e2e.yml
index bf4472961..d041cdbe2 100644
--- a/.github/workflows/test-e2e.yml
+++ b/.github/workflows/test-e2e.yml
@@ -1,17 +1,13 @@
name: E2E Tests
+# NOTE: This workflow intentionally has no top-level `paths` filter so it always
+# triggers on pull_request. The required status check "E2E Tests / e2e" must be
+# reported for every PR (including kubernetes-only PRs targeting release branches).
+# The expensive Playwright job is gated below on the `changes` job: when no
+# application paths changed, `e2e` is skipped, which branch protection treats as a
+# successful required check. Operator/helm changes are validated by operator-ci.yml.
on:
pull_request:
- paths:
- - 'src/**'
- - 'frontend/**'
- - 'tests/**'
- - 'scripts/**'
- - 'flows/**'
- - 'docker-compose.yml'
- - 'Dockerfile*'
- - 'Makefile'
- - '.github/workflows/test-e2e.yml'
workflow_dispatch:
env:
@@ -23,7 +19,36 @@ env:
PLAYWRIGHT_VERSION: "1.57.0"
jobs:
+ changes:
+ runs-on: ubuntu-latest
+ outputs:
+ app: ${{ steps.filter.outputs.app }}
+ steps:
+ - name: Checkout
+ uses: actions/checkout@v4
+
+ - name: Detect application changes
+ uses: dorny/paths-filter@v3
+ id: filter
+ with:
+ filters: |
+ app:
+ - 'src/**'
+ - 'frontend/**'
+ - 'tests/**'
+ - 'scripts/**'
+ - 'flows/**'
+ - 'docker-compose.yml'
+ - 'Dockerfile*'
+ - 'Makefile'
+ - '.github/workflows/test-e2e.yml'
+
e2e:
+ needs: changes
+ # Run the full suite when application paths changed, or when triggered
+ # manually via workflow_dispatch. Otherwise the job is skipped, which
+ # branch protection treats as a successful required check.
+ if: ${{ needs.changes.outputs.app == 'true' || github.event_name == 'workflow_dispatch' }}
runs-on:
labels: ["self-hosted", "linux", "ARM64", "langflow-ai-arm64-40gb-ephemeral-sudo"]
env: