Skip to content

feat(server): support team workspace subscription #18702

feat(server): support team workspace subscription

feat(server): support team workspace subscription #18702

Triggered via pull request November 25, 2024 12:35
Status Failure
Total duration 14m 57s
Artifacts 8

build-test.yml

on: pull_request
Matrix: build-native
Build Server native
1m 13s
Build Server native
Build @affine/electron renderer
3m 12s
Build @affine/electron renderer
Matrix: Analyze
Matrix: E2E Mobile Test
Matrix: E2E Test
test-build-mobile-app  /  build-android-web
2m 34s
test-build-mobile-app / build-android-web
test-build-mobile-app  /  build-ios-web
2m 32s
test-build-mobile-app / build-ios-web
Lint
5m 12s
Lint
Check yarn binary
7s
Check yarn binary
Run server native tests
1m 55s
Run server native tests
Matrix: server-e2e-test
Matrix: Server Copilot E2E Test
Server Test
8m 1s
Server Test
Server Copilot Api Test
4m 42s
Server Copilot Api Test
Matrix: desktop-test
test-build-mobile-app  /  android
2m 30s
test-build-mobile-app / android
test-build-mobile-app  /  ios
2m 26s
test-build-mobile-app / ios
3, 2, 1 Launch
0s
3, 2, 1 Launch
Fit to window
Zoom out
Zoom in

Annotations

