Skip to content

Commit 562218d

Browse files
ci: add helm lint values matrix for multi-config coverage (llm-d#540)
Add 6 variant values files in charts/batch-gateway/ci/ to exercise template branches that the default values.yaml does not cover: globalInferenceGateway, modelGateways, flow control, AIMD disabled, image digests, and minimal config. Update pre-commit workflow to lint all variants alongside the default. Closes llm-d#412 Signed-off-by: Madhu Goutham Reddy Ambati <mambati@redhat.com> Co-authored-by: Lior Aronovich <243445518+lioraron@users.noreply.github.com>
1 parent 6af388f commit 562218d

7 files changed

Lines changed: 98 additions & 1 deletion

File tree

.github/workflows/pre-commit.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,4 +46,8 @@ jobs:
4646
run: make test-integration
4747

4848
- name: Lint Helm chart
49-
run: helm lint charts/batch-gateway
49+
run: |
50+
helm lint charts/batch-gateway
51+
for f in charts/batch-gateway/ci/values-*.yaml; do
52+
helm lint charts/batch-gateway -f "$f"
53+
done
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# Exercises: static concurrency path with AIMD disabled.
2+
# Default has aimd.enabled: true; this tests the false branch.
3+
global:
4+
fileClient:
5+
fs:
6+
pvcName: "batch-data"
7+
8+
processor:
9+
config:
10+
concurrency:
11+
aimd:
12+
enabled: false
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# Exercises: inferenceObjective conditional (processor-configmap.yaml:47-49),
2+
# sendFairnessHeader conditional (line 103-104),
3+
# and OTel env var block (apiserver/processor-deployment.yaml)
4+
global:
5+
fileClient:
6+
fs:
7+
pvcName: "batch-data"
8+
otel:
9+
endpoint: "http://otel-collector:4317"
10+
11+
processor:
12+
config:
13+
globalInferenceGateway:
14+
url: "http://inference-gateway:8000"
15+
inferenceObjective: "batch-sheddable"
16+
requestTimeout: "5m"
17+
maxRetries: 3
18+
initialBackoff: "1s"
19+
maxBackoff: "60s"
20+
sendFairnessHeader: true
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# Exercises: globalInferenceGateway template path (processor-configmap.yaml:44-70)
2+
global:
3+
fileClient:
4+
fs:
5+
pvcName: "batch-data"
6+
7+
processor:
8+
config:
9+
globalInferenceGateway:
10+
url: "http://inference-gateway:8000"
11+
requestTimeout: "5m"
12+
maxRetries: 3
13+
initialBackoff: "1s"
14+
maxBackoff: "60s"
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# Exercises: image digest template branches (_helpers.tpl:124-130, 184-190, 239-245).
2+
# Default uses tag; this tests the digest path (repo@sha256:... instead of repo:tag).
3+
global:
4+
fileClient:
5+
fs:
6+
pvcName: "batch-data"
7+
8+
apiserver:
9+
image:
10+
digest: "sha256:abc123"
11+
12+
processor:
13+
image:
14+
digest: "sha256:def456"
15+
16+
gc:
17+
image:
18+
digest: "sha256:789ghi"
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# Exercises: default values with only the minimum required override.
2+
# Validates that all templates render with near-default configuration.
3+
global:
4+
fileClient:
5+
fs:
6+
pvcName: "batch-data"
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# Exercises: modelGateways template path with range loop (processor-configmap.yaml:72-101)
2+
# Includes inferenceObjective on one model to cover the per-model conditional (line 77-78)
3+
global:
4+
fileClient:
5+
fs:
6+
pvcName: "batch-data"
7+
8+
processor:
9+
config:
10+
modelGateways:
11+
"llama-3":
12+
url: "http://gie-a-epp:8081"
13+
inferenceObjective: "batch-sheddable-a"
14+
requestTimeout: "5m"
15+
maxRetries: 3
16+
initialBackoff: "1s"
17+
maxBackoff: "60s"
18+
"mistral":
19+
url: "http://gie-b-epp:8081"
20+
requestTimeout: "2m"
21+
maxRetries: 1
22+
initialBackoff: "1s"
23+
maxBackoff: "30s"

0 commit comments

Comments
 (0)