mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 18:40:44 +00:00
test(docker): scope live gateway discovery
This commit is contained in:
@@ -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 },
|
||||
),
|
||||
{
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user