9 errors, 13 warnings, and 14 notices
Lint: packages/backend/server/src/plugins/payment/service.ts#L76
Expected 1 arguments, but got 2.
Lint: packages/frontend/core/src/desktop/dialogs/setting/general-setting/plans/ai/actions/redeem.tsx#L44
Property 'workspaceId' is missing in type '{ recurring: SubscriptionRecurring; plan: SubscriptionPlan; variant: SubscriptionVariant; coupon: null; successCallbackLink: string; }' but required in type 'Omit<CreateCheckoutSessionInput, "idempotencyKey">'.
Lint: packages/frontend/core/src/desktop/dialogs/setting/general-setting/plans/ai/actions/subscribe.tsx#L75
Property 'workspaceId' is missing in type '{ recurring: SubscriptionRecurring; plan: SubscriptionPlan; variant: null; coupon: null; successCallbackLink: string; }' but required in type 'Omit<CreateCheckoutSessionInput, "idempotencyKey">'.
Lint: packages/frontend/core/src/desktop/dialogs/setting/general-setting/plans/plan-card.tsx#L301
Type '{ coupon: InputMaybe<Scalars["String"]["input"]>; idempotencyKey?: InputMaybe<string> | undefined; plan: SubscriptionPlan | null; recurring: SubscriptionRecurring | null; successCallbackLink: Scalars["String"]["input"]; variant: InputMaybe<SubscriptionVariant>; workspaceId?: InputMaybe<...> | undefined; }' is not assignable to type 'Omit<CreateCheckoutSessionInput, "idempotencyKey">'.
Lint: packages/frontend/core/src/desktop/pages/subscribe/index.tsx#L142
Argument of type '{ idempotencyKey: string; plan: SubscriptionPlan; recurring: SubscriptionRecurring; variant: SubscriptionVariant | null; coupon: string | null; successCallbackLink: string; }' is not assignable to parameter of type 'CreateCheckoutSessionInput'.
Lint
Process completed with exit code 2.
quick-search.spec.ts:532:5 › can use slash menu to insert a newly created doc card: tests/affine-local/e2e/quick-search.spec.ts#L557
1) quick-search.spec.ts:532:5 › 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 + + + + + + + + + + + 1 + + Call log: - expect.toContainText with timeout 5000ms - waiting for locator('.affine-embed-linked-doc-content-title') - locator resolved to <div class="affine-embed-linked-doc-content-title">…</div> - unexpected value " 1 " - locator resolved to <div class="affine-embed-linked-doc-content-title">…</div> - unexpected value " 1 " - locator resolved to <div class="affine-embed-linked-doc-content-title">…</div> - unexpected value " 1 " - locator resolved to <div class="affine-embed-linked-doc-content-title">…</div> - unexpected value " 1 " - locator resolved to <div class="affine-embed-linked-doc-content-title">…</div> - unexpected value " 1 " - locator resolved to <div class="affine-embed-linked-doc-content-title">…</div> - unexpected value " 1 " - locator resolved to <div class="affine-embed-linked-doc-content-title">…</div> - unexpected value " 1 " - locator resolved to <div class="affine-embed-linked-doc-content-title">…</div> - unexpected value " 1 " - locator resolved to <div class="affine-embed-linked-doc-content-title">…</div> - unexpected value " 1 " 555 | await expect( 556 | page.locator('.affine-embed-linked-doc-content-title') > 557 | ).toContainText(testTitle); | ^ 558 | }); 559 | 560 | 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:557:5
links.spec.ts:239:5 › allow switching to embed view when linking to the other document with mode: tests/affine-local/e2e/links.spec.ts#L271
1) links.spec.ts:239:5 › 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="mMoKDWt8f9nfuiL_Z2DVH">…</affine-embed-linked-doc-block> - 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 - <iframe src="about:blank" id="webpack-dev-server-client-overlay"></iframe> 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 - <iframe src="about:blank" id="webpack-dev-server-client-overlay"></iframe> 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 - <iframe src="about:blank" id="webpack-dev-server-client-overlay"></iframe> 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 - <iframe src="about:blank" id="webpack-dev-server-client-overlay"></iframe> 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 - <iframe src="about:blank" id="webpack-dev-server-client-overlay"></iframe> 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 - <iframe src="about:blank" id="webpack-dev-server-client-overlay"></iframe> 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 - <iframe src="about:blank" id="webpack-dev-server-client-overlay"></iframe> intercepts pointer events - retrying click action, attempt #7 - waiting 500ms - 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, attempt #8 - waiting 500ms - 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, attempt #9 - waiting 500ms - 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, attempt #10 - waiting 500ms - waiting for element to be visible, enabled and stable - element is visible, enabled and stable - scrolling into view if
3, 2, 1 Launch
Process completed with exit code 1.
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-local/router.spec.ts#L1
tests/affine-local/router.spec.ts took 24.7s
Slow Test: tests/affine-local/local-first-avatar.spec.ts#L1
tests/affine-local/local-first-avatar.spec.ts took 17.6s
Slow Test: tests/affine-desktop-cloud/basic.spec.ts#L1
tests/affine-desktop-cloud/basic.spec.ts took 59.2s
Slow Test: tests/affine-cloud/workspace.spec.ts#L1
tests/affine-cloud/workspace.spec.ts took 1.5m
Slow Test: tests/affine-cloud/collaboration.spec.ts#L1
tests/affine-cloud/collaboration.spec.ts took 2.8m
Slow Test: tests/affine-cloud/login.spec.ts#L1
tests/affine-cloud/login.spec.ts took 1.4m
Slow Test: tests/affine-cloud/share-page.spec.ts#L1
tests/affine-cloud/share-page.spec.ts took 3.4m
Slow Test: tests/affine-cloud/open-in-app.spec.ts#L1
tests/affine-cloud/open-in-app.spec.ts took 55.4s
Slow Test: tests/affine-cloud/page-history.spec.ts#L1
tests/affine-cloud/page-history.spec.ts took 54.9s
🎭 Playwright Run Summary
7 passed (1.4m)
🎭 Playwright Run Summary
7 passed (1.5m)
🎭 Playwright Run Summary
7 passed (1.4m)
🎭 Playwright Run Summary
8 passed (1.7m)
🎭 Playwright Run Summary
7 passed (1.5m)
🎭 Playwright Run Summary
34 passed (3.9m)
🎭 Playwright Run Summary
1 flaky quick-search.spec.ts:532:5 › can use slash menu to insert a newly created doc card ───────────── 32 passed (3.9m)
🎭 Playwright Run Summary
2 skipped 31 passed (3.5m)
🎭 Playwright Run Summary
1 flaky links.spec.ts:239:5 › allow switching to embed view when linking to the other document with mode 2 skipped 30 passed (4.2m)
🎭 Playwright Run Summary
1 skipped 33 passed (3.6m)
🎭 Playwright Run Summary
1 passed (1.2m)
🎭 Playwright Run Summary
2 passed (1.9m)
🎭 Playwright Run Summary
1 skipped 7 passed (4.7m)
🎭 Playwright Run Summary
1 skipped 9 passed (5.7m)

Artifacts

Produced during runtime
Name Size
affine.darwin-arm64.node
1.48 MB
affine.darwin-x64.node
1.57 MB
affine.linux-x64-gnu.node
1.61 MB
affine.win32-x64-msvc.node
1.7 MB
android
58.5 MB
ios
58.5 MB
server-native.node
4.32 MB
web
61.3 MB