mirror of
https://fastgit.cc/github.com/openclaw/openclaw
synced 2026-05-01 06:36:23 +08:00
test: stabilize release validation lanes
This commit is contained in:
@@ -42,11 +42,6 @@ const { createdWatchers, watchMock } = vi.hoisted(() => {
|
||||
return result;
|
||||
});
|
||||
|
||||
vi.mock("chokidar", () => ({
|
||||
default: { watch: watchMock },
|
||||
watch: watchMock,
|
||||
}));
|
||||
|
||||
vi.mock("./sqlite-vec.js", () => ({
|
||||
loadSqliteVecExtension: async () => ({ ok: false, error: "sqlite-vec disabled in tests" }),
|
||||
}));
|
||||
|
||||
@@ -277,7 +277,7 @@ describeLive("openai plugin live", () => {
|
||||
const ttsConfig = createLiveTtsConfig();
|
||||
|
||||
const synthesized = await speechProvider.synthesize({
|
||||
text: "Open claw. Open claw. Integration test OK.",
|
||||
text: "Speech transcription check okay.",
|
||||
cfg,
|
||||
providerConfig: ttsConfig.providerConfigs.openai ?? {},
|
||||
target: "audio-file",
|
||||
@@ -295,7 +295,7 @@ describeLive("openai plugin live", () => {
|
||||
const text = (transcription?.text ?? "").toLowerCase();
|
||||
const collapsedText = text.replace(/[\s-]+/g, "");
|
||||
expect(text.length).toBeGreaterThan(0);
|
||||
expect(collapsedText).toContain("openclaw");
|
||||
expect(collapsedText).toContain("speechtranscription");
|
||||
expect(text).toMatch(/\bok(?:ay)?\b/);
|
||||
}, 45_000);
|
||||
|
||||
|
||||
@@ -234,6 +234,13 @@ function resolveLiveVideoSkipReason(message: string): string | null {
|
||||
if (isOverloadedErrorMessage(message) || isServerErrorMessage(message)) {
|
||||
return "provider outage";
|
||||
}
|
||||
if (
|
||||
/HTTP\s+404/i.test(message) &&
|
||||
/Invalid URL/i.test(message) &&
|
||||
/\/platform\/video_gen/i.test(message)
|
||||
) {
|
||||
return "provider endpoint drift";
|
||||
}
|
||||
if (/access denied|not authorized|not enabled|permission denied/i.test(message)) {
|
||||
return "provider/model drift";
|
||||
}
|
||||
|
||||
@@ -32,7 +32,10 @@ package_root() {
|
||||
|
||||
echo "Installing mounted OpenClaw package..."
|
||||
package_tgz="${OPENCLAW_CURRENT_PACKAGE_TGZ:?missing OPENCLAW_CURRENT_PACKAGE_TGZ}"
|
||||
npm install -g "$package_tgz" --no-fund --no-audit >/tmp/openclaw-setup-entry-install.log 2>&1
|
||||
if ! npm install -g "$package_tgz" --no-fund --no-audit >/tmp/openclaw-setup-entry-install.log 2>&1; then
|
||||
cat /tmp/openclaw-setup-entry-install.log >&2 || true
|
||||
exit 1
|
||||
fi
|
||||
|
||||
root="$(package_root)"
|
||||
for channel in "${!SETUP_ENTRY_DEP_SENTINELS[@]}"; do
|
||||
|
||||
Reference in New Issue
Block a user