Skip to content

fix(editor): add missing zod schema for edgeless frame #24556

fix(editor): add missing zod schema for edgeless frame

fix(editor): add missing zod schema for edgeless frame #24556

Triggered via pull request February 7, 2025 12:50
Status Success
Total duration 14m 22s
Artifacts 18

build-test.yml

on: pull_request
Optimize CI
9s
Optimize CI
Matrix: build-native
Build Server native
1m 5s
Build Server native
Build @affine/electron renderer
2m 17s
Build @affine/electron renderer
test-build-mobile-app  /  output-env
3s
test-build-mobile-app / output-env
Matrix: Analyze
Matrix: Legacy Blocksuite E2E Test
Matrix: E2E Mobile Test
Matrix: E2E Test
Matrix: Unit Test
Matrix: Server Copilot E2E Test
Matrix: server-e2e-test
Server Test
11m 43s
Server Test
Server Copilot Api Test
28s
Server Copilot Api Test
Matrix: desktop-test
test-build-mobile-app  /  build-android-web
2m 22s
test-build-mobile-app / build-android-web
test-build-mobile-app  /  build-ios-web
2m 17s
test-build-mobile-app / build-ios-web
test-build-mobile-app  /  android
3m 37s
test-build-mobile-app / android
test-build-mobile-app  /  ios
7m 15s
test-build-mobile-app / ios
3, 2, 1 Launch
0s
3, 2, 1 Launch
Fit to window
Zoom out
Zoom in

Annotations

