From 8eb06a4b8b34bd1b1f4e8eb581d8877af49ec8ee Mon Sep 17 00:00:00 2001 From: Lukasz Raczylo Date: Thu, 20 Aug 2026 23:15:13 +0100 Subject: [PATCH] test(integration): enable discovery on the real-upstream provider Discovery failures are non-fatal (explicit model keeps resolving offline), and with discovery on, INTEGRATION_REAL=1 runs serve the gateway's full live catalog from /v1/models instead of one pinned id. --- integration/traefik/dynamic.yml.tmpl | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/integration/traefik/dynamic.yml.tmpl b/integration/traefik/dynamic.yml.tmpl index 18e2285..1b4d50b 100644 --- a/integration/traefik/dynamic.yml.tmpl +++ b/integration/traefik/dynamic.yml.tmpl @@ -132,10 +132,11 @@ http: type: openai baseUrl: "__INTEGRATION_REAL_BASEURL__" apiKey: "" - # Explicit rather than discovered: resolution must not depend - # on this container reaching the real upstream at Traefik - # startup (offline dev machines, CI with no egress). The - # actual chat completion call in task 7 still goes out live. + # Explicit model AND discovery: the explicit entry keeps + # resolution working offline (discovery failures are non-fatal + # by design - log + retry next interval), while discovery + # populates /v1/models with the gateway's full live catalog + # when the upstream is reachable (INTEGRATION_REAL=1 runs). # # The provider is deliberately NOT named "uni": the upstream # gateway's own model ids carry a "uni/" prefix, and a @@ -144,6 +145,8 @@ http: # non-colliding name the whole slash-bearing id below is a # bare model id and is forwarded verbatim. models: ["uni/deepseek-v4-flash-0731"] + discovery: true + discoveryInterval: "5m" groups: eng: limits: