fix(admin): avoid frequent refetch #13299
build-test.yml
on: pull_request
Matrix: build-native
Build Server native
1m 32s
Matrix: Analyze
Matrix: E2E Test
Build @affine/web
3m 45s
Lint
4m 43s
Check yarn binary
8s
E2E Migration Test
3m 34s
Matrix: server-e2e-test
Matrix: desktop-test
3, 2, 1 Launch
0s
Annotations
12 errors, 12 warnings, and 10 notices
quick-search.spec.ts:168:5 › Create a new page and search this page:
tests/affine-local/e2e/quick-search.spec.ts#L1
1) quick-search.spec.ts:168:5 › Create a new page and search this page ───────────────────────────
Test timeout of 50000ms exceeded.
|
quick-search.spec.ts:168:5 › Create a new page and search this page:
tests/kit/utils/page-logic.ts#L5
1) quick-search.spec.ts:168:5 › Create a new page and search this page ───────────────────────────
Error: page.waitForSelector: Test timeout of 50000ms exceeded.
Call log:
- waiting for locator('v-line') to be visible
at ../../kit/utils/page-logic.ts:5
3 |
4 | export async function waitForEditorLoad(page: Page) {
> 5 | await page.waitForSelector('v-line', {
| ^
6 | timeout: 20000,
7 | });
8 | }
at waitForEditorLoad (/home/runner/work/AFFiNE/AFFiNE/tests/kit/utils/page-logic.ts:5:14)
at /home/runner/work/AFFiNE/AFFiNE/tests/affine-local/e2e/quick-search.spec.ts:190:26
|
local-first-workspace-list.spec.ts:31:5 › create one workspace in the workspace list:
tests/affine-local/e2e/local-first-workspace-list.spec.ts#L1
1) local-first-workspace-list.spec.ts:31:5 › create one workspace in the workspace list ──────────
Test timeout of 50000ms exceeded.
|
local-first-workspace-list.spec.ts:31:5 › create one workspace in the workspace list:
tests/affine-local/e2e/local-first-workspace-list.spec.ts#L51
1) local-first-workspace-list.spec.ts:31:5 › create one workspace in the workspace list ──────────
Error: page.waitForTimeout: Test timeout of 50000ms exceeded.
49 | await page.keyboard.press('Escape');
50 | await clickSideBarAllPageButton(page);
> 51 | await page.waitForTimeout(2000);
| ^
52 | const result = await getPagesCount(page);
53 | expect(result).toBe(1);
54 | await page.reload();
at /home/runner/work/AFFiNE/AFFiNE/tests/affine-local/e2e/local-first-workspace-list.spec.ts:51:14
|
basic.spec.ts:28:5 › new page:
tests/kit/electron.ts#L73
1) basic.spec.ts:28:5 › new page ─────────────────────────────────────────────────────────────────
Error: expect(received).toBeTruthy()
Received: false
Call Log:
- Timeout 5000ms exceeded while waiting on the predicate
at ../../kit/electron.ts:73
71 | return electronApp.windows().length > 1;
72 | })
> 73 | .toBeTruthy();
| ^
74 |
75 | const page = await getActivePage(electronApp.windows());
76 |
at Object.page (/home/runner/work/AFFiNE/AFFiNE/tests/kit/electron.ts:73:8)
|
basic.spec.ts:28:5 › new page:
tests/affine-desktop-cloud/e2e/basic.spec.ts#L1
1) basic.spec.ts:28:5 › new page ─────────────────────────────────────────────────────────────────
Tearing down "electronApp" exceeded the test timeout of 50000ms.
|
basic.spec.ts:28:5 › new page:
tests/kit/electron.ts#L78
1) basic.spec.ts:28:5 › new page ─────────────────────────────────────────────────────────────────
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: No active page found
at ../../kit/electron.ts:78
76 |
77 | if (!page) {
> 78 | throw new Error('No active page found');
| ^
79 | }
80 |
81 | // wait for blocksuite to be loaded
at Object.page (/home/runner/work/AFFiNE/AFFiNE/tests/kit/electron.ts:78:13)
|
local-first-avatar.spec.ts:11:5 › should create a page with a local first avatar and remove it:
tests/affine-local/e2e/local-first-avatar.spec.ts#L1
1) local-first-avatar.spec.ts:11:5 › should create a page with a local first avatar and remove it
Test timeout of 50000ms exceeded.
|
local-first-avatar.spec.ts:11:5 › should create a page with a local first avatar and remove it:
tests/affine-local/e2e/local-first-avatar.spec.ts#L40
1) local-first-avatar.spec.ts:11:5 › should create a page with a local first avatar and remove it
Error: locator.elementHandle: Test timeout of 50000ms exceeded.
Call log:
- waiting for getByTestId('workspace-avatar').locator('canvas').first()
- locator resolved to visible <canvas width="32" height="32" class="style_avatarImage_…></canvas>
38 | .locator('canvas')
39 | .first()
> 40 | .elementHandle();
| ^
41 | const avatarPixelData = await page.evaluate(
42 | ({ avatarCanvas }) => {
43 | return Array.from(
at /home/runner/work/AFFiNE/AFFiNE/tests/affine-local/e2e/local-first-avatar.spec.ts:40:6
|
local-first-avatar.spec.ts:11:5 › should create a page with a local first avatar and remove it:
tests/affine-local/e2e/local-first-avatar.spec.ts#L23
1) local-first-avatar.spec.ts:11:5 › should create a page with a local first avatar and remove it
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
TimeoutError: locator.click: Timeout 5000ms exceeded.
Call log:
- waiting for getByTestId('workspace-name')
- locator resolved to <div data-testid="workspace-name" class="styles_works…>Demo Workspace</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
- <div data-state="open" aria-hidden="true" data-aria-h…></div> from <modal-transition-container>…</modal-transition-container> subtree intercepts pointer events
- retrying click action, attempt #1
- waiting for element to be visible, enabled and stable
- element is visible, enabled and stable
- scrolling into view if needed
- done scrolling
- <div data-state="open" aria-hidden="true" data-aria-h…></div> from <modal-transition-container>…</modal-transition-container> subtree intercepts pointer events
- retrying click action, attempt #2
- waiting 20ms
- waiting for element to be visible, enabled and stable
- element is visible, enabled and stable
- scrolling into view if needed
- done scrolling
- <div data-state="open" aria-hidden="true" data-aria-h…></div> from <modal-transition-container>…</modal-transition-container> subtree intercepts pointer events
- retrying click action, attempt #3
- waiting 100ms
- waiting for element to be visible, enabled and stable
- element is visible, enabled and stable
- scrolling into view if needed
- done scrolling
- <div data-state="open" aria-hidden="true" data-aria-h…></div> from <modal-transition-container>…</modal-transition-container> subtree intercepts pointer events
- retrying click action, attempt #4
- waiting 100ms
- waiting for element to be visible, enabled and stable
- element is visible, enabled and stable
- scrolling into view if needed
- done scrolling
- <div data-state="open" aria-hidden="true" data-aria-h…></div> from <modal-transition-container>…</modal-transition-container> subtree intercepts pointer events
- retrying click action, attempt #5
- waiting 500ms
- waiting for element to be visible, enabled and stable
- element is visible, enabled and stable
- scrolling into view if needed
- done scrolling
- <div data-state="open" aria-hidden="true" data-aria-h…></div> from <modal-transition-container>…</modal-transition-container> subtree intercepts pointer events
- retrying click action, attempt #6
- waiting 500ms
- 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
21 | await page.getByTestId('create-workspace-create-button').click();
22 | await page.waitForTimeout(1000);
> 23 | await page.getByTestId('workspace-name').click();
| ^
24 | await page.getByTestId('workspace-card').nth(1).click();
25 | await page.getByTestId('settings-modal-trigger').click();
26 | await page.getByTestId('current-workspace-label').click();
at /home/runner/work/AFFiNE/AFFiNE/tests/affine-local/e2e/local-first-avatar.spec.ts:23:44
|
local-first-collections-items.spec.ts:67:5 › Show collections items in sidebar:
tests/affine-local/e2e/local-first-collections-items.spec.ts#L1
2) local-first-collections-items.spec.ts:67:5 › Show collections items in sidebar ────────────────
Test timeout of 50000ms exceeded.
|
local-first-collections-items.spec.ts:67:5 › Show collections items in sidebar:
tests/affine-local/e2e/local-first-collections-items.spec.ts#L48
2) local-first-collections-items.spec.ts:67:5 › Show collections items in sidebar ────────────────
Error: locator.click: Test timeout of 50000ms exceeded.
Call log:
- waiting for getByTestId('create-first-filter')
- locator resolved to <button type="button" id="radix-:rdc:" data-state="close…>…</button>
- attempting click action
- waiting for element to be visible, enabled and stable
- element is visible, enabled and stable
- scrolling into view if needed
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 | });
51 | await page
at createAndPinCollection (/home/runner/work/AFFiNE/AFFiNE/tests/affine-local/e2e/local-first-collections-items.spec.ts:48:49)
at /home/runner/work/AFFiNE/AFFiNE/tests/affine-local/e2e/local-first-collections-items.spec.ts:94:3
|
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 (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'.
|
Slow Test:
tests/affine-migration/basic.spec.ts#L1
tests/affine-migration/basic.spec.ts took 1.3m
|
Slow Test:
tests/affine-cloud/page-history.spec.ts#L1
tests/affine-cloud/page-history.spec.ts took 1.5m
|
Slow Test:
tests/affine-local/ai-land.spec.ts#L1
tests/affine-local/ai-land.spec.ts took 42.4s
|
Slow Test:
tests/affine-local/local-first-workspace.spec.ts#L1
tests/affine-local/local-first-workspace.spec.ts took 45.5s
|
Slow Test:
tests/affine-local/open-affine.spec.ts#L1
tests/affine-local/open-affine.spec.ts took 35.8s
|
Slow Test:
tests/affine-local/local-first-show-delete-modal.spec.ts#L1
tests/affine-local/local-first-show-delete-modal.spec.ts took 21.6s
|
Slow Test:
tests/affine-cloud/share-page.spec.ts#L1
tests/affine-cloud/share-page.spec.ts took 2.4m
|
Slow Test:
tests/affine-cloud/workspace.spec.ts#L1
tests/affine-cloud/workspace.spec.ts took 1.1m
|
Slow Test:
tests/affine-cloud/collaboration.spec.ts#L1
tests/affine-cloud/collaboration.spec.ts took 3.2m
|
Slow Test:
tests/affine-cloud/login.spec.ts#L1
tests/affine-cloud/login.spec.ts took 1.9m
|
🎭 Playwright Run Summary
4 passed (1.5m)
|
🎭 Playwright Run Summary
1 skipped
2 passed (1.9m)
|
🎭 Playwright Run Summary
31 passed (3.6m)
|
🎭 Playwright Run Summary
1 flaky
quick-search.spec.ts:168:5 › Create a new page and search this page ────────────────────────────
29 passed (3.9m)
|
🎭 Playwright Run Summary
1 flaky
local-first-workspace-list.spec.ts:31:5 › create one workspace in the workspace list ───────────
2 skipped
27 passed (3.8m)
|
🎭 Playwright Run Summary
31 passed (3.9m)
|
🎭 Playwright Run Summary
1 flaky
basic.spec.ts:28:5 › new page ──────────────────────────────────────────────────────────────────
|
🎭 Playwright Run Summary
2 flaky
local-first-avatar.spec.ts:11:5 › should create a page with a local first avatar and remove it ─
local-first-collections-items.spec.ts:67:5 › Show collections items in sidebar ─────────────────
3 skipped
26 passed (4.7m)
|
🎭 Playwright Run Summary
5 passed (4.0m)
|
🎭 Playwright Run Summary
1 skipped
7 passed (5.6m)
|
Artifacts
Produced during runtime
Name | Size | |
---|---|---|
affine.darwin-arm64.node
Expired
|
1.45 MB |
|
affine.darwin-x64.node
Expired
|
1.55 MB |
|
affine.linux-x64-gnu.node
Expired
|
1.57 MB |
|
affine.win32-x64-msvc.node
Expired
|
1.64 MB |
|
server-native.node
Expired
|
4.21 MB |
|
web
Expired
|
58.5 MB |
|