13 errors, 24 warnings, and 24 notices
attachment.spec.ts:183:1 › should rename attachment works: blocksuite/tests-legacy/attachment.spec.ts#L71
1) attachment.spec.ts:183:1 › should rename attachment works ───────────────────────────────────── TimeoutError: page.waitForEvent: Timeout 5000ms exceeded while waiting for event "filechooser" =========================== logs =========================== waiting for event "filechooser" ============================================================ 69 | await expect(slashMenu).toBeVisible(); 70 | > 71 | const fileChooser = page.waitForEvent('filechooser'); | ^ 72 | await pressEnter(page); 73 | await sleep(100); 74 | await (await fileChooser).setFiles(FILE_PATH); at insertAttachment (/home/runner/work/AFFiNE/AFFiNE/blocksuite/tests-legacy/attachment.spec.ts:71:30) at /home/runner/work/AFFiNE/AFFiNE/blocksuite/tests-legacy/attachment.spec.ts:201:3
attachment.spec.ts:432:1 › attachment can be dragged from note to surface top level block: blocksuite/tests-legacy/attachment.spec.ts#L71
2) attachment.spec.ts:432:1 › attachment can be dragged from note to surface top level block ───── TimeoutError: page.waitForEvent: Timeout 5000ms exceeded while waiting for event "filechooser" =========================== logs =========================== waiting for event "filechooser" ============================================================ 69 | await expect(slashMenu).toBeVisible(); 70 | > 71 | const fileChooser = page.waitForEvent('filechooser'); | ^ 72 | await pressEnter(page); 73 | await sleep(100); 74 | await (await fileChooser).setFiles(FILE_PATH); at insertAttachment (/home/runner/work/AFFiNE/AFFiNE/blocksuite/tests-legacy/attachment.spec.ts:71:30) at /home/runner/work/AFFiNE/AFFiNE/blocksuite/tests-legacy/attachment.spec.ts:440:3
clipboard/list.spec.ts:308:1 › paste non-nested lists to a nested list: blocksuite/tests-legacy/utils/asserts.ts#L208
3) clipboard/list.spec.ts:308:1 › paste non-nested lists to a nested list ──────────────────────── Error: expect(received).toEqual(expected) // deep equality - Expected - 2 + Received + 2 Array [ - "123", - "456aaa", + "aaa123", + "456", "bbb", ] at utils/asserts.ts:208 206 | }); 207 | }, currentEditorIndex); > 208 | expect(actualTexts).toEqual(texts); | ^ 209 | } 210 | 211 | export async function assertEdgelessCanvasText(page: Page, text: string) { at assertRichTexts (/home/runner/work/AFFiNE/AFFiNE/blocksuite/tests-legacy/utils/asserts.ts:208:23) at /home/runner/work/AFFiNE/AFFiNE/blocksuite/tests-legacy/clipboard/list.spec.ts:343:3
[Mobile Safari] › e2e/detail.spec.ts:39:1 › can add text property: tests/affine-mobile/e2e/detail.spec.ts#L17
1) [Mobile Safari] › e2e/detail.spec.ts:39:1 › can add text property ───────────────────────────── Error: Timed out 15000ms waiting for expect(locator).toBeVisible() Locator: locator('.affine-edgeless-viewport') Expected: visible Received: <element(s) not found> Call log: - expect.toBeVisible with timeout 15000ms - waiting for locator('.affine-edgeless-viewport') 15 | await docsTab.click(); 16 | await page.getByTestId('doc-card').first().click(); > 17 | await expect(page.locator('.affine-edgeless-viewport')).toBeVisible(); | ^ 18 | }); 19 | 20 | test('can open page view more menu', async ({ page }) => { at /home/runner/work/AFFiNE/AFFiNE/tests/affine-mobile/e2e/detail.spec.ts:17:59
e2e/blocksuite/outline/outline-panel.spec.ts:233:3 › TOC and editor scroll › should highlight heading when scroll to area before viewport center: tests/affine-local/e2e/blocksuite/outline/outline-panel.spec.ts#L1
1) e2e/blocksuite/outline/outline-panel.spec.ts:233:3 › TOC and editor scroll › should highlight heading when scroll to area before viewport center Test timeout of 50000ms exceeded.
e2e/blocksuite/outline/outline-panel.spec.ts:233:3 › TOC and editor scroll › should highlight heading when scroll to area before viewport center: tests/kit/src/utils/page-logic.ts#L62
1) e2e/blocksuite/outline/outline-panel.spec.ts:233:3 › TOC and editor scroll › should highlight heading when scroll to area before viewport center Error: keyboard.type: Test timeout of 50000ms exceeded. at ../../kit/src/utils/page-logic.ts:62 60 | 61 | export async function type(page: Page, content: string, delay = 50) { > 62 | await page.keyboard.type(content, { delay }); | ^ 63 | } 64 | 65 | export const createLinkedPage = async (page: Page, pageName?: string) => { at type (/home/runner/work/AFFiNE/AFFiNE/tests/kit/src/utils/page-logic.ts:62:23) at createHeadings (/home/runner/work/AFFiNE/AFFiNE/tests/affine-local/e2e/blocksuite/outline/utils.ts:24:11) at /home/runner/work/AFFiNE/AFFiNE/tests/affine-local/e2e/blocksuite/outline/outline-panel.spec.ts:240:22
e2e/blocksuite/outline/outline-panel.spec.ts:265:3 › TOC and editor scroll › should scroll to heading and highlight heading when click item in outline panel: tests/affine-local/e2e/blocksuite/outline/outline-panel.spec.ts#L1
2) e2e/blocksuite/outline/outline-panel.spec.ts:265:3 › TOC and editor scroll › should scroll to heading and highlight heading when click item in outline panel Test timeout of 50000ms exceeded.
e2e/blocksuite/outline/outline-panel.spec.ts:265:3 › TOC and editor scroll › should scroll to heading and highlight heading when click item in outline panel: tests/kit/src/utils/page-logic.ts#L62
2) e2e/blocksuite/outline/outline-panel.spec.ts:265:3 › TOC and editor scroll › should scroll to heading and highlight heading when click item in outline panel Error: keyboard.type: Test timeout of 50000ms exceeded. at ../../kit/src/utils/page-logic.ts:62 60 | 61 | export async function type(page: Page, content: string, delay = 50) { > 62 | await page.keyboard.type(content, { delay }); | ^ 63 | } 64 | 65 | export const createLinkedPage = async (page: Page, pageName?: string) => { at type (/home/runner/work/AFFiNE/AFFiNE/tests/kit/src/utils/page-logic.ts:62:23) at createHeadings (/home/runner/work/AFFiNE/AFFiNE/tests/affine-local/e2e/blocksuite/outline/utils.ts:24:11) at /home/runner/work/AFFiNE/AFFiNE/tests/affine-local/e2e/blocksuite/outline/outline-panel.spec.ts:268:22
e2e/quick-search.spec.ts:527:1 › can use slash menu to insert a newly created doc card: tests/affine-local/e2e/quick-search.spec.ts#L552
1) e2e/quick-search.spec.ts:527:1 › can use slash menu to insert a newly created doc card ──────── Error: Timed out 5000ms waiting for expect(locator).toContainText(expected) Locator: locator('.affine-embed-linked-doc-content-title') - Expected string - 1 + Received string + 13 - test title + + + + + + + + + + + Write, Draw, Plan all at Once. + + Call log: - expect.toContainText with timeout 5000ms - waiting for locator('.affine-embed-linked-doc-content-title') 9 × locator resolved to <div class="affine-embed-linked-doc-content-title">…</div> - unexpected value " Write, Draw, Plan all at Once. " 550 | await expect( 551 | page.locator('.affine-embed-linked-doc-content-title') > 552 | ).toContainText(testTitle); | ^ 553 | }); 554 | 555 | test('can use slash menu to insert an external link', async ({ page }) => { at /home/runner/work/AFFiNE/AFFiNE/tests/affine-local/e2e/quick-search.spec.ts:552:5
e2e/import-dialog.spec.ts:26:1 › Open import dialog by click header menu import button: tests/kit/src/utils/page-logic.ts#L44
1) e2e/import-dialog.spec.ts:26:1 › Open import dialog by click header menu import button ──────── TimeoutError: locator.click: Timeout 5000ms exceeded. Call log: - waiting for getByTestId('sidebar-new-page-button') - locator resolved to <button data-size="custom" data-icon-size="20" data-mobile="false" data-state="closed" data-variant="custom" data-icon-variant="plain" data-testid="sidebar-new-page-button" class="button_button__ph3zqme button_iconButton__ph3zqmh add-page-button_root__18n7nrk0">…</button> - attempting click action - waiting for element to be visible, enabled and stable - element is visible, enabled and stable - scrolling into view if needed - done scrolling - performing click action - click action done - waiting for scheduled navigations to finish at ../../kit/src/utils/page-logic.ts:44 42 | } 43 | // fixme(himself65): if too fast, the page will crash > 44 | await page.getByTestId('sidebar-new-page-button').click({ | ^ 45 | delay: 100, 46 | }); 47 | await waitForEmptyEditor(page); at clickNewPageButton (/home/runner/work/AFFiNE/AFFiNE/tests/kit/src/utils/page-logic.ts:44:53) at /home/runner/work/AFFiNE/AFFiNE/tests/affine-local/e2e/import-dialog.spec.ts:10:3
e2e/links.spec.ts:279:1 › allow switching to embed view when linking to the other document with mode: tests/affine-local/e2e/links.spec.ts#L316
2) e2e/links.spec.ts:279:1 › allow switching to embed view when linking to the other document with mode TimeoutError: locator.click: Timeout 5000ms exceeded. Call log: - waiting for locator('affine-embed-linked-doc-block') - locator resolved to <affine-embed-linked-doc-block contenteditable="false" data-block-id="IB0Ds_PtiT" data-drop-target-for-element="true">…</affine-embed-linked-doc-block> - attempting click action 2 × waiting for element to be visible, enabled and stable - element is visible, enabled and stable - scrolling into view if needed - done scrolling - <iframe src="about:blank" id="webpack-dev-server-client-overlay"></iframe> intercepts pointer events - retrying click action - waiting 20ms 2 × waiting for element to be visible, enabled and stable - element is visible, enabled and stable - scrolling into view if needed - done scrolling - <iframe src="about:blank" id="webpack-dev-server-client-overlay"></iframe> intercepts pointer events - retrying click action - waiting 100ms 9 × waiting for element to be visible, enabled and stable - element is visible, enabled and stable - scrolling into view if needed - done scrolling - <iframe src="about:blank" id="webpack-dev-server-client-overlay"></iframe> intercepts pointer events - retrying click action - waiting 500ms 314 | 315 | await expect(cardLink).toBeVisible(); > 316 | await cardLink.click(); | ^ 317 | 318 | // refocus 319 | await cardLink.click(); at /home/runner/work/AFFiNE/AFFiNE/tests/affine-local/e2e/links.spec.ts:316:18
e2e/local-first-collections-items.spec.ts:67:1 › Show collections items in sidebar: tests/affine-local/e2e/local-first-collections-items.spec.ts#L1
1) e2e/local-first-collections-items.spec.ts:67:1 › Show collections items in sidebar ──────────── Test timeout of 50000ms exceeded.
e2e/local-first-collections-items.spec.ts:67:1 › Show collections items in sidebar: tests/affine-local/e2e/local-first-collections-items.spec.ts#L47
1) e2e/local-first-collections-items.spec.ts:67:1 › Show collections items in sidebar ──────────── Error: expect(locator).toBeVisible() Locator: getByTestId('page-list-item-title').getByText('test page') Expected: visible Received: <element(s) not found> Call log: - expect.toBeVisible with timeout 5000ms - waiting for getByTestId('page-list-item-title').getByText('test page') 45 | 46 | const cell = page.getByTestId('page-list-item-title').getByText('test page'); > 47 | await expect(cell).toBeVisible(); | ^ 48 | await page.getByTestId('create-first-filter').click({ 49 | delay: 200, 50 | }); at createAndPinCollection (/home/runner/work/AFFiNE/AFFiNE/tests/affine-local/e2e/local-first-collections-items.spec.ts:47:22) at /home/runner/work/AFFiNE/AFFiNE/tests/affine-local/e2e/local-first-collections-items.spec.ts:94:3
Slow Test: tests/affine-mobile/[Mobile Chrome] › e2e/explorer-tag.spec.ts#L1
tests/affine-mobile/[Mobile Chrome] › e2e/explorer-tag.spec.ts took 51.1s
Slow Test: tests/affine-mobile/[Mobile Chrome] › e2e/detail.spec.ts#L1
tests/affine-mobile/[Mobile Chrome] › e2e/detail.spec.ts took 53.0s
Slow Test: tests/affine-mobile/[Mobile Chrome] › e2e/explorer-favorite.spec.ts#L1
tests/affine-mobile/[Mobile Chrome] › e2e/explorer-favorite.spec.ts took 49.1s
Slow Test: tests/affine-mobile/[Mobile Safari] › e2e/home.spec.ts#L1
tests/affine-mobile/[Mobile Safari] › e2e/home.spec.ts took 48.1s
Slow Test: tests/affine-mobile/[Mobile Safari] › e2e/explorer-folder.spec.ts#L1
tests/affine-mobile/[Mobile Safari] › e2e/explorer-folder.spec.ts took 50.3s
Slow Test: tests/affine-mobile/[Mobile Safari] › e2e/back-button-visibility.spec.ts#L1
tests/affine-mobile/[Mobile Safari] › e2e/back-button-visibility.spec.ts took 50.4s
Slow Test: tests/affine-mobile/[Mobile Safari] › e2e/explorer-folder.spec.ts#L1
tests/affine-mobile/[Mobile Safari] › e2e/explorer-folder.spec.ts took 28.0s
Slow Test: tests/affine-desktop-cloud/e2e/basic.spec.ts#L1
tests/affine-desktop-cloud/e2e/basic.spec.ts took 42.2s
Slow Test: tests/affine-cloud/e2e/workspace.spec.ts#L1
tests/affine-cloud/e2e/workspace.spec.ts took 42.6s
Slow Test: tests/affine-cloud/e2e/storage.spec.ts#L1
tests/affine-cloud/e2e/storage.spec.ts took 38.2s
Slow Test: tests/affine-cloud/e2e/template.spec.ts#L1
tests/affine-cloud/e2e/template.spec.ts took 17.8s
Analyze (typescript)
1 issue was detected with this workflow: CodeQL language 'javascript' is referenced by more than one entry in the 'language' matrix parameter for job 'analyze'. This may result in duplicate alerts. Please edit the 'language' matrix parameter to keep only one of the following: 'javascript', 'typescript'.
Analyze (typescript)
Unable to validate code scanning workflow: DuplicateLanguageInMatrix
Analyze (javascript)
1 issue was detected with this workflow: CodeQL language 'javascript' is referenced by more than one entry in the 'language' matrix parameter for job 'analyze'. This may result in duplicate alerts. Please edit the 'language' matrix parameter to keep only one of the following: 'javascript', 'typescript'.
Analyze (javascript)
Unable to validate code scanning workflow: DuplicateLanguageInMatrix
Slow Test: tests/affine-cloud/e2e/collaboration.spec.ts#L1
tests/affine-cloud/e2e/collaboration.spec.ts took 1.5m
Slow Test: tests/affine-cloud/e2e/login.spec.ts#L1
tests/affine-cloud/e2e/login.spec.ts took 1.1m
Slow Test: tests/affine-local/e2e/drag-page.spec.ts#L1
tests/affine-local/e2e/drag-page.spec.ts took 48.3s
Slow Test: tests/affine-local/e2e/duplicate-page.spec.ts#L1
tests/affine-local/e2e/duplicate-page.spec.ts took 48.2s
Slow Test: tests/affine-local/e2e/local-first-avatar.spec.ts#L1
tests/affine-local/e2e/local-first-avatar.spec.ts took 16.5s
test-build-mobile-app / ios
swiftformat 0.55.4 is already installed and up-to-date. To reinstall 0.55.4, run: brew reinstall swiftformat
Slow Test: tests/affine-cloud/e2e/share-page.spec.ts#L1
tests/affine-cloud/e2e/share-page.spec.ts took 3.2m
Slow Test: tests/affine-cloud/e2e/page-history.spec.ts#L1
tests/affine-cloud/e2e/page-history.spec.ts took 44.8s
Slow Test: tests/affine-cloud/e2e/open-in-app.spec.ts#L1
tests/affine-cloud/e2e/open-in-app.spec.ts took 41.2s
🎭 Playwright Run Summary
7 passed (1.5m)
🎭 Playwright Run Summary
7 passed (1.6m)
🎭 Playwright Run Summary
7 passed (1.6m)
🎭 Playwright Run Summary
3 skipped 93 passed (1.3m)
🎭 Playwright Run Summary
4 skipped 93 passed (1.5m)
🎭 Playwright Run Summary
3 flaky attachment.spec.ts:183:1 › should rename attachment works ────────────────────────────────────── attachment.spec.ts:432:1 › attachment can be dragged from note to surface top level block ────── clipboard/list.spec.ts:308:1 › paste non-nested lists to a nested list ───────────────────────── 2 skipped 92 passed (1.4m)
🎭 Playwright Run Summary
7 passed (1.6m)
🎭 Playwright Run Summary
1 skipped 96 passed (1.7m)
🎭 Playwright Run Summary
12 skipped 85 passed (2.0m)
🎭 Playwright Run Summary
1 flaky [Mobile Safari] › e2e/detail.spec.ts:39:1 › can add text property ────────────────────────────── 7 passed (2.6m)
🎭 Playwright Run Summary
4 skipped 93 passed (2.2m)
🎭 Playwright Run Summary
1 skipped 96 passed (2.6m)
🎭 Playwright Run Summary
96 passed (1.5m)
🎭 Playwright Run Summary
6 skipped 91 passed (2.2m)
🎭 Playwright Run Summary
1 passed (1.1m)
🎭 Playwright Run Summary
2 skipped 95 passed (1.6m)
🎭 Playwright Run Summary
1 skipped 48 passed (6.2m)
🎭 Playwright Run Summary
4 passed (2.1m)
🎭 Playwright Run Summary
2 flaky e2e/blocksuite/outline/outline-panel.spec.ts:233:3 › TOC and editor scroll › should highlight heading when scroll to area before viewport center e2e/blocksuite/outline/outline-panel.spec.ts:265:3 › TOC and editor scroll › should scroll to heading and highlight heading when click item in outline panel 47 passed (7.1m)
🎭 Playwright Run Summary
1 flaky e2e/quick-search.spec.ts:527:1 › can use slash menu to insert a newly created doc card ───────── 1 skipped 46 passed (6.0m)
🎭 Playwright Run Summary
2 skipped 6 passed (3.0m)
🎭 Playwright Run Summary
2 flaky e2e/import-dialog.spec.ts:26:1 › Open import dialog by click header menu import button ───────── e2e/links.spec.ts:279:1 › allow switching to embed view when linking to the other document with mode 46 passed (6.4m)
🎭 Playwright Run Summary
1 flaky e2e/local-first-collections-items.spec.ts:67:1 › Show collections items in sidebar ───────────── 3 skipped 44 passed (6.0m)
🎭 Playwright Run Summary
11 passed (5.1m)

Artifacts

Produced during runtime
Name Size
affine.darwin-arm64.node
1.92 MB
affine.darwin-x64.node
2.04 MB
affine.linux-x64-gnu.node
2.07 MB
affine.win32-x64-msvc.node
2.43 MB
android
61.2 MB
ios
61.3 MB
server-native.node
4.33 MB
test-results-e2e-2
13.5 MB
test-results-e2e-3
13.3 MB
test-results-e2e-4
8.79 MB
test-results-e2e-5
6.9 MB
test-results-e2e-legacy-bs-1
10.9 MB
test-results-e2e-macos-latest-arm64
9.22 MB
test-results-e2e-mobile-1
4.64 MB
test-results-e2e-server-desktop
1.23 MB
test-results-e2e-ubuntu-latest-x64
10.5 MB
test-results-e2e-windows-latest-x64
12.8 MB
web
62.8 MB