test(collada): track the large-open readiness gap as an expected failure
Some checks failed
M6 deployable RC / quick (push) Has been cancelled
M6 deployable RC / chromium (push) Has been cancelled
M6 deployable RC / release (push) Has been cancelled

the P0 investigation disproved the frame-pump hypothesis: after opening the
238-object fixture the worker completes every frame (native draw, SceneIR and
geometry publish all succeed, ~20 s per frame, mutated on every frame), but the
page stops posting frames after the owner-generation change, input readiness
never republishes and the native main regions stay blank; one pointer move does
not wake it. the new headed case forbids pointer input so it fails on the real
behaviour and is marked test.fail as the reproducer. the item is re-scoped into
three steps: locate the stop after the owner change, publish the scene on
demand instead of every frame, and fix the blank main regions after the open.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
mes123456
2026-12-06 05:25:12 +08:00
parent 4d2cd16468
commit ab2e6cad6f
3 changed files with 23 additions and 2 deletions

View File

@@ -12,7 +12,7 @@
| # | 未完成项 | 来源计划 | 现状与证据 | 建议处理 |
|---|---|---|---|---|
| 1 | 大工程打开后视口输入未就绪:打开 `yt2-imported.blend` 后 `data-native-input-ready` 保持 `false`,需一次额外输入唤醒 | `glowing-petting-map.md`(`WBV2-COLLADA-001` 残余 1) | `docs/status/WBV2-COLLADA-001.md`:`displayAcknowledged:true`、帧冻结、无新帧;指向 `WasmGPUCanvas` 的 `readyOwnerFrames>=2` 与 ownerGeneration 变化后空闲帧泵不再发第二帧 | 修 `WasmGPUCanvas` 帧泵/就绪判定,owner 变化后补发一帧;补“打开大工程后直接操作视口”的有头用例。P0 |
| 1 | 大工程打开后视口输入未就绪:打开 `yt2-imported.blend`(238 对象 / 40 万顶点)后 `data-native-input-ready` 持续 `false`,指针输入也无法唤醒 | `glowing-petting-map.md`(`WBV2-COLLADA-001` 残余 1) | 已用插桩探针推翻旧假设:worker 端每帧的原生绘制、SceneIR 与几何发布全部成功(`ok=true`,且每帧 `mutated=true`,单帧约 20 s),但页面在 ownerGeneration 变更帧之后不再投递新帧;`data-native-display=acknowledged`、`data-native-frame-size` 有值、区域 `visible`,就绪仍为 `false` 超过 10 分钟;单次指针移动不产生新帧。原生画布同时出现主区域空白(与 soak 残余同一形态)。有头用例已加入 `collada-model-pipeline.spec.ts` 并标 `test.fail` 作为复现器 | 分三步:① 定位 owner 变更后页面停止投递帧的原因(`invoking`/`pendingInvoke` 挂起 vs 响应未返回);② 帧路径不再每帧重发整场景(改为按需/变更时发布);③ 修复大工程 open 后原生主区域空白。P0 |
| 2 | 渲染课程成片缺失:`rendering-lesson-720p.mp4` 已撤回,未重录 | `binary-dreaming-ladybug.md`;`RENDER_PATHS_20261116` 残余 4 | 旧片 1477.8 s 与 `timeline.json` 13 章只覆盖到 1125 s 不符而撤回;`check-render-tutorial.mjs` 现输出 `AWAITING_RERECORD` | 按现有章节重录并重新混音,跑 `check-render-tutorial.mjs` 到非 `AWAITING_RERECORD`;保持 `NOT_CLAIMED` |
| 3 | 满尺寸场景 undo/redo 超出单例窗口:YT2 `setObjectOrigin` 后 undo/redo 在 185 s 内未完成 | `glowing-petting-map.md`(残余 4) | 两次尝试均被上限终止;小场景同一路径 PASS(`attempt-OFrAEc`) | 评估 13 MB Main + 236 网格的历史重建耗时;先量化再决定预算或增量恢复;单独开批次 |
| 4 | 编辑模式 `INDIVIDUAL_ORIGINS` 回退为中位点枢轴;视口元素点选只更新 React 选择、不同步引擎 BMesh 选择 | `mossy-giggling-moonbeam.md`;`VIEWPORT-NAV_20261125` 残余 | `docs/status/VIEWPORT-NAV-20261125.md` 明列;批次二/三已接入,残余保留 | 分别开小批次:枢轴语义按桌面源码补;元素选择同步 BMesh 需原生选择接口证伪后再定范围 |

