fix(server): wrap read-modify-write apis with distributed lock (#5979) #36
build-test.yml
on: push
Matrix: build-native
Build Storage
1m 14s
Matrix: Analyze
Matrix: E2E Test
Build @affine/core
1m 23s
Matrix: server-e2e-test
Matrix: desktop-test
3, 2, 1 Launch
0s
Annotations
4 errors, 9 warnings, and 10 notices
quick-search.spec.ts:394:5 › can use cmdk to search page content and scroll to it:
tests/affine-local/e2e/quick-search.spec.ts#L63
1) quick-search.spec.ts:394:5 › can use cmdk to search page content and scroll to it, then the block will be selected
Error: expect(received).toBeLessThan(expected)
Expected: < 800
Received: 1125
61 | return false;
62 | }
> 63 | expect(elementRect.y).toBeLessThan(viewportHeight);
| ^
64 | expect(elementRect.y + elementRect.height).toBeGreaterThan(0);
65 |
66 | return true;
at checkElementIsInView (/home/runner/work/AFFiNE/AFFiNE/tests/affine-local/e2e/quick-search.spec.ts:63:25)
at /home/runner/work/AFFiNE/AFFiNE/tests/affine-local/e2e/quick-search.spec.ts:422:23
|
page-properties.spec.ts:50:5 › allow create tag on journals page:
tests/kit/utils/editor.ts#L10
1) page-properties.spec.ts:50:5 › allow create tag on journals page ──────────────────────────────
TimeoutError: locator.click: Timeout 5000ms exceeded.
Call log:
- waiting for getByTestId('switch-page-mode-button')
- locator resolved to <button class="affine-14rstau" data-testid="switch-page-…>…</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/utils/editor.ts:10
8 |
9 | export async function clickPageModeButton(page: Page) {
> 10 | return page.getByTestId('switch-page-mode-button').click({
| ^
11 | delay: 50,
12 | });
13 | }
at clickPageModeButton (/home/runner/work/AFFiNE/AFFiNE/tests/kit/utils/editor.ts:10:54)
at /home/runner/work/AFFiNE/AFFiNE/tests/affine-local/e2e/page-properties.spec.ts:31:28
|
page-properties.spec.ts:67:5 › add custom property:
tests/kit/utils/editor.ts#L10
2) page-properties.spec.ts:67:5 › add custom property ────────────────────────────────────────────
TimeoutError: locator.click: Timeout 5000ms exceeded.
Call log:
- waiting for getByTestId('switch-page-mode-button')
- locator resolved to <button class="affine-14rstau" data-testid="switch-page-…>…</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/utils/editor.ts:10
8 |
9 | export async function clickPageModeButton(page: Page) {
> 10 | return page.getByTestId('switch-page-mode-button').click({
| ^
11 | delay: 50,
12 | });
13 | }
at clickPageModeButton (/home/runner/work/AFFiNE/AFFiNE/tests/kit/utils/editor.ts:10:54)
at /home/runner/work/AFFiNE/AFFiNE/tests/affine-local/e2e/page-properties.spec.ts:31:28
|
page-properties.spec.ts:67:5 › add custom property:
tests/kit/utils/editor.ts#L10
2) page-properties.spec.ts:67:5 › add custom property ────────────────────────────────────────────
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
TimeoutError: locator.click: Timeout 5000ms exceeded.
Call log:
- waiting for getByTestId('switch-page-mode-button')
- locator resolved to <button class="affine-14rstau" data-testid="switch-page-…>…</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/utils/editor.ts:10
8 |
9 | export async function clickPageModeButton(page: Page) {
> 10 | return page.getByTestId('switch-page-mode-button').click({
| ^
11 | delay: 50,
12 | });
13 | }
at clickPageModeButton (/home/runner/work/AFFiNE/AFFiNE/tests/kit/utils/editor.ts:10:54)
at /home/runner/work/AFFiNE/AFFiNE/tests/affine-local/e2e/page-properties.spec.ts:31:28
|
Slow Test:
tests/affine-migration/basic.spec.ts#L1
tests/affine-migration/basic.spec.ts took 1.0m
|
Unit Test
Codecov: Failed to properly create commit: The process '/home/runner/work/_actions/codecov/codecov-action/v4/dist/codecov' failed with exit code 1
|
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'.
|
Server Test
Codecov: Failed to properly create commit: The process '/home/runner/work/_actions/codecov/codecov-action/v4/dist/codecov' failed with exit code 1
|
Slow Test:
tests/affine-cloud/page-history.spec.ts#L1
tests/affine-cloud/page-history.spec.ts took 1.2m
|
Slow Test:
tests/affine-cloud/workspace.spec.ts#L1
tests/affine-cloud/workspace.spec.ts took 26.4s
|
Slow Test:
tests/affine-cloud/login.spec.ts#L1
tests/affine-cloud/login.spec.ts took 1.5m
|
Slow Test:
tests/affine-cloud/collaboration.spec.ts#L1
tests/affine-cloud/collaboration.spec.ts took 4.0m
|
🎭 Playwright Run Summary
4 passed (1.2m)
|
🎭 Playwright Run Summary
25 passed (2.7m)
|
🎭 Playwright Run Summary
1 flaky
quick-search.spec.ts:394:5 › can use cmdk to search page content and scroll to it, then the block will be selected
23 passed (2.8m)
|
🎭 Playwright Run Summary
25 passed (2.9m)
|
🎭 Playwright Run Summary
1 passed (49.5s)
|
🎭 Playwright Run Summary
3 skipped
22 passed (2.7m)
|
🎭 Playwright Run Summary
2 flaky
page-properties.spec.ts:50:5 › allow create tag on journals page ───────────────────────────────
page-properties.spec.ts:67:5 › add custom property ─────────────────────────────────────────────
22 passed (2.8m)
|
🎭 Playwright Run Summary
1 skipped
3 passed (1.9m)
|
🎭 Playwright Run Summary
4 passed (1.8m)
|
🎭 Playwright Run Summary
6 passed (4.3m)
|
Artifacts
Produced during runtime
Name | Size | |
---|---|---|
affine.darwin-arm64.node
Expired
|
1.37 MB |
|
affine.darwin-x64.node
Expired
|
1.48 MB |
|
affine.linux-x64-gnu.node
Expired
|
1.51 MB |
|
affine.win32-x64-msvc.node
Expired
|
1.53 MB |
|
core
Expired
|
40.7 MB |
|
storage.node
Expired
|
493 KB |
|