From 54ff238d969dd5700f3ecb64c890f077f826e864 Mon Sep 17 00:00:00 2001 From: DJJ Date: Tue, 15 Sep 2026 20:34:17 +0800 Subject: [PATCH 1/2] =?UTF-8?q?test(dashboard):=20=E7=BB=99=E4=B8=A4?= =?UTF-8?q?=E7=BA=A7=E5=8F=91=E7=8E=B0=E7=9A=84=E5=BC=82=E6=AD=A5=E6=B8=B2?= =?UTF-8?q?=E6=9F=93=E7=8B=AC=E7=AB=8B=E7=AD=89=E5=BE=85=E9=A2=84=E7=AE=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 整包运行的 CPU 争用会使两次 Help 查询与 React 渲染超过 Testing Library 默认一秒;单独用例和 Node22 CI 均通过。明确五秒等待上限,仍断言相同面板和精确请求路径,避免把调度延迟误判成发现失败。仅测试变更,不影响已发布产物。 --- packages/dashboard/test/deviceSessionDiscovery.dom.test.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/dashboard/test/deviceSessionDiscovery.dom.test.tsx b/packages/dashboard/test/deviceSessionDiscovery.dom.test.tsx index ad9eab0..648cc5d 100644 --- a/packages/dashboard/test/deviceSessionDiscovery.dom.test.tsx +++ b/packages/dashboard/test/deviceSessionDiscovery.dom.test.tsx @@ -55,7 +55,9 @@ describe('progressive process-session discovery through real SDK help parser', ( it.each(['page', 'workspace'] as const)('%s hydrates only start detail from the schema-free command index', async (surface) => { const fn = fetcher() mount(surface) - await screen.findByRole('region', { name: '设备进程会话' }) + // Two asynchronous Help requests plus a React render are a behavioral check, + // not a one-second latency benchmark on a contended developer machine. + await screen.findByRole('region', { name: '设备进程会话' }, { timeout: 5000 }) await screen.findByText(/本页没有可见会话/) const helpUrls = fn.mock.calls.map(call => String(call[0])).filter(url => url.includes('~help')) expect(helpUrls).toContain(`https://fixture.invalid/${path}/start/~help`) From 77759079adfa8faf8d53ee9030d7c624078a7e35 Mon Sep 17 00:00:00 2001 From: DJJ Date: Tue, 15 Sep 2026 20:36:34 +0800 Subject: [PATCH 2/2] chore(llmdoc): refresh fingerprints --- llmdoc/meta.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llmdoc/meta.json b/llmdoc/meta.json index a5269d2..02f1301 100644 --- a/llmdoc/meta.json +++ b/llmdoc/meta.json @@ -69,7 +69,7 @@ "validatedRevision": "b7c8bc5f595b8e1c781a92f8a1d95bfda78a17dc" }, "device/process-sessions.mdx": { - "validatedRevision": "b7c8bc5f595b8e1c781a92f8a1d95bfda78a17dc" + "validatedRevision": "54ff238d969dd5700f3ecb64c890f077f826e864" } }, "convergence": {