From 1a2968bbcfc306184f62630bb703eb71a0196161 Mon Sep 17 00:00:00 2001 From: mes123456 Date: Sun, 6 Dec 2026 06:29:23 +0800 Subject: [PATCH] test(collada): bound the large-open readiness case to a few minutes the expected failure previously spent two ten-minute polls (11.6 min per run). the open publishes in ~90 s and the unready flip follows the first post-open frame, so the case now allows 240 s for the flip and 120 s for the republish and caps the whole run at 8 minutes. worker instrumentation used for the investigation is removed. Co-Authored-By: Claude Fable 5.2 --- web/tests/e2e/collada-model-pipeline.spec.ts | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/web/tests/e2e/collada-model-pipeline.spec.ts b/web/tests/e2e/collada-model-pipeline.spec.ts index 90eaf6542..f482a57bf 100644 --- a/web/tests/e2e/collada-model-pipeline.spec.ts +++ b/web/tests/e2e/collada-model-pipeline.spec.ts @@ -342,7 +342,10 @@ test('COLLADA truncated input is rejected', async ({ page }) => { }); test.fail('COLLADA large open republishes viewport readiness without extra input', async ({ page }, info) => { - test.setTimeout(900_000); + /* Bounded so the expected failure lands in a few minutes: the open publishes in ~90 s, + * the unready flip follows the first post-open frame, and the current gap never + * republishes readiness, so 120 s after the flip is already conclusive. */ + test.setTimeout(480_000); await bootstrap(page, preparedBlend, 236); const canvas = page.locator('canvas[aria-label="Blender desktop"]'); /* Known gap (expected failure): after opening the 238-object project the worker @@ -350,12 +353,12 @@ test.fail('COLLADA large open republishes viewport readiness without extra input * page stops posting frames after the owner-generation change, so readiness never * republishes and the native main regions stay blank. The fixture's readiness workaround * in focusNativeViewport() masks this with pointer input; this case forbids that. */ - await expect(canvas).toHaveAttribute('data-native-input-ready', 'false', { timeout: 600_000 }); - await expect(canvas).toHaveAttribute('data-native-input-ready', 'true', { timeout: 600_000 }); + await expect(canvas).toHaveAttribute('data-native-input-ready', 'false', { timeout: 240_000 }); + await expect(canvas).toHaveAttribute('data-native-input-ready', 'true', { timeout: 120_000 }); const before = await readNativeView3D(page); const point = await nativeViewportPoint(page, 0.5, 0.5); await dragViewport(page, point, { dx: 60, dy: 0, button: 'middle' }); - await expect.poll(async () => rotationDelta(before.viewRotation, (await readNativeView3D(page)).viewRotation), { timeout: 120_000 }).toBeGreaterThan(0.02); + await expect.poll(async () => rotationDelta(before.viewRotation, (await readNativeView3D(page)).viewRotation), { timeout: 60_000 }).toBeGreaterThan(0.02); fs.writeFileSync(info.outputPath('large-open-readiness.json'), JSON.stringify({ ready: await canvas.getAttribute('data-native-input-ready'), before, after: await readNativeView3D(page), }, null, 2));