View File

@@ -52,7 +52,7 @@
## 残余缺口(真实、未修复)
1. **大工程打开后视口输入就绪标志不恢复**:打开 `yt2-imported.blend` 后 `data-native-input-ready` 保持 `false`,探针显示 `window.__nativeWorkflowGPU` 的 `requestId` 冻结、`displayAcknowledged: true`、`inputDiscarded: false`、`modalActive: false`,鼠标移动/点击未产生新帧。原因指向 `WasmGPUCanvas` 的 `readyOwnerFrames >= 2` 在 ownerGeneration 变化后需连续两帧,而空闲帧泵不再发送第二帧。影响:打开大工程后用户需要一次额外的输入唤醒才可继续操作视口。负例测试已不依赖该清理步骤;该缺口需单独立项修复。
1. **大工程打开后视口输入就绪标志不恢复**:打开 `yt2-imported.blend` 后 `data-native-input-ready` 保持 `false` 超过 10 分钟,`data-native-display=acknowledged`、`data-native-frame-size` 有值、原生区域仍 `visible`,单次指针移动也不产生新帧;原生画布同时主区域空白(与 soak 残余同形态)。插桩结论(此后测量):worker 端每帧的原生绘制、SceneIR 与几何发布全部完成(`ok=true`),且每帧 `mutated=true`(单帧约 20 s),说明瓶颈不是 `readyOwnerFrames>=2` 判定,而是 ownerGeneration 变更帧之后页面不再投递帧、且帧路径每帧重发整场景。影响:打开大工程后用户需要一次额外的输入唤醒才可继续操作视口。复现器:`web/tests/e2e/collada-model-pipeline.spec.ts` 的 `test.fail` 用例;修复需分三步(定位停帧原因、按需发布场景、修复主区域空白)。
2. **完成度评估器**:`tools/web/evaluate-wbv2-completion.mjs` → `coverage-baseline.mjs:47` “historical references must be an array”,使 manifest 落为 `BLOCKED`,与用例执行结果无关。
3. ~~**失败导入的状态文案**:状态栏直接显示转换错误堆栈。~~ 已修复(2026-11-22):`model-convert.worker.ts` 只回传 `error.message` 不再回传 `error.stack`;`App.tsx` 的 `importColladaFile` 只取首行并去掉 `Error:` 前缀。负例 `attempt-PuR5JL` 断言状态栏含 `COLLADA 导入失败` 且不含堆栈行(PASS)。
4. **满尺寸场景的 undo/redo 超出单例窗口**:对 YT2 场景执行 `setObjectOrigin` → undo/redo 在 185 s 上限内未完成(历史恢复需重开 13 MB Main 并重建 236 网格),两次尝试均被上限终止、无回执。小场景(nested_hierarchy 导入)同一路径 PASS(`attempt-OFrAEc`)。需单独评估满尺寸历史重建的耗时与预算。

View File

@@ -4,6 +4,7 @@ import path from 'node:path';
import { createHash } from 'node:crypto';
import { observeNative, exposeWebTools, captureNativeWorkflowState, resolveProjectReplacement } from '../fixtures/native-ui-workflow';
import { nativeRequest, readNativeHistory, focusNativeViewport } from '../fixtures/native-modeling-workflow';
import { dragViewport, nativeViewportPoint, readNativeView3D, rotationDelta } from '../fixtures/viewport-navigation-workflow';
import type { Page } from '@playwright/test';
const root = path.resolve(import.meta.dirname, '../../..');
@@ -339,3 +340,23 @@ test('COLLADA truncated input is rejected', async ({ page }) => {
expect(historyAfter.cursor).toBe(historyBefore.cursor);
expect(historyAfter.entries).toEqual(historyBefore.entries);
});
test.fail('COLLADA large open republishes viewport readiness without extra input', async ({ page }, info) => {
test.setTimeout(900_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
* completes every frame (native draw, SceneIR and geometry publish all succeed) but the
* 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 });
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);
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));
});