Skip to content

Commit c95d877

Browse files
authored
Merge pull request #657 from llm-d-incubation/copilot/skip-e2e-tests-on-no-code-changes
Skip e2e tests for documentation-only PRs in ci-pr-checks workflow
2 parents 4cb1bd2 + 450f340 commit c95d877

File tree

2 files changed

+28
-1
lines changed

2 files changed

+28
-1
lines changed

.github/workflows/ci-pr-checks.yaml

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,30 @@ on:
77
- dev
88

99
jobs:
10+
# Check if PR contains code changes (not just docs/metadata)
11+
check-code-changes:
12+
runs-on: ubuntu-latest
13+
permissions:
14+
contents: read
15+
outputs:
16+
has_code_changes: ${{ steps.filter.outputs.code }}
17+
steps:
18+
- name: Checkout source
19+
uses: actions/checkout@v4
20+
21+
- name: Check for code changes
22+
uses: dorny/paths-filter@v3
23+
id: filter
24+
with:
25+
filters: |
26+
code:
27+
- '!docs/**'
28+
- '!README.md'
29+
- '!CONTRIBUTING.md'
30+
- '!LICENSE'
31+
- '!OWNERS'
32+
- '!PROJECT'
33+
1034
lint-and-test:
1135
runs-on: ubuntu-latest
1236
steps:
@@ -47,9 +71,11 @@ jobs:
4771
# E2E tests run in parallel with different configurations:
4872
# - HPAScaleToZero feature gate settings (true/false)
4973
# - GPU types (nvidia/amd) for limiter tests
74+
# Skip e2e tests if PR only contains docs/metadata changes
5075
e2e-tests:
5176
runs-on: ubuntu-latest
52-
needs: lint-and-test
77+
needs: [lint-and-test, check-code-changes]
78+
if: needs.check-code-changes.outputs.has_code_changes == 'true'
5379
timeout-minutes: 60
5480
strategy:
5581
fail-fast: false

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,3 +34,4 @@ llmd/
3434
llmd-infra/
3535

3636
*.tgz
37+
actionlint

0 commit comments

Comments
 (0)