Repository navigation
ci: skip irrelevant E2E jobs on PRs with file changes detection #633
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 1 commit
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
afb5c03
ci: skip irrelevant E2E jobs on PRs and move labeler off self-hosted …
CatherineSue e2c6541
ci: revert labeler and finish jobs back to k8s-runner-cpu
CatherineSue d572b66
ci: address review feedback — explicit matrix defaults, permissions, …
CatherineSue 3b3d6e6
ci: add checkout before local composite action reference
CatherineSue 24e865a
ci: fix skipped detect-changes blocking non-PR runs, add workflow fil…
CatherineSue 61f2386
ci: check detect-changes result in finish job
CatherineSue d236e44
ci: add backend setup scripts to detect-changes filters
CatherineSue b69b7e6
ci: refine detect-changes filters — move shared crates to common, tri…
CatherineSue 5a03752
ci: move vllm-pd from e2e-always to e2e-chat-completions
CatherineSue 6f4185d
ci: use PR number in labeler concurrency group for fork safety
CatherineSue a464e28
ci: inline E2E steps back into jobs, remove composite action
CatherineSue 3980566
ci: revert matrix booleans and step conditions to match main
CatherineSue File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,128 @@ | ||
| name: 'Run E2E Tests' | ||
| description: 'Shared steps for all gateway E2E test jobs.' | ||
|
|
||
| inputs: | ||
| # Backend selection | ||
| setup_vllm: | ||
| default: 'false' | ||
| setup_trtllm: | ||
| default: 'false' | ||
| # Test configuration | ||
| test_dirs: | ||
| required: true | ||
| extra_deps: | ||
| default: '' | ||
| env_vars: | ||
| default: '' | ||
| reruns: | ||
| default: '' | ||
| parallel_opts: | ||
| default: '' | ||
| ignore_opts: | ||
| default: '' | ||
| test_filter: | ||
| default: '' | ||
| # Optional features | ||
| setup_agentic_deps: | ||
| default: 'false' | ||
| upload_benchmarks: | ||
| default: 'false' | ||
| genai_bench_image: | ||
| default: '' | ||
| # Secrets (must be passed explicitly to composite actions) | ||
| hf_token: | ||
| default: '' | ||
| openai_api_key: | ||
| default: '' | ||
| xai_api_key: | ||
| default: '' | ||
| anthropic_api_key: | ||
| default: '' | ||
|
|
||
| runs: | ||
| using: 'composite' | ||
| steps: | ||
| - name: Checkout code | ||
| uses: actions/checkout@v6 | ||
|
|
||
| - name: Check shared services | ||
| if: inputs.setup_agentic_deps == 'true' | ||
| shell: bash | ||
| run: bash scripts/ci_agentic_svc_deps.sh check --oracle oracle-db --brave brave-search-mcp | ||
|
|
||
| - name: Setup vLLM backend | ||
| if: inputs.setup_vllm == 'true' | ||
| uses: ./.github/actions/setup-vllm | ||
|
|
||
| - name: Setup TRT-LLM backend | ||
| if: inputs.setup_trtllm == 'true' | ||
| uses: ./.github/actions/setup-trtllm | ||
|
|
||
| - name: Setup SGLang backend | ||
| if: inputs.setup_vllm != 'true' && inputs.setup_trtllm != 'true' | ||
| uses: ./.github/actions/setup-sglang | ||
|
|
||
| - name: Download wheel artifact | ||
| uses: actions/download-artifact@v8 | ||
|
CatherineSue marked this conversation as resolved.
Outdated
|
||
| with: | ||
| name: smg-wheel | ||
| path: wheel/ | ||
|
|
||
| - name: Download WASM test fixtures | ||
| uses: actions/download-artifact@v8 | ||
|
CatherineSue marked this conversation as resolved.
Outdated
|
||
| with: | ||
| name: wasm-test-fixtures | ||
| path: wasm/tests/fixtures/ | ||
| continue-on-error: true | ||
|
|
||
| - name: Download Python client types | ||
| uses: actions/download-artifact@v8 | ||
|
CatherineSue marked this conversation as resolved.
Outdated
|
||
| with: | ||
| name: python-client-types | ||
| path: clients/python/smg_client/types/ | ||
|
|
||
|
CatherineSue marked this conversation as resolved.
Outdated
|
||
| - name: Install wheel and test dependencies | ||
| shell: bash | ||
| run: | | ||
| pip uninstall -y smg || true | ||
| pip install wheel/*.whl | ||
| bash scripts/ci_install_e2e_deps.sh ${{ inputs.extra_deps }} | ||
|
CatherineSue marked this conversation as resolved.
Outdated
|
||
|
|
||
| - name: Pull genai-bench image | ||
| if: inputs.upload_benchmarks == 'true' | ||
| shell: bash | ||
| run: docker pull ${{ inputs.genai_bench_image }} | ||
|
CatherineSue marked this conversation as resolved.
Outdated
coderabbitai[bot] marked this conversation as resolved.
Outdated
|
||
|
|
||
| - name: Setup Oracle | ||
| if: inputs.setup_agentic_deps == 'true' | ||
| shell: bash | ||
| run: | | ||
| bash scripts/ci_agentic_svc_deps.sh setup-oracle-client | ||
| bash scripts/ci_agentic_svc_deps.sh create-oracle-user oracle-db | ||
| bash scripts/ci_agentic_svc_deps.sh create-oracle-flyway-user oracle-db | ||
|
|
||
| - name: Run E2E tests | ||
| shell: bash | ||
| env: | ||
| HF_TOKEN: ${{ inputs.hf_token }} | ||
| OPENAI_API_KEY: ${{ inputs.openai_api_key }} | ||
| XAI_API_KEY: ${{ inputs.xai_api_key }} | ||
| ANTHROPIC_API_KEY: ${{ inputs.anthropic_api_key }} | ||
| BRAVE_MCP_HOST: ${{ inputs.setup_agentic_deps == 'true' && 'brave-search-mcp' || '' }} | ||
| run: | | ||
| bash scripts/ci_killall_sglang.sh "nuk_gpus" | ||
|
CatherineSue marked this conversation as resolved.
Outdated
|
||
| ${{ inputs.env_vars }} ROUTER_LOCAL_MODEL_PATH="/home/ubuntu/models" pytest ${{ inputs.reruns }} ${{ inputs.parallel_opts }} ${{ inputs.ignore_opts }} ${{ inputs.test_dirs }} ${{ inputs.test_filter }} -s -vv -o log_cli=true --log-cli-level=INFO | ||
|
CatherineSue marked this conversation as resolved.
Outdated
|
||
|
|
||
| - name: Cleanup Oracle test users | ||
| if: always() && inputs.setup_agentic_deps == 'true' | ||
| shell: bash | ||
| run: | | ||
| bash scripts/ci_agentic_svc_deps.sh cleanup-oracle-flyway-user oracle-db | ||
| bash scripts/ci_agentic_svc_deps.sh cleanup-oracle-user oracle-db | ||
|
|
||
| - name: Upload benchmark results | ||
| if: inputs.upload_benchmarks == 'true' | ||
| uses: actions/upload-artifact@v7 | ||
|
CatherineSue marked this conversation as resolved.
Outdated
|
||
| with: | ||
| name: genai-bench-results-all-policies | ||
| path: benchmark_**/ | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.