Skip to content

feat(server): use doc service #24560

feat(server): use doc service

feat(server): use doc service #24560

Triggered via pull request February 7, 2025 12:53
Status Cancelled
Total duration 9m 15s
Artifacts 19

build-test.yml

on: pull_request
Optimize CI
9s
Optimize CI
Matrix: build-native
Build Server native
52s
Build Server native
Build @affine/electron renderer
2m 15s
Build @affine/electron renderer
test-build-mobile-app  /  output-env
1s
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
1m 53s
Server Test
Server Copilot Api Test
31s
Server Copilot Api Test
Matrix: desktop-test
test-build-mobile-app  /  build-android-web
2m 23s
test-build-mobile-app / build-android-web
test-build-mobile-app  /  build-ios-web
2m 26s
test-build-mobile-app / build-ios-web
test-build-mobile-app  /  android
3m 46s
test-build-mobile-app / android
test-build-mobile-app  /  ios
5m 45s
test-build-mobile-app / ios
3, 2, 1 Launch
0s
3, 2, 1 Launch
Fit to window
Zoom out
Zoom in

Annotations

41 errors, 13 warnings, and 16 notices
Server Test
Process completed with exit code 1.
selection/native.spec.ts:266:1 › cursor move to up and down with children block: blocksuite/tests-legacy/selection/native.spec.ts#L295
1) selection/native.spec.ts:266:1 › cursor move to up and down with children block ─────────────── Error: expect(received).toBeGreaterThanOrEqual(expected) Expected: >= 12 Received: -1 293 | const textTwo = await getInlineSelectionText(page); 294 | expect(textTwo).toBe('arrow down test 1'); > 295 | expect(indexTwo).toBeGreaterThanOrEqual(12); | ^ 296 | expect(indexTwo).toBeLessThanOrEqual(17); 297 | await page.keyboard.press('ArrowDown'); 298 | const textThree = await getInlineSelectionText(page); at /home/runner/work/AFFiNE/AFFiNE/blocksuite/tests-legacy/selection/native.spec.ts:295:20
attachment.spec.ts:244:1 › should attachment can be deleted: blocksuite/tests-legacy/attachment.spec.ts#L71
1) attachment.spec.ts:244:1 › should attachment can be deleted ─────────────────────────────────── 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:250:3
attachment.spec.ts:404:1 › indent attachment block to list: blocksuite/tests-legacy/attachment.spec.ts#L71
2) attachment.spec.ts:404:1 › indent attachment block to list ──────────────────────────────────── 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:412: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/explorer-tag.spec.ts:55:1 › create a tag from explorer: tests/affine-mobile/e2e/explorer-tag.spec.ts#L1
1) [Mobile Safari] › e2e/explorer-tag.spec.ts:55:1 › create a tag from explorer ────────────────── Test timeout of 60000ms exceeded.
[Mobile Safari] › e2e/explorer-tag.spec.ts:55:1 › create a tag from explorer: tests/affine-mobile/e2e/utils.ts#L6
1) [Mobile Safari] › e2e/explorer-tag.spec.ts:55:1 › create a tag from explorer ────────────────── Error: locator.getAttribute: Test timeout of 60000ms exceeded. Call log: - waiting for locator('[data-collapsible]:has-text("tags")') at utils.ts:6 4 | export async function expandCollapsibleSection(page: Page, name: string) { 5 | const divider = page.locator(`[data-collapsible]:has-text("${name}")`); > 6 | if ((await divider.getAttribute('data-collapsed')) === 'true') { | ^ 7 | await divider.click(); 8 | } 9 | await expect(divider).toHaveAttribute('data-collapsed', 'false'); at expandCollapsibleSection (/home/runner/work/AFFiNE/AFFiNE/tests/affine-mobile/e2e/utils.ts:6:22) at createRootTag (/home/runner/work/AFFiNE/AFFiNE/tests/affine-mobile/e2e/explorer-tag.spec.ts:35:25) at /home/runner/work/AFFiNE/AFFiNE/tests/affine-mobile/e2e/explorer-tag.spec.ts:56:9
[Mobile Safari] › e2e/explorer-tag.spec.ts:55:1 › create a tag from explorer: tests/kit/src/mobile.ts#L18
1) [Mobile Safari] › e2e/explorer-tag.spec.ts:55:1 › create a tag from explorer ────────────────── Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── Error: Timed out 30000ms waiting for expect(locator).toBeVisible() Locator: locator('.affine-page-viewport[data-mode="edgeless"]') Expected: visible Received: <element(s) not found> Call log: - expect.toBeVisible with timeout 30000ms - waiting for locator('.affine-page-viewport[data-mode="edgeless"]') at ../../kit/src/mobile.ts:18 16 | await expect( 17 | page.locator('.affine-page-viewport[data-mode="edgeless"]') > 18 | ).toBeVisible({ | ^ 19 | timeout: 30 * 1000, 20 | }); 21 | await page.goto('/'); at Object.page (/home/runner/work/AFFiNE/AFFiNE/tests/kit/src/mobile.ts:18:7)
[Mobile Safari] › e2e/explorer-tag.spec.ts:55:1 › create a tag from explorer: tests/kit/src/playwright.ts#L105
1) [Mobile Safari] › e2e/explorer-tag.spec.ts:55:1 › create a tag from explorer ────────────────── Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── Error: page.evaluate: Target crashed at ../../kit/src/playwright.ts:105 103 | if (enableCoverage) { 104 | for (const page of context.pages()) { > 105 | await page.evaluate(() => | ^ 106 | // @ts-expect-error 107 | window.collectIstanbulCoverage(JSON.stringify(window.__coverage__)) 108 | ); at Object.context (/home/runner/work/AFFiNE/AFFiNE/tests/kit/src/playwright.ts:105:20)
edgeless/note/resize.spec.ts:138:1 › resize note then auto size and custom size: blocksuite/tests-legacy/utils/asserts.ts#L779
1) edgeless/note/resize.spec.ts:138:1 › resize note then auto size and custom size ─────────────── Error: expect(received).toBeCloseTo(expected, precision) Expected: 192 Received: 92 Expected precision: 0 Expected difference: < 0.5 Received difference: 100 at utils/asserts.ts:779 777 | expect(a.y).toBeCloseTo(b.y, 0); 778 | expect(a.w).toBeCloseTo(b.w, 0); > 779 | expect(a.h).toBeCloseTo(b.h, 0); | ^ 780 | } 781 | 782 | export function assertDOMRectEqual(a: DOMRect, b: DOMRect) { at assertRectEqual (/home/runner/work/AFFiNE/AFFiNE/blocksuite/tests-legacy/utils/asserts.ts:779:15) at assertNoteRectEqual (/home/runner/work/AFFiNE/AFFiNE/blocksuite/tests-legacy/utils/asserts.ts:772:3) at /home/runner/work/AFFiNE/AFFiNE/blocksuite/tests-legacy/edgeless/note/resize.spec.ts:188:3
Server E2E Test 3/3
Process completed with exit code 1.
Server E2E Test 1/3
Process completed with exit code 1.
Lint: packages/backend/server/src/core/doc-renderer/__tests__/controller.spec.ts#L14
Module '"../../permission"' has no exported member 'PublicPageMode'.
Lint: packages/backend/server/src/core/doc-renderer/__tests__/controller.spec.ts#L25
Property 'useRpc' does not exist on type 'DocServiceStartupConfigurations'.
Lint: packages/backend/server/src/core/doc-renderer/__tests__/service.spec.ts#L24
Property 'useRpc' does not exist on type 'DocServiceStartupConfigurations'.
Lint
Process completed with exit code 2.
Server E2E Test 2/3
Process completed with exit code 1.
Server Desktop E2E Test
Process completed with exit code 1.
e2e/page-properties.spec.ts:296:1 › can show database backlink info: tests/affine-local/e2e/page-properties.spec.ts#L1
1) e2e/page-properties.spec.ts:296:1 › can show database backlink info ─────────────────────────── Test timeout of 50000ms exceeded.
e2e/page-properties.spec.ts:296:1 › can show database backlink info: tests/affine-local/e2e/page-properties.spec.ts#L325
1) e2e/page-properties.spec.ts:296:1 › can show database backlink info ─────────────────────────── Error: locator.click: Test timeout of 50000ms exceeded. Call log: - waiting for locator('affine-multi-tag-select .select-option:has-text("Done")') - locator resolved to <div class=" select-option selected ">…</div> - 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 323 | await page 324 | .locator('affine-multi-tag-select .select-option:has-text("Done")') > 325 | .click(); | ^ 326 | 327 | // go back to title cell 328 | await page.keyboard.press('ArrowLeft'); at /home/runner/work/AFFiNE/AFFiNE/tests/affine-local/e2e/page-properties.spec.ts:325:6
e2e/page-properties.spec.ts:296:1 › can show database backlink info: tests/kit/src/utils/page-logic.ts#L44
1) e2e/page-properties.spec.ts:296:1 › can show database backlink info ─────────────────────────── Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── 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 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/page-properties.spec.ts:35:3
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
2) 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
Desktop Test (windows-latest, windows, x64, x86_64-pc-windows-msvc, true)
Canceling since a higher priority waiting request for 'Build & Test-refs/pull/9967/merge' exists
Analyze (typescript)
Canceling since a higher priority waiting request for 'Build & Test-refs/pull/9967/merge' exists
Analyze (typescript)
The operation was canceled.
E2E Test (1)
Canceling since a higher priority waiting request for 'Build & Test-refs/pull/9967/merge' exists
E2E Test (1)
The operation was canceled.
E2E Test (2)
Canceling since a higher priority waiting request for 'Build & Test-refs/pull/9967/merge' exists
E2E Test (2)
The operation was canceled.
E2E Test (3)
Canceling since a higher priority waiting request for 'Build & Test-refs/pull/9967/merge' exists
E2E Test (3)
The operation was canceled.
E2E Test (4)
Canceling since a higher priority waiting request for 'Build & Test-refs/pull/9967/merge' exists
E2E Test (4)
The operation was canceled.
Analyze (javascript)
Canceling since a higher priority waiting request for 'Build & Test-refs/pull/9967/merge' exists
Analyze (javascript)
The operation was canceled.
Desktop Test (ubuntu-latest, linux, x64, x86_64-unknown-linux-gnu, true)
Canceling since a higher priority waiting request for 'Build & Test-refs/pull/9967/merge' exists
test-build-mobile-app / ios
Canceling since a higher priority waiting request for 'Build & Test-refs/pull/9967/merge' exists
test-build-mobile-app / ios
The operation was canceled.
3, 2, 1 Launch
Process completed with exit code 1.
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.4s
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 49.3s
Slow Test: tests/affine-mobile/[Mobile Chrome] › e2e/detail.spec.ts#L1
tests/affine-mobile/[Mobile Chrome] › e2e/detail.spec.ts took 51.4s
Slow Test: tests/affine-mobile/[Mobile Chrome] › e2e/explorer-favorite.spec.ts#L1
tests/affine-mobile/[Mobile Chrome] › e2e/explorer-favorite.spec.ts took 47.3s
Slow Test: tests/affine-mobile/[Mobile Safari] › e2e/explorer-folder.spec.ts#L1
tests/affine-mobile/[Mobile Safari] › e2e/explorer-folder.spec.ts took 48.3s
Slow Test: tests/affine-mobile/[Mobile Safari] › e2e/home.spec.ts#L1
tests/affine-mobile/[Mobile Safari] › e2e/home.spec.ts took 30.7s
Slow Test: tests/affine-mobile/[Mobile Safari] › e2e/settings.spec.ts#L1
tests/affine-mobile/[Mobile Safari] › e2e/settings.spec.ts took 58.3s
Slow Test: tests/affine-mobile/[Mobile Safari] › e2e/home.spec.ts#L1
tests/affine-mobile/[Mobile Safari] › e2e/home.spec.ts took 46.2s
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
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
🎭 Playwright Run Summary
7 passed (1.5m)
🎭 Playwright Run Summary
1 flaky selection/native.spec.ts:266:1 › cursor move to up and down with children block ──────────────── 3 skipped 92 passed (1.3m)
🎭 Playwright Run Summary
2 skipped 95 passed (1.5m)
🎭 Playwright Run Summary
96 passed (1.5m)
🎭 Playwright Run Summary
8 passed (2.0m)
🎭 Playwright Run Summary
3 flaky attachment.spec.ts:244:1 › should attachment can be deleted ──────────────────────────────────── attachment.spec.ts:404:1 › indent attachment block to list ───────────────────────────────────── clipboard/list.spec.ts:308:1 › paste non-nested lists to a nested list ───────────────────────── 2 skipped 92 passed (1.5m)
🎭 Playwright Run Summary
7 passed (1.6m)
🎭 Playwright Run Summary
1 flaky [Mobile Safari] › e2e/explorer-tag.spec.ts:55:1 › create a tag from explorer ─────────────────── 6 passed (2.5m)
🎭 Playwright Run Summary
1 flaky edgeless/note/resize.spec.ts:138:1 › resize note then auto size and custom size ──────────────── 12 skipped 84 passed (2.1m)
🎭 Playwright Run Summary
4 skipped 93 passed (2.2m)
🎭 Playwright Run Summary
7 passed (1.6m)
🎭 Playwright Run Summary
1 skipped 96 passed (1.6m)
🎭 Playwright Run Summary
4 skipped 93 passed (1.6m)
🎭 Playwright Run Summary
6 skipped 91 passed (2.2m)
🎭 Playwright Run Summary
1 skipped 96 passed (2.7m)
🎭 Playwright Run Summary
2 flaky e2e/page-properties.spec.ts:296:1 › can show database backlink info ──────────────────────────── e2e/quick-search.spec.ts:527:1 › can use slash menu to insert a newly created doc card ───────── 1 skipped 45 passed (6.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
12.4 MB
test-results-e2e-3
19.5 MB
test-results-e2e-4
15.3 MB
test-results-e2e-5
20 MB
test-results-e2e-legacy-bs-1
9.21 MB
test-results-e2e-legacy-bs-10
3.2 MB
test-results-e2e-legacy-bs-5
5.75 MB
test-results-e2e-macos-latest-arm64
7.64 MB
test-results-e2e-mobile-2
6.54 MB
test-results-e2e-ubuntu-latest-x64
10.8 MB
test-results-e2e-windows-latest-x64
3.33 MB
web
62.8 MB