Skip to content

Commit 47f4b8e

Browse files
authored
Merge branch 'main' into docs/flow-control-eviction-design
2 parents b250cc7 + 4c6c93c commit 47f4b8e

167 files changed

Lines changed: 8094 additions & 23393 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/actions/docker-build-and-push/action.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,10 @@ inputs:
3333
required: false
3434
description: Git commit SHA to embed via COMMIT_SHA build arg
3535
default: ''
36+
additional-tags:
37+
required: false
38+
description: Additional image tags to push
39+
default: ''
3640
runs:
3741
using: "composite"
3842
steps:
@@ -58,6 +62,7 @@ runs:
5862
${{ inputs.registry }}/${{ inputs.image-name }}:${{ inputs.tag }}
5963
${{ inputs.push == 'true' && inputs.prerelease != 'true' && format('{0}/{1}:latest', inputs.registry, inputs.image-name) || '' }}
6064
${{ inputs.commit-sha != '' && format('{0}/{1}:{2}', inputs.registry, inputs.image-name, inputs.commit-sha) || '' }}
65+
${{ inputs.additional-tags }}
6166
build-args: |
6267
LDFLAGS=-s -w
6368
COMMIT_SHA=${{ inputs.commit-sha || 'unknown' }}

.github/actions/helm-build-and-push/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ inputs:
1212
required: false
1313
default: ''
1414
epp_image_repository:
15-
description: 'EPP image repository name (e.g. llm-d-router-endpoint-picker or llm-d-router-endpoint-picker-dev)'
15+
description: 'EPP image repository name (e.g. llm-d-router-endpoint-picker)'
1616
required: false
1717
default: 'llm-d-router-endpoint-picker'
1818
runs:

.github/workflows/ci-build-images.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,14 @@ on:
1919
required: false
2020
type: string
2121
default: ''
22+
epp-additional-tags:
23+
required: false
24+
type: string
25+
default: ''
26+
sidecar-additional-tags:
27+
required: false
28+
type: string
29+
default: ''
2230

2331
permissions:
2432
contents: read
@@ -60,6 +68,7 @@ jobs:
6068
prerelease: ${{ inputs.prerelease }}
6169
commit-sha: ${{ github.sha }}
6270
push: 'true'
71+
additional-tags: ${{ inputs.epp-additional-tags }}
6372

6473
build-sidecar:
6574
runs-on: ubuntu-latest
@@ -93,6 +102,7 @@ jobs:
93102
prerelease: ${{ inputs.prerelease }}
94103
commit-sha: ${{ github.sha }}
95104
push: 'true'
105+
additional-tags: ${{ inputs.sidecar-additional-tags }}
96106

