mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 17:10:49 +00:00
test: keep live release smokes tool-minimal
This commit is contained in:
@@ -27,6 +27,7 @@ import {
|
||||
CROSS_OS_GATEWAY_READY_TIMEOUT_MS,
|
||||
CROSS_OS_GATEWAY_STATUS_COMMAND_TIMEOUT_MS,
|
||||
CROSS_OS_GATEWAY_STATUS_RPC_TIMEOUT_MS,
|
||||
CROSS_OS_RELEASE_SMOKE_TOOLS_PROFILE,
|
||||
CROSS_OS_WINDOWS_GATEWAY_READY_TIMEOUT_MS,
|
||||
CROSS_OS_DASHBOARD_FETCH_TIMEOUT_MS,
|
||||
CROSS_OS_DASHBOARD_SMOKE_TIMEOUT_MS,
|
||||
@@ -160,11 +161,13 @@ describe("scripts/openclaw-cross-os-release-checks", () => {
|
||||
expect(allowlist).not.toContain("web-readability");
|
||||
});
|
||||
|
||||
it("keeps cross-OS live smoke agent turns on GPT-5.5-safe timeouts and minimal thinking", () => {
|
||||
it("keeps cross-OS live smoke agent turns on GPT-5.5-safe timeouts and minimal context", () => {
|
||||
const source = readFileSync("scripts/openclaw-cross-os-release-checks.ts", "utf8");
|
||||
const providerOverride = "models.providers.${params.providerConfig.extensionId}";
|
||||
|
||||
expect(CROSS_OS_RELEASE_SMOKE_TOOLS_PROFILE).toBe("minimal");
|
||||
expect(source).toContain('"--thinking",\n "minimal"');
|
||||
expect(source.match(/"tools\.profile", CROSS_OS_RELEASE_SMOKE_TOOLS_PROFILE/g)).toHaveLength(2);
|
||||
expect(CROSS_OS_AGENT_TURN_TIMEOUT_SECONDS).toBeGreaterThanOrEqual(600);
|
||||
expect(source).toContain("buildReleaseProviderConfigOverride");
|
||||
expect(source).toContain("models: []");
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
import { readFileSync } from "node:fs";
|
||||
import { describe, expect, it } from "vitest";
|
||||
import {
|
||||
LIVE_TEST_SHARDS,
|
||||
@@ -100,6 +101,13 @@ describe("scripts/test-live-shard", () => {
|
||||
]);
|
||||
});
|
||||
|
||||
it("keeps the Codex CLI backend live smoke on a minimal tool profile", () => {
|
||||
const source = readFileSync("src/gateway/gateway-cli-backend.live.test.ts", "utf8");
|
||||
|
||||
expect(source).toContain('providerId === "codex-cli" && !schemaProbePluginPath');
|
||||
expect(source).toContain('profile: "minimal" as const');
|
||||
});
|
||||
|
||||
it("rejects unknown shard names", () => {
|
||||
expect(() => selectLiveShardFiles("native-live-missing")).toThrow(/Unknown live test shard/u);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user