Skip to content
Merged
Show file tree
Hide file tree
Changes from all 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
2 changes: 1 addition & 1 deletion .github/workflows/ci-pr-checks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ jobs:
- name: Run lint checks
uses: golangci/golangci-lint-action@v9
with:
version: "v2.1.6"
version: "v2.8.0"
args: "--config=./.golangci.yml"
skip-cache: true
env:
Expand Down
4 changes: 2 additions & 2 deletions Dockerfile.epp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
## Minimal runtime Dockerfile (microdnf-only, no torch, wrapper in site-packages)
# Go dependencies stage: download go modules and extract kv-cache
FROM quay.io/projectquay/golang:1.24 AS go-deps
FROM quay.io/projectquay/golang:1.25 AS go-deps

WORKDIR /workspace

Expand Down Expand Up @@ -41,7 +41,7 @@ RUN python3.12 -m venv /workspace/kv-cache/build/venv && \
fi

# Go build stage
FROM quay.io/projectquay/golang:1.24 AS go-builder
FROM quay.io/projectquay/golang:1.25 AS go-builder

ARG TARGETOS
ARG TARGETARCH
Expand Down
4 changes: 2 additions & 2 deletions Dockerfile.sidecar
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Build Stage: using Go 1.24 image
FROM quay.io/projectquay/golang:1.24 AS builder
# Build Stage: using Go 1.25 image
FROM quay.io/projectquay/golang:1.25 AS builder
ARG TARGETOS
ARG TARGETARCH
ARG COMMIT_SHA=unknown
Expand Down
2 changes: 1 addition & 1 deletion Makefile.tools.mk
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ TOKENIZER_LIB = $(LOCALLIB)/libtokenizers.a

## Tool fixed versions.
GINKGO_VERSION ?= v2.27.2
GOLANGCI_LINT_VERSION ?= v2.1.6
GOLANGCI_LINT_VERSION ?= v2.8.0
KUSTOMIZE_VERSION ?= v5.5.0
TYPOS_VERSION ?= v1.34.0
VLLM_VERSION ?= 0.14.0
Expand Down
4 changes: 1 addition & 3 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
module github.com/llm-d/llm-d-inference-scheduler

go 1.24.9

toolchain go1.24.12
go 1.25.7

require (
github.com/go-logr/logr v1.4.3
Expand Down
6 changes: 3 additions & 3 deletions pkg/plugins/filter/by_label_selector_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -302,9 +302,9 @@ func TestByLabelSelectorFiltering(t *testing.T) {

filteredEndpoints := blf.Filter(ctx, nil, nil, endpoints)

var actualEndpointNames []string
for _, endpoint := range filteredEndpoints {
actualEndpointNames = append(actualEndpointNames, endpoint.GetMetadata().NamespacedName.Name)
actualEndpointNames := make([]string, len(filteredEndpoints))
for idx, endpoint := range filteredEndpoints {
actualEndpointNames[idx] = endpoint.GetMetadata().NamespacedName.Name
}

assert.ElementsMatch(t, tt.expectedPods, actualEndpointNames,
Expand Down
6 changes: 3 additions & 3 deletions pkg/plugins/filter/by_label_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -249,9 +249,9 @@ func TestByLabelFiltering(t *testing.T) {

filteredEndpoints := blf.Filter(ctx, nil, nil, endpoints)

var actualEndpointNames []string
for _, endpoint := range filteredEndpoints {
actualEndpointNames = append(actualEndpointNames, endpoint.GetMetadata().NamespacedName.Name)
actualEndpointNames := make([]string, len(filteredEndpoints))
for idx, endpoint := range filteredEndpoints {
actualEndpointNames[idx] = endpoint.GetMetadata().NamespacedName.Name
}

assert.ElementsMatch(t, tt.expectedPods, actualEndpointNames,
Expand Down
8 changes: 4 additions & 4 deletions pkg/plugins/scorer/precise_prefix_cache_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -217,12 +217,12 @@ func TestPrefixCacheTracking_Score(t *testing.T) {
require.NotNil(t, req.ChatCompletions, "req expected to use ChatCompletions API")

// convert to preprocessing format
var conversations []preprocessing.Conversation
for _, msg := range req.ChatCompletions.Messages {
conversations = append(conversations, preprocessing.Conversation{
conversations := make([]preprocessing.Conversation, len(req.ChatCompletions.Messages))
for idx, msg := range req.ChatCompletions.Messages {
conversations[idx] = preprocessing.Conversation{
Role: msg.Role,
Content: msg.Content.Raw,
})
}
}

processor := preprocessing.NewChatTemplatingProcessor()
Expand Down
3 changes: 2 additions & 1 deletion test/e2e/e2e_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -491,7 +491,8 @@ func createEndPointPicker(eppConfig string) []string {
err := testConfig.K8sClient.Create(testConfig.Context, configMap)
gomega.Expect(err).ShouldNot(gomega.HaveOccurred())

objects := []string{"ConfigMap/epp-config"}
objects := make([]string, 1, 10)
objects[0] = "ConfigMap/epp-config"

eppYamls := testutils.ReadYaml(eppManifest)
eppYamls = substituteMany(eppYamls,
Expand Down
6 changes: 3 additions & 3 deletions test/e2e/utils_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -129,13 +129,13 @@ func runKustomize(kustomizeDir string) []string {
}

func substituteMany(inputs []string, substitutions map[string]string) []string {
outputs := []string{}
for _, input := range inputs {
outputs := make([]string, len(inputs))
for idx, input := range inputs {
output := input
for key, value := range substitutions {
output = strings.ReplaceAll(output, key, value)
}
outputs = append(outputs, output)
outputs[idx] = output
}
return outputs
}