97107
push-helm-charts:
98108
needs: [build-epp, build-sidecar]
Lines changed: 106 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,106 @@
1+
name: CI - Coordinator Test
2+
3+
# Runs coordinator unit tests and e2e tests. Path filter excludes paths not
4+
# exercised by the coordinator.
5+
on:
6+
push:
7+
branches:
8+
- main
9+
- 'release-*'
10+
pull_request:
11+
branches:
12+
- main
13+
14+
permissions:
15+
contents: read
16+
actions: read
17+
18+
concurrency:
19+
group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.event.pull_request.number || github.ref }}
20+
cancel-in-progress: true
21+
22+
jobs:
23+
check-changes:
24+
runs-on: ubuntu-latest
25+
outputs:
26+
src: ${{ steps.filter.outputs.src }}
27+
steps:
28+
- name: Checkout source
29+
uses: actions/checkout@v7
30+
- uses: dorny/paths-filter@v4
31+
id: filter
32+
with:
33+
filters: |
34+
src:
35+
- '**/*.go'
36+
- Dockerfile.*
37+
- Makefile*
38+
- go.mod
39+
- go.sum
40+
- scripts/**
41+
- hack/**
42+
- test/**
43+
- .github/actions/e2e-runner-setup/action.yml
44+
- .github/workflows/ci-coordinator.yaml
45+
- '!Dockerfile.sidecar'
46+
- '!cmd/pd-sidecar/**'
47+
- '!pkg/sidecar/**'
48+
- '!test/sidecar/**'
49+
- '!pkg/generator/**'
50+
- '!test/e2e/**'
51+
- '!test/integration/**'
52+
- '!test/profiling/**'
53+
- '!Makefile'
54+
55+
unit-tests:
56+
needs: check-changes
57+
if: ${{ needs.check-changes.outputs.src == 'true' }}
58+
runs-on: ubuntu-latest
59+
timeout-minutes: 30
60+
steps:
61+
- name: Checkout source
62+
uses: actions/checkout@v7
63+
64+
- name: Create Go cache dirs
65+
id: go-cache
66+
run: |
67+
mkdir -p "$HOME/.cache/llm-d-gomodcache" "$HOME/.cache/llm-d-gobuildcache"
68+
echo "mod=$HOME/.cache/llm-d-gomodcache" >> "$GITHUB_OUTPUT"
69+
echo "build=$HOME/.cache/llm-d-gobuildcache" >> "$GITHUB_OUTPUT"
70+
71+
- name: Cache Go modules and build cache
72+
uses: actions/cache@v6
73+
with:
74+
path: |
75+
${{ steps.go-cache.outputs.mod }}
76+
${{ steps.go-cache.outputs.build }}
77+
key: go-cache-${{ runner.os }}-${{ hashFiles('go.sum') }}
78+
restore-keys: |
79+
go-cache-${{ runner.os }}-
80+
81+
- name: Run coordinator unit tests
82+
shell: bash
83+
env:
84+
GO_MOD_CACHE_VOL: ${{ steps.go-cache.outputs.mod }}
85+
GO_BUILD_CACHE_VOL: ${{ steps.go-cache.outputs.build }}
86+
run: make -f Makefile.coord.mk test-unit
87+
88+
e2e-tests:
89+
needs: check-changes
90+
if: ${{ needs.check-changes.outputs.src == 'true' }}
91+
runs-on: ubuntu-latest
92+
timeout-minutes: 60
93+
steps:
94+
- name: Checkout source
95+
uses: actions/checkout@v7
96+
97+
- name: Set up e2e runner
98+
id: e2e-setup
99+
uses: ./.github/actions/e2e-runner-setup
100+
101+
- name: Run coordinator e2e tests
102+
shell: bash
103+
env:
104+
GO_MOD_CACHE_VOL: ${{ steps.e2e-setup.outputs.go-mod-cache }}
105+
GO_BUILD_CACHE_VOL: ${{ steps.e2e-setup.outputs.go-build-cache }}
106+
run: make -f Makefile.coord.mk test-e2e-coordinator

.github/workflows/ci-dev.yaml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ jobs:
1919
outputs:
2020
epp_name: ${{ steps.version.outputs.epp_name }}
2121
sidecar_name: ${{ steps.version.outputs.sidecar_name }}
22+
epp_base_name: ${{ steps.version.outputs.epp_base_name }}
23+
sidecar_base_name: ${{ steps.version.outputs.sidecar_base_name }}
2224
tag: ${{ steps.tag.outputs.tag }}
2325
steps:
2426
- name: Set image names
@@ -27,6 +29,8 @@ jobs:
2729
repo="${GITHUB_REPOSITORY##*/}"
2830
echo "epp_name=${repo}-endpoint-picker-dev" >> "$GITHUB_OUTPUT"
2931
echo "sidecar_name=${repo}-disagg-sidecar-dev" >> "$GITHUB_OUTPUT"
32+
echo "epp_base_name=${repo}-endpoint-picker" >> "$GITHUB_OUTPUT"
33+
echo "sidecar_base_name=${repo}-disagg-sidecar" >> "$GITHUB_OUTPUT"
3034
3135
- name: Set branch name as tag
3236
id: tag
@@ -42,5 +46,7 @@ jobs:
4246
sidecar-image-name: ${{ needs.set-params.outputs.sidecar_name }}
4347
tag: ${{ needs.set-params.outputs.tag }}
4448
prerelease: true
45-
chart-suffix: "-dev"
49+
chart-suffix: ""
50+
epp-additional-tags: ghcr.io/llm-d/${{ needs.set-params.outputs.epp_base_name }}:main
51+
sidecar-additional-tags: ghcr.io/llm-d/${{ needs.set-params.outputs.sidecar_base_name }}:main
4652

.github/workflows/ci-lint.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ jobs:
6262
uses: actions/checkout@v7
6363

6464
- name: Set up Go
65-
uses: actions/setup-go@v6
65+
uses: actions/setup-go@v7
6666
with:
6767
go-version-file: go.mod
6868
cache: true

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

