Skip to content

Commit ff4ac89

Browse files
committed
ci(e2e): run E2E on every PR
Almost every PR touches the SDK, its pins or its tests, so the path check would rarely skip E2E. Drop it; add one back if the lane turns out slow. Signed-off-by: Piotr Mlocek <pmlocek@nvidia.com>
1 parent ba5dc60 commit ff4ac89

1 file changed

Lines changed: 1 addition & 29 deletions

File tree

‎.github/workflows/ci.yml‎

Lines changed: 1 addition & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -70,37 +70,9 @@ jobs:
7070
- name: Build, verify, and install the wheel and sdist
7171
run: mise run build
7272

73-
# Decides whether a PR needs the E2E lane, from the files it changes.
74-
e2e-needed:
75-
name: e2e-needed
76-
if: github.event_name == 'pull_request'
77-
runs-on: ubuntu-latest
78-
timeout-minutes: 5
79-
outputs:
80-
run: ${{ steps.diff.outputs.run }}
81-
steps:
82-
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
83-
with:
84-
fetch-depth: 0
85-
persist-credentials: false
86-
87-
- id: diff
88-
env:
89-
BASE_SHA: ${{ github.event.pull_request.base.sha }}
90-
run: |
91-
set -euo pipefail
92-
if git diff --name-only "${BASE_SHA}...HEAD" | grep -qE '^(\.python-version$|mise\.toml$|pyproject\.toml$|uv\.lock$|src/|tests/e2e/|hack/automation/(start|stop)-gateway\.sh$|\.github/workflows/e2e\.yml$)'; then
93-
echo "run=true" >>"$GITHUB_OUTPUT"
94-
else
95-
echo "run=false" >>"$GITHUB_OUTPUT"
96-
fi
97-
98-
# Not part of the required `ci` check, as in sdk-go: PRs run it only when
99-
# the SDK, its pins or the E2E lane change; pushes to main always run it.
73+
# Not part of the required `ci` check, as in sdk-go.
10074
e2e:
10175
name: e2e
102-
needs: e2e-needed
103-
if: ${{ !cancelled() && (github.event_name != 'pull_request' || needs.e2e-needed.outputs.run == 'true') }}
10476
uses: ./.github/workflows/e2e.yml
10577

10678
# The one required status check. Its name matches ai-openshell/sdk-go, so

0 commit comments

Comments
 (0)