mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-27 05:07:50 +00:00
* qa-lab: harden CI defaults and failure semantics for live lanes * qa-lab: add unit tests for suite progress logging defaults * qa-lab: cover malformed multipass summary edge cases * qa-lab: share suite summary failure counting helper * qa-lab: test allow-failures parse wiring and sanitize progress ids * fix: note qa CI live-lane defaults in changelog (#69122) (thanks @joshavant)
17 lines
579 B
TypeScript
17 lines
579 B
TypeScript
export type QaProviderMode = "mock-openai" | "live-frontier";
|
|
export type QaProviderModeInput = QaProviderMode | "live-openai";
|
|
|
|
export function normalizeQaProviderMode(input: unknown): QaProviderMode {
|
|
if (input === undefined || input === null || input === "") {
|
|
return "live-frontier";
|
|
}
|
|
if (input === "mock-openai") {
|
|
return "mock-openai";
|
|
}
|
|
if (input === "live-frontier" || input === "live-openai") {
|
|
return "live-frontier";
|
|
}
|
|
const details = typeof input === "string" ? `: ${input}` : "";
|
|
throw new Error(`unknown QA provider mode${details}`);
|
|
}
|