test(docker): scope live gateway discovery

This commit is contained in:
Vincent Koc
2026-05-05 21:13:40 -07:00
parent 8a47c79826
commit ff09f8022d
2 changed files with 10 additions and 2 deletions

View File

@@ -133,7 +133,7 @@ export const mainLanes = [
"live-gateway",
liveDockerScriptCommand(
"test-live-gateway-models-docker.sh",
"OPENCLAW_IMAGE=openclaw:local-live-gateway OPENCLAW_DOCKER_BUILD_EXTENSIONS=matrix",
"OPENCLAW_IMAGE=openclaw:local-live-gateway OPENCLAW_DOCKER_BUILD_EXTENSIONS=matrix OPENCLAW_LIVE_GATEWAY_PROVIDERS=claude-cli,codex-cli,google-gemini-cli",
{ skipBuild: false },
),
{

View File

@@ -114,6 +114,12 @@ function parseFilter(raw?: string): Set<string> | null {
return ids.length ? new Set(ids) : null;
}
function providerFilterList(): string[] | undefined {
return PROVIDERS
? [...PROVIDERS].toSorted((left, right) => left.localeCompare(right))
: undefined;
}
function shouldSuppressGatewayLiveOllamaWarnings(): boolean {
return PROVIDERS !== null && !PROVIDERS.has("ollama");
}
@@ -2365,7 +2371,9 @@ describeLive("gateway live (dev agent, profile keys)", () => {
logProgress("[all-models] discover candidates");
clearRuntimeConfigSnapshot();
const cfg = getRuntimeConfig();
await ensureOpenClawModelsJson(cfg);
await ensureOpenClawModelsJson(cfg, undefined, {
providerDiscoveryProviderIds: providerFilterList(),
});
const agentDir = resolveDefaultAgentDir(cfg);
const authStorage = discoverAuthStorage(agentDir);