Skip to content

perf: faster tick for snapshot #6265

perf: faster tick for snapshot

perf: faster tick for snapshot #6265

Triggered via pull request September 21, 2024 13:04
Status Failure
Total duration 4m 7s
Artifacts

test.yml

on: pull_request
Install Dependencies
58s
Install Dependencies
Matrix: E2E Test
Matrix: Unit Test
Build & Test
0s
Build & Test
Fit to window
Zoom out
Zoom in

Annotations

10 errors, 20 warnings, and 20 notices
clipboard/list.spec.ts:522:1 › copy canvas element and text note in edgeless mode: tests/utils/asserts.ts#L965
1) clipboard/list.spec.ts:522:1 › copy canvas element and text note in edgeless mode ───────────── Error: expect(received).toBeCloseTo(expected, precision) Expected: 200 Received: 0 Expected precision: 0 Expected difference: < 0.5 Received difference: 200 at utils/asserts.ts:965 963 | 964 | expect(box[0]).toBeCloseTo(x, 0); > 965 | expect(box[1]).toBeCloseTo(y, 0); | ^ 966 | expect(box[2]).toBeCloseTo(w, 0); 967 | expect(box[3]).toBeCloseTo(h, 0); 968 | } at assertEdgelessSelectedRectModel (/home/runner/work/blocksuite/blocksuite/tests/utils/asserts.ts:965:18) at /home/runner/work/blocksuite/blocksuite/tests/clipboard/list.spec.ts:539:3
clipboard/markdown.spec.ts:19:1 › markdown format parse: tests/utils/asserts.ts#L628
2) clipboard/markdown.spec.ts:19:1 › markdown format parse ─────────────────────────────────────── Error: expect(received).toEqual(expected) // deep equality - Expected - 7 + Received + 1 Array [ + "text", "h1", "h2", "h3", "h4", "h5", "h6", - "todo", - "todo", - "todo", - "bulleted", - "bulleted", - "numbered", - "quote", ] at utils/asserts.ts:628 626 | ); 627 | }, currentEditorIndex); > 628 | expect(actual).toEqual(blockTypes); | ^ 629 | } 630 | 631 | /** at assertBlockTypes (/home/runner/work/blocksuite/blocksuite/tests/utils/asserts.ts:628:18) at /home/runner/work/blocksuite/blocksuite/tests/clipboard/markdown.spec.ts:56:3
selection/native.spec.ts:289:1 › cursor move to up and down with children block: tests/selection/native.spec.ts#L318
1) selection/native.spec.ts:289:1 › cursor move to up and down with children block ─────────────── Error: expect(received).toBeGreaterThanOrEqual(expected) Expected: >= 12 Received: -1 316 | const textTwo = await getInlineSelectionText(page); 317 | expect(textTwo).toBe('arrow down test 1'); > 318 | expect(indexTwo).toBeGreaterThanOrEqual(12); | ^ 319 | expect(indexTwo).toBeLessThanOrEqual(17); 320 | await page.keyboard.press('ArrowDown'); 321 | const textThree = await getInlineSelectionText(page); at /home/runner/work/blocksuite/blocksuite/tests/selection/native.spec.ts:318:20
attachment.spec.ts:670:1 › indent attachment block to paragraph: tests/attachment.spec.ts#L69
1) attachment.spec.ts:670:1 › indent attachment block to paragraph ─────────────────────────────── TimeoutError: page.waitForEvent: Timeout 5000ms exceeded while waiting for event "filechooser" =========================== logs =========================== waiting for event "filechooser" ============================================================ 67 | await expect(slashMenu).toBeVisible(); 68 | > 69 | const fileChooser = page.waitForEvent('filechooser'); | ^ 70 | await pressEnter(page); 71 | await sleep(100); 72 | await (await fileChooser).setFiles(FILE_PATH); at insertAttachment (/home/runner/work/blocksuite/blocksuite/tests/attachment.spec.ts:69:30) at /home/runner/work/blocksuite/blocksuite/tests/attachment.spec.ts:677:3
edgeless/note/note.spec.ts:246:1 › duplicate note should work correctly: tests/edgeless/note/note.spec.ts#L272
1) edgeless/note/note.spec.ts:246:1 › duplicate note should work correctly ─────────────────────── Error: expect(received).toBeCloseTo(expected) Expected: 517.2092895507812 Received: 623.2557792663574 Expected precision: 2 Expected difference: < 0.005 Received difference: 106.04648971557617 270 | const firstNoteBox = await firstNote.boundingBox(); 271 | const secondNoteBox = await secondNote.boundingBox(); > 272 | expect(firstNoteBox!.width).toBeCloseTo(secondNoteBox!.width); | ^ 273 | expect(firstNoteBox!.height).toBeCloseTo(secondNoteBox!.height); 274 | }); 275 | at /home/runner/work/blocksuite/blocksuite/tests/edgeless/note/note.spec.ts:272:31
edgeless/shortcut.spec.ts:119:1 › should not switch shapes in editing: tests/utils/actions/edgeless.ts#L357
1) edgeless/shortcut.spec.ts:119:1 › should not switch shapes in editing ───────────────────────── TimeoutError: locator.click: Timeout 5000ms exceeded. Call log: - waiting for locator('edgeless-tool-icon-button').filter({ hasText: 'Square' }) - locator resolved to <edgeless-tool-icon-button role="button">…</edgeless-tool-icon-button> - attempting click action - waiting for element to be visible, enabled and stable - element is not stable - retrying click action, attempt #1 - waiting for element to be visible, enabled and stable - element was detached from the DOM, retrying at utils/actions/edgeless.ts:357 355 | .locator('edgeless-tool-icon-button') 356 | .filter({ hasText: shape }); > 357 | await squareShapeButton.click(); | ^ 358 | break; 359 | } 360 | } at setEdgelessTool (/home/runner/work/blocksuite/blocksuite/tests/utils/actions/edgeless.ts:357:31) at /home/runner/work/blocksuite/blocksuite/tests/edgeless/shortcut.spec.ts:137:3
src/__tests__/adapters/markdown.unit.spec.ts > snapshot to markdown > synced-doc: packages/blocks/src/__tests__/adapters/markdown.unit.spec.ts#L2006
AssertionError: expected '# Test Doc\n\nHello\n\nWorld!\n' to be '# Test Doc\n\nHello\n\n# Synced Doc\n…' // Object.is equality - Expected + Received # Test Doc Hello - # Synced Doc - - # Heading 1 - - ## heading 2 - - paragraph - - ~~strike~~ - - ```cpp - Hello world! - ``` - - Deepest Doc - World! ❯ src/__tests__/adapters/markdown.unit.spec.ts:2006:25
Unit Test (1)
Process completed with exit code 1.
edgeless/connector/label.spec.ts:306:3 › connector label with straight shape › should exit the label editing state when pressing `Mod-Enter` or `Escape`: tests/utils/asserts.ts#L226
1) edgeless/connector/label.spec.ts:306:3 › connector label with straight shape › should exit the label editing state when pressing `Mod-Enter` or `Escape` Error: expect(received).toEqual(expected) // deep equality Expected: "b" Received: "a" at utils/asserts.ts:226 224 | return inlineEditor?.yText.toString(); 225 | }); > 226 | expect(actualTexts).toEqual(text); | ^ 227 | } 228 | 229 | export async function assertRichImage(page: Page, count: number) { at assertEdgelessCanvasText (/home/runner/work/blocksuite/blocksuite/tests/utils/asserts.ts:226:23) at /home/runner/work/blocksuite/blocksuite/tests/edgeless/connector/label.spec.ts:323:5
Build & Test
Process completed with exit code 1.
E2E Test (3)
Codecov: Failed to properly upload report: The process '/home/runner/work/_actions/codecov/codecov-action/v4/dist/codecov' failed with exit code 1
E2E Test (17)
Codecov: Failed to properly upload report: The process '/home/runner/work/_actions/codecov/codecov-action/v4/dist/codecov' failed with exit code 1
E2E Test (2)
Codecov: Failed to properly upload report: The process '/home/runner/work/_actions/codecov/codecov-action/v4/dist/codecov' failed with exit code 1
E2E Test (16)
Codecov: Failed to properly upload report: The process '/home/runner/work/_actions/codecov/codecov-action/v4/dist/codecov' failed with exit code 1
E2E Test (20)
Codecov: Failed to properly upload report: The process '/home/runner/work/_actions/codecov/codecov-action/v4/dist/codecov' failed with exit code 1
E2E Test (15)
Codecov: Failed to properly upload report: The process '/home/runner/work/_actions/codecov/codecov-action/v4/dist/codecov' failed with exit code 1
E2E Test (14)
Codecov: Failed to properly upload report: The process '/home/runner/work/_actions/codecov/codecov-action/v4/dist/codecov' failed with exit code 1
E2E Test (19)
Codecov: Failed to properly upload report: The process '/home/runner/work/_actions/codecov/codecov-action/v4/dist/codecov' failed with exit code 1
E2E Test (18)
Codecov: Failed to properly upload report: The process '/home/runner/work/_actions/codecov/codecov-action/v4/dist/codecov' failed with exit code 1
E2E Test (13)
Codecov: Failed to properly upload report: The process '/home/runner/work/_actions/codecov/codecov-action/v4/dist/codecov' failed with exit code 1
E2E Test (4)
Codecov: Failed to properly upload report: The process '/home/runner/work/_actions/codecov/codecov-action/v4/dist/codecov' failed with exit code 1
E2E Test (1)
Codecov: Failed to properly upload report: The process '/home/runner/work/_actions/codecov/codecov-action/v4/dist/codecov' failed with exit code 1
E2E Test (5)
Codecov: Failed to properly upload report: The process '/home/runner/work/_actions/codecov/codecov-action/v4/dist/codecov' failed with exit code 1
E2E Test (10)
Codecov: Failed to properly upload report: The process '/home/runner/work/_actions/codecov/codecov-action/v4/dist/codecov' failed with exit code 1
E2E Test (9)
Codecov: Failed to properly upload report: The process '/home/runner/work/_actions/codecov/codecov-action/v4/dist/codecov' failed with exit code 1
E2E Test (12)
Codecov: Failed to properly upload report: The process '/home/runner/work/_actions/codecov/codecov-action/v4/dist/codecov' failed with exit code 1
E2E Test (11)
Codecov: Failed to properly upload report: The process '/home/runner/work/_actions/codecov/codecov-action/v4/dist/codecov' failed with exit code 1
E2E Test (6)
Codecov: Failed to properly upload report: The process '/home/runner/work/_actions/codecov/codecov-action/v4/dist/codecov' failed with exit code 1
E2E Test (7)
Codecov: Failed to properly upload report: The process '/home/runner/work/_actions/codecov/codecov-action/v4/dist/codecov' failed with exit code 1
E2E Test (8)
Codecov: Failed to properly upload report: The process '/home/runner/work/_actions/codecov/codecov-action/v4/dist/codecov' failed with exit code 1
🎭 Playwright Run Summary
4 skipped 41 passed (43.5s)
🎭 Playwright Run Summary
45 passed (47.9s)
🎭 Playwright Run Summary
2 flaky clipboard/list.spec.ts:522:1 › copy canvas element and text note in edgeless mode ────────────── clipboard/markdown.spec.ts:19:1 › markdown format parse ──────────────────────────────────────── 1 skipped 43 passed (50.2s)
🎭 Playwright Run Summary
45 passed (50.8s)
🎭 Playwright Run Summary
3 skipped 42 passed (42.6s)
🎭 Playwright Run Summary
2 skipped 43 passed (49.6s)
🎭 Playwright Run Summary
45 passed (56.9s)
🎭 Playwright Run Summary
45 passed (52.1s)
🎭 Playwright Run Summary
1 flaky selection/native.spec.ts:289:1 › cursor move to up and down with children block ──────────────── 44 passed (57.7s)
🎭 Playwright Run Summary
45 passed (1.1m)
🎭 Playwright Run Summary
45 passed (54.1s)
🎭 Playwright Run Summary
1 flaky attachment.spec.ts:670:1 › indent attachment block to paragraph ──────────────────────────────── 45 passed (56.7s)
🎭 Playwright Run Summary
45 passed (1.1m)
🎭 Playwright Run Summary
1 flaky edgeless/note/note.spec.ts:246:1 › duplicate note should work correctly ──────────────────────── 44 passed (1.2m)
🎭 Playwright Run Summary
10 skipped 35 passed (1.2m)
🎭 Playwright Run Summary
1 flaky edgeless/shortcut.spec.ts:119:1 › should not switch shapes in editing ────────────────────────── 2 skipped 42 passed (1.2m)
🎭 Playwright Run Summary
1 skipped 44 passed (1.4m)
🎭 Playwright Run Summary
45 passed (1.3m)
🎭 Playwright Run Summary
1 flaky edgeless/connector/label.spec.ts:306:3 › connector label with straight shape › should exit the label editing state when pressing `Mod-Enter` or `Escape` 44 passed (1.6m)
🎭 Playwright Run Summary
1 skipped 44 passed (1.6m)