Lines changed: 18 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Matrix jobs (e2e-image-common, e2e-image-router, e2e-router) are each
1+
# Matrix jobs (e2e-image-common, e2e-image-router) are each
22
# followed by a *-status job that aggregates their result, since GitHub
33
# required status checks cannot reference individual matrix legs.
44
name: CI - Test
@@ -45,6 +45,11 @@ jobs:
4545
- .github/actions/docker-build-and-push/action.yml
4646
- .github/actions/e2e-runner-setup/action.yml
4747
- .github/workflows/ci-pr-checks.yaml
48+
- '!Dockerfile.coordinator'
49+
- '!Makefile.coord.mk'
50+
- '!cmd/coordinator/**'
51+
- '!pkg/coordinator/**'
52+
- '!test/coordinator/**'
4853
helm:
4954
- 'config/charts/**'
5055
- 'hack/verify-helm.sh'
@@ -59,7 +64,7 @@ jobs:
5964
uses: actions/checkout@v7
6065

6166
- name: Set up Go
62-
uses: actions/setup-go@v6
67+
uses: actions/setup-go@v7
6368
with:
6469
go-version-file: go.mod
6570

@@ -108,6 +113,16 @@ jobs:
108113
GO_BUILD_CACHE_VOL: ${{ steps.go-cache.outputs.build }}
109114
run: make test-unit
110115

116+
# Anti-rot: execute the benchmark bodies once so runtime breakage (panics,
117+
# deadlocks) is caught. `go test` only compiles benchmarks; it never runs
118+
# them without -bench.
119+
- name: Run benchmark smoke
120+
shell: bash
121+
env:
122+
GO_MOD_CACHE_VOL: ${{ steps.go-cache.outputs.mod }}
123+
GO_BUILD_CACHE_VOL: ${{ steps.go-cache.outputs.build }}
124+
run: make bench-smoke
125+
111126
- name: Run hermetic integration tests
112127
shell: bash
113128
env:
@@ -343,29 +358,6 @@ jobs:
343358
if: ${{ needs.check-changes.outputs.src == 'true' }}
344359
runs-on: ubuntu-latest
345360
timeout-minutes: 45
346-
strategy:
347-
fail-fast: false
348-
matrix:
349-
suite:
350-
- name: pd
351-
label-filter: "!Disruptive && !Extended && !SharedStorage && !Metrics"
352-
needs-renderer: "false"
353-
- name: pd-shared-storage-deprecated
354-
label-filter: "SharedStorage && DeprecatedPD"
355-
needs-renderer: "false"
356-
- name: pd-shared-storage-disagg
357-
label-filter: "SharedStorage && Disagg"
358-
needs-renderer: "false"
359-
- name: pd-metrics
360-
label-filter: "Metrics"
361-
needs-renderer: "false"
362-
- name: extended
363-
label-filter: "Extended"
364-
needs-renderer: "true"
365-
- name: disruption
366-
label-filter: "Disruptive"
367-
needs-renderer: "false"
368-
name: e2e-router (${{ matrix.suite.name }})
369361
steps:
370362
- name: Checkout source
371363
uses: actions/checkout@v7
@@ -399,7 +391,6 @@ jobs:
399391
path: ${{ runner.temp }}/e2e-images
400392

401393
- name: Download renderer image
402-
if: ${{ matrix.suite.needs-renderer == 'true' }}
403394
uses: actions/download-artifact@v8
404395
with:
405396
name: e2e-image-renderer
@@ -412,26 +403,11 @@ jobs:
412403
docker load --input "$image"
413404
done
414405
415-
- name: Run e2e-router (${{ matrix.suite.name }})
406+
- name: Run e2e-router
416407
shell: bash
417408
env:
418409
GO_MOD_CACHE_VOL: ${{ steps.e2e-setup.outputs.go-mod-cache }}
419410
GO_BUILD_CACHE_VOL: ${{ steps.e2e-setup.outputs.go-build-cache }}
420-
E2E_LABEL_FILTER: ${{ matrix.suite.label-filter }}
421-
LOAD_VLLM_RENDER_IMAGE: ${{ matrix.suite.needs-renderer }}
422411
PULL_VLLM_RENDER_IMAGE: "false"
423412
HF_TOKEN: ${{ secrets.HF_TOKEN }}
424413
run: make test-e2e-run
425-
426-
e2e-router-status:
427-
needs: e2e-router
428-
if: always()
429-
runs-on: ubuntu-latest
430-
steps:
431-
- name: Check e2e-router result
432-
run: |
433-
result="${{ needs.e2e-router.result }}"
434-
if [[ "$result" != "success" && "$result" != "skipped" ]]; then
435-
echo "::error::e2e-router failed for at least one matrix suite"
436-
exit 1
437-
fi

.github/workflows/ci-release.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ jobs:
6262
uses: actions/checkout@v7
6363

6464
- name: Set up Go
65-
uses: actions/setup-go@v6
65+
uses: actions/setup-go@v7
6666
with:
6767
go-version-file: go.mod
6868

.github/workflows/nightly-router-perf-test-optimized-baseline-10k-1k.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -67,21 +67,21 @@ jobs:
6767
HF_TOKEN: ${{ secrets.HF_TOKEN }}
6868
steps:
6969
- name: Checkout llm-d/llm-d-router
70-
uses: actions/checkout@v6
70+
uses: actions/checkout@v7
7171

7272
- name: Checkout kubernetes-sigs/inference-perf
73-
uses: actions/checkout@v6
73+
uses: actions/checkout@v7
7474
with:
7575
repository: kubernetes-sigs/inference-perf
7676
path: inference-perf
7777

7878
- name: Authenticate to Google Cloud
79-
uses: google-github-actions/auth@v2
79+
uses: google-github-actions/auth@v3
8080
with:
8181
credentials_json: ${{ secrets.GKE_SA_KEY }}
8282

8383
- name: Set up gcloud CLI and kubectl
84-
uses: google-github-actions/setup-gcloud@v2
84+
uses: google-github-actions/setup-gcloud@v3
8585
with:
8686
project_id: ${{ env.GCP_PROJECT_ID }}
8787
install_components: 'kubectl,gke-gcloud-auth-plugin'
@@ -97,7 +97,7 @@ jobs:
9797
curl https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3 | bash
9898
9999
- name: Set up Python
100-
uses: actions/setup-python@v5
100+
uses: actions/setup-python@v7
101101
with:
102102
python-version: "3.10"
103103

@@ -125,7 +125,7 @@ jobs:
125125
--gcs-bucket ${{ env.GCS_BUCKET }}
126126
127127
- name: Upload Performance Results Artifact
128-
uses: actions/upload-artifact@v4
128+
uses: actions/upload-artifact@v7
129129
if: always()
130130
with:
131131
name: epp-perf-results

DEVELOPMENT.md

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ Documentation for developing the llm-d Router.
1111
- [Kind Development Environment](#kind-development-environment)
1212
- [Accessing the Gateway](#accessing-the-gateway)
1313
- [Prometheus Monitoring](#prometheus-monitoring)
14-
- [Grafana Dashboard](#grafana-dashboard)
1514
- [Development Cycle](#development-cycle)
1615
- [Debugging](#debugging)
1716
- [Inference Disaggregation Modes](#inference-disaggregation-modes)
@@ -170,17 +169,10 @@ Prometheus will be accessible at `http://localhost:30090`. To use a different ho
170169
PROM_ENABLED=true KIND_PROM_HOST_PORT=30091 make env-dev-kind
171170
```
172171

173-
### Grafana Dashboard
174-
175-
The bundled [Inference Gateway dashboard] covers EPP metrics across the inference
176-
pool, inference objective, and flow control layers.
177-
178-
Add a Prometheus datasource at `http://localhost:30090`, then import the JSON via
179-
**Dashboards > New > Import**. See the
180-
[Grafana installation docs](https://grafana.com/docs/grafana/latest/setup-grafana/installation/)
181-
for setup.
182-
183-
[Inference Gateway dashboard]:deploy/grafana/inference_gateway.json
172+
Grafana dashboards for the llm-d Router live in the
173+
[llm-d monorepo](https://github.com/llm-d/llm-d/tree/main/guides/recipes/observability/grafana/dashboards).
174+
See [Observability Setup](https://github.com/llm-d/llm-d/blob/main/docs/operations/observability/setup.md)
175+
for install and import instructions.
184176

185177
> [!NOTE]
186178
> For significant customization beyond the standard deployment, use the `deploy/components`

0 commit comments

Comments
 (0)