Skip to content

Commit e79e9b1

Browse files
committed
Merge remote-tracking branch 'upstream/main' into rhoai-3.5
2 parents 70b3a75 + 1e807a0 commit e79e9b1

12 files changed

Lines changed: 38 additions & 15 deletions

.golangci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
# excluded from errcheck. Write-path Close errors (e.g. after writing
1010
# to a file) should still be checked explicitly.
1111

12-
# v2 is required for Go 1.25+ (v1 does not support Go 1.25).
12+
# v2 is required for Go 1.25+ (v1 does not support Go 1.25 or later).
1313
# See: https://github.com/golangci/golangci-lint/issues/5873
1414
version: "2"
1515

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Batch Gateway
22

33
[![Go Report Card](https://goreportcard.com/badge/github.com/llm-d/llm-d-batch-gateway)](https://goreportcard.com/report/github.com/llm-d/llm-d-batch-gateway)
4-
[![Go Version](https://img.shields.io/badge/Go-1.25-blue.svg)](https://golang.org/)
4+
[![Go Version](https://img.shields.io/badge/Go-1.26-blue.svg)](https://golang.org/)
55
[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](LICENSE)
66
[![Join Slack](https://img.shields.io/badge/Join_Slack-blue?logo=slack)](https://llm-d.slack.com/archives/C0AA8772H7T)
77
[![apiserver](https://img.shields.io/github/v/release/llm-d/llm-d-batch-gateway?label=apiserver)](https://github.com/llm-d/llm-d-batch-gateway/pkgs/container/batch-gateway-apiserver)
@@ -162,7 +162,7 @@ batch-gateway/
162162

163163
### Prerequisites
164164

165-
- Go 1.25 or later.
165+
- Go 1.26 or later.
166166
- PostgreSQL 12+ (for metadata storage).
167167
- Redis 6+ or Valkey 8+ (for job queue).
168168
- S3-compatible object storage or local filesystem.

docker/Dockerfile.apiserver.konflux

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM registry.access.redhat.com/ubi9/go-toolset:1.25.8@sha256:8c5aeac74b4b60dc2e5e44f6b639186b7ec2fec8f0eb9a36d4a32dcf8e255f52 AS builder
1+
FROM registry.access.redhat.com/ubi9/go-toolset:1.26.5@sha256:f99dd81b20e5971ef9f63a51ac27cf0aa591ff9921d021490548b67fd9b17144 as builder
22
ARG TARGETOS=linux
33
ARG TARGETARCH
44
ARG CGO_ENABLED=1

docker/Dockerfile.gc.konflux

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM registry.access.redhat.com/ubi9/go-toolset:1.25.8@sha256:8c5aeac74b4b60dc2e5e44f6b639186b7ec2fec8f0eb9a36d4a32dcf8e255f52 AS builder
1+
FROM registry.access.redhat.com/ubi9/go-toolset:1.26.5@sha256:f99dd81b20e5971ef9f63a51ac27cf0aa591ff9921d021490548b67fd9b17144 as builder
22
ARG TARGETOS=linux
33
ARG TARGETARCH
44
ARG CGO_ENABLED=1

docker/Dockerfile.processor.konflux

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM registry.access.redhat.com/ubi9/go-toolset:1.25.8@sha256:8c5aeac74b4b60dc2e5e44f6b639186b7ec2fec8f0eb9a36d4a32dcf8e255f52 AS builder
1+
FROM registry.access.redhat.com/ubi9/go-toolset:1.26.5@sha256:f99dd81b20e5971ef9f63a51ac27cf0aa591ff9921d021490548b67fd9b17144 as builder
22
ARG TARGETOS=linux
33
ARG TARGETARCH
44
ARG CGO_ENABLED=1

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module github.com/llm-d/llm-d-batch-gateway
22

3-
go 1.25.0
3+
go 1.26.0
44

55
require (
66
github.com/alicebob/miniredis/v2 v2.38.0

test/e2e/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ End-to-end tests for the batch-gateway. They run against a live deployment and c
55
## Prerequisites
66

77
- `kubectl`, `helm`, `kind`, Docker or Podman
8-
- Go 1.25+
8+
- Go 1.26+
99

1010
## 1. Deploy the server
1111

test/e2e/e2e_test.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,10 @@ var (
3939
testPostgresqlRelease = getEnvOrDefault("TEST_POSTGRESQL_RELEASE", "postgresql")
4040
testRedisRelease = getEnvOrDefault("TEST_REDIS_RELEASE", "redis")
4141
testDBPod = getEnvOrDefault("TEST_DB_POD", "")
42+
testDBNamespace = getEnvOrDefault("TEST_DB_NAMESPACE", "")
43+
testDBName = getEnvOrDefault("TEST_DB_NAME", "postgres")
44+
testDBUser = getEnvOrDefault("TEST_DB_USER", "postgres")
45+
testEPPNamespace = getEnvOrDefault("TEST_EPP_NAMESPACE", "")
4246

4347
// testDBClientType and testExchangeClientType are detected from Helm
4448
// releases at startup; see detectDBClientType / detectExchangeClientType.

test/e2e/flow_control_test.go

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -311,13 +311,24 @@ func doTestRetryExhaustion(t *testing.T) {
311311
// - Mixed load with metrics: verify batch completion alongside interactive
312312
// traffic with retry/shedding counters. Requires EPP to export scheduling metrics.
313313

314-
// detectGIEDeployed checks whether at least one EPP deployment exists
315-
// in the test namespace.
314+
// detectGIEDeployed checks whether at least one EPP deployment exists.
315+
// It searches testEPPNamespace (TEST_EPP_NAMESPACE) if set, otherwise
316+
// testNamespace. Set TEST_GIE_DEPLOYED=true to force-enable GIE tests
317+
// when the EPP naming convention differs (e.g. RHOAI).
316318
func detectGIEDeployed(t *testing.T) bool {
317319
t.Helper()
318320

321+
if strings.EqualFold(getEnvOrDefault("TEST_GIE_DEPLOYED", ""), "true") {
322+
return true
323+
}
324+
325+
ns := testEPPNamespace
326+
if ns == "" {
327+
ns = testNamespace
328+
}
329+
319330
out, err := exec.Command("kubectl", "get", "deployments",
320-
"-n", testNamespace,
331+
"-n", ns,
321332
"-o", "name",
322333
).CombinedOutput()
323334
if err != nil {

test/e2e/gc_test.go

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,11 +52,19 @@ func expireInPostgresql(t *testing.T, table, id string) {
5252
podName = fmt.Sprintf("%s-0", testPostgresqlRelease)
5353
}
5454

55+
ns := testDBNamespace
56+
if ns == "" {
57+
ns = testNamespace
58+
}
59+
5560
sql := fmt.Sprintf("UPDATE %s SET expiry = 1 WHERE id = '%s'", table, id)
56-
cmd := fmt.Sprintf(`PGPASSWORD="$(cat "$POSTGRES_PASSWORD_FILE")" psql -U postgres -d postgres -c %q`, sql)
61+
cmd := fmt.Sprintf(
62+
`PGPASSWORD="${POSTGRESQL_PASSWORD:-$(cat "$POSTGRES_PASSWORD_FILE" 2>/dev/null)}" psql -U '%s' -d '%s' -c %q`,
63+
testDBUser, testDBName, sql,
64+
)
5765
out, err := exec.Command("kubectl", "exec",
5866
podName,
59-
"-n", testNamespace,
67+
"-n", ns,
6068
"--", "bash", "-c", cmd,
6169
).CombinedOutput()
6270
if err != nil {

0 commit comments

Comments
 (0)