Skip to content
Closed
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 23 additions & 1 deletion .github/workflows/cli-performance.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,26 @@ on:
branches: [master]

jobs:
check-changes:
runs-on: ubuntu-latest
permissions:
pull-requests: read
outputs:
has_code_changes: ${{ steps.filter.outputs.code }}
steps:
- uses: dorny/paths-filter@v3
id: filter
with:
filters: |
code:
- '**'
- '!docs/**'
- '!**/*.md'
- '!mkdocs.yml'

benchmark-pr:
needs: check-changes
if: needs.check-changes.outputs.has_code_changes == 'true'
name: "Benchmark PR"
runs-on: ubuntu-latest
timeout-minutes: 15
Expand Down Expand Up @@ -59,6 +78,8 @@ jobs:
echo "startup_json=$(cat startup.json | jq -c)" >> "$GITHUB_OUTPUT"

benchmark-master:
needs: check-changes
if: needs.check-changes.outputs.has_code_changes == 'true'
name: "Benchmark Master"
runs-on: ubuntu-latest
timeout-minutes: 15
Expand Down Expand Up @@ -122,7 +143,8 @@ jobs:
compare:
name: "Compare & Report"
runs-on: ubuntu-latest
needs: [benchmark-pr, benchmark-master]
needs: [check-changes, benchmark-pr, benchmark-master]
if: needs.check-changes.outputs.has_code_changes == 'true'
permissions:
pull-requests: write

Expand Down
19 changes: 19 additions & 0 deletions .github/workflows/docker-dev-images.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,26 @@ concurrency:
cancel-in-progress: true

jobs:
check-changes:
runs-on: ubuntu-latest
permissions:
pull-requests: read
outputs:
has_code_changes: ${{ steps.filter.outputs.code }}
steps:
- uses: dorny/paths-filter@v3
id: filter
with:
filters: |
code:
- '**'
- '!docs/**'
- '!**/*.md'
- '!mkdocs.yml'

build:
needs: check-changes
if: needs.check-changes.outputs.has_code_changes == 'true'
runs-on: ubuntu-latest

permissions:
Expand Down
32 changes: 28 additions & 4 deletions .github/workflows/eval-regression.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,25 @@ permissions:
issues: write

jobs:
# Detect docs-only PRs to skip expensive eval jobs
check-changes:
if: github.event_name == 'pull_request'
runs-on: ubuntu-latest
permissions:
pull-requests: read
outputs:
has_code_changes: ${{ steps.filter.outputs.code }}
steps:
- uses: dorny/paths-filter@v3
id: filter
with:
filters: |
code:
- '**'
- '!docs/**'
- '!**/*.md'
- '!mkdocs.yml'

# Handle /list command - outputs available eval names
list_evals:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -118,12 +137,17 @@ jobs:
});

llm_evals:
needs: [check-changes]
runs-on: ubuntu-latest
if: |
github.event_name == 'pull_request' ||
github.event_name == 'push' ||
github.event_name == 'workflow_dispatch' ||
(github.event_name == 'issue_comment' && github.event.issue.pull_request && (startsWith(github.event.comment.body, '/eval') || startsWith(github.event.comment.body, '/rerun')))
!cancelled() &&
needs.check-changes.outputs.has_code_changes != 'false' &&
(
github.event_name == 'pull_request' ||
github.event_name == 'push' ||
github.event_name == 'workflow_dispatch' ||
(github.event_name == 'issue_comment' && github.event.issue.pull_request && (startsWith(github.event.comment.body, '/eval') || startsWith(github.event.comment.body, '/rerun')))
)

# Serialize automated regression runs per PR to avoid race conditions on persistent comment
# Manual runs (/eval, workflow_dispatch) get unique groups so they can run in parallel
Expand Down
Loading