test: stabilize release validation lanes · openclaw/openclaw@d7dcd0e
steipete
·
2026-04-28
·
via Recent Commits to openclaw:main
File tree
scripts/e2e/lib/bundled-channel
| Original file line number | Diff line number | Diff line change |
|---|
@@ -42,11 +42,6 @@ const { createdWatchers, watchMock } = vi.hoisted(() => {
|
42 | 42 | return result; |
43 | 43 | }); |
44 | 44 | |
45 | | -vi.mock("chokidar", () => ({ |
46 | | -default: { watch: watchMock }, |
47 | | -watch: watchMock, |
48 | | -})); |
49 | | - |
50 | 45 | vi.mock("./sqlite-vec.js", () => ({ |
51 | 46 | loadSqliteVecExtension: async () => ({ ok: false, error: "sqlite-vec disabled in tests" }), |
52 | 47 | })); |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -277,7 +277,7 @@ describeLive("openai plugin live", () => {
|
277 | 277 | const ttsConfig = createLiveTtsConfig(); |
278 | 278 | |
279 | 279 | const synthesized = await speechProvider.synthesize({ |
280 | | -text: "Open claw. Open claw. Integration test OK.", |
| 280 | +text: "Speech transcription check okay.", |
281 | 281 | cfg, |
282 | 282 | providerConfig: ttsConfig.providerConfigs.openai ?? {}, |
283 | 283 | target: "audio-file", |
@@ -295,7 +295,7 @@ describeLive("openai plugin live", () => {
|
295 | 295 | const text = (transcription?.text ?? "").toLowerCase(); |
296 | 296 | const collapsedText = text.replace(/[\s-]+/g, ""); |
297 | 297 | expect(text.length).toBeGreaterThan(0); |
298 | | -expect(collapsedText).toContain("openclaw"); |
| 298 | +expect(collapsedText).toContain("speechtranscription"); |
299 | 299 | expect(text).toMatch(/\bok(?:ay)?\b/); |
300 | 300 | }, 45_000); |
301 | 301 | |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -234,6 +234,13 @@ function resolveLiveVideoSkipReason(message: string): string | null {
|
234 | 234 | if (isOverloadedErrorMessage(message) || isServerErrorMessage(message)) { |
235 | 235 | return "provider outage"; |
236 | 236 | } |
| 237 | +if ( |
| 238 | +/HTTP\s+404/i.test(message) && |
| 239 | +/Invalid URL/i.test(message) && |
| 240 | +/\/platform\/video_gen/i.test(message) |
| 241 | +) { |
| 242 | +return "provider endpoint drift"; |
| 243 | +} |
237 | 244 | if (/access denied|not authorized|not enabled|permission denied/i.test(message)) { |
238 | 245 | return "provider/model drift"; |
239 | 246 | } |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -32,7 +32,10 @@ package_root() {
|
32 | 32 | |
33 | 33 | echo "Installing mounted OpenClaw package..." |
34 | 34 | package_tgz="${OPENCLAW_CURRENT_PACKAGE_TGZ:?missing OPENCLAW_CURRENT_PACKAGE_TGZ}" |
35 | | -npm install -g "$package_tgz" --no-fund --no-audit >/tmp/openclaw-setup-entry-install.log 2>&1 |
| 35 | +if ! npm install -g "$package_tgz" --no-fund --no-audit >/tmp/openclaw-setup-entry-install.log 2>&1; then |
| 36 | + cat /tmp/openclaw-setup-entry-install.log >&2 || true |
| 37 | + exit 1 |
| 38 | +fi |
36 | 39 | |
37 | 40 | root="$(package_root)" |
38 | 41 | for channel in "${!SETUP_ENTRY_DEP_SENTINELS[@]}"; do |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。