test: stabilize release validation lanes

This commit is contained in:
Peter Steinberger
2026-04-27 22:57:03 +01:00
parent 6f80ba7b78
commit d7dcd0e21e
4 changed files with 13 additions and 8 deletions

View File

@@ -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" }),
}));

View File

@@ -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);

View File

@@ -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";
}

View File

@@ -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