Skip to content

refactor(webview): relocate model selector #27435

refactor(webview): relocate model selector

refactor(webview): relocate model selector #27435

Triggered via pull request March 3, 2025 18:05
Status Failure
Total duration 10m 28s
Artifacts 1

ci.yml

on: pull_request
fast_tests_matrix_prep
0s
fast_tests_matrix_prep
slow_tests_matrix_prep
0s
slow_tests_matrix_prep
Matrix: test-integration
Matrix: test-unit
Matrix: test-e2e
Fit to window
Zoom out
Zoom in

Annotations

20 errors, 13 warnings, and 5 notices
build
Process completed with exit code 1.
webviews/chat/Transcript.test.tsx > Transcript > renders with provided models: vscode/webviews/chat/Transcript.test.tsx#L51
AssertionError: expected null not to be null ❯ webviews/chat/Transcript.test.tsx:51:35
test-unit (ubuntu, 20)
Process completed with exit code 1.
auth.test.ts:27:3 › requires a valid auth token and allows logouts: vscode/test/e2e/auth.test.ts#L48
1) auth.test.ts:27:3 › requires a valid auth token and allows logouts ──────────────────────────── Error: Timed out 5000ms waiting for expect(locator).toBeVisible() Locator: getByRole('button', { name: 'New Chat' }) Expected: visible Received: <element(s) not found> Call log: - expect.toBeVisible with timeout 5000ms - waiting for getByRole('button', { name: 'New Chat' }) 46 | await expect(sidebar!.getByText('Sign in to Sourcegraph')).not.toBeVisible() 47 | await expect(sidebar!.getByLabel('Chat message')).toBeVisible() > 48 | await expect(sidebar!.getByRole('button', { name: 'New Chat' })).toBeVisible() | ^ 49 | 50 | // Sign out. 51 | await signOut(page) at /home/runner/work/cody/cody/vscode/test/e2e/auth.test.ts:48:70
auth.test.ts:27:3 › requires a valid auth token and allows logouts: vscode/test/e2e/auth.test.ts#L48
1) auth.test.ts:27:3 › requires a valid auth token and allows logouts ──────────────────────────── Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── Error: Timed out 5000ms waiting for expect(locator).toBeVisible() Locator: getByRole('button', { name: 'New Chat' }) Expected: visible Received: <element(s) not found> Call log: - expect.toBeVisible with timeout 5000ms - waiting for getByRole('button', { name: 'New Chat' }) 46 | await expect(sidebar!.getByText('Sign in to Sourcegraph')).not.toBeVisible() 47 | await expect(sidebar!.getByLabel('Chat message')).toBeVisible() > 48 | await expect(sidebar!.getByRole('button', { name: 'New Chat' })).toBeVisible() | ^ 49 | 50 | // Sign out. 51 | await signOut(page) at /home/runner/work/cody/cody/vscode/test/e2e/auth.test.ts:48:70
test-e2e (ubuntu, 1/5)
Process completed with exit code 1.
webviews/chat/Transcript.test.tsx > Transcript > renders with provided models: vscode/webviews/chat/Transcript.test.tsx#L51
AssertionError: expected null not to be null ❯ webviews/chat/Transcript.test.tsx:51:35
test-unit (ubuntu, 18)
Process completed with exit code 1.
enterprise-server-sent-models.test.ts:6:5 › allows multiple enterprise models when server-sent models is enabled: vscode/test/e2e/enterprise-server-sent-models.test.ts#L18
1) enterprise-server-sent-models.test.ts:6:5 › allows multiple enterprise models when server-sent models is enabled Error: Timed out 5000ms waiting for expect(locator).toBeEnabled() Locator: frameLocator('.simple-find-part-wrapper + iframe.webview').last().frameLocator('iframe').getByRole('combobox', { name: 'Select a model' }).last() Expected: enabled Received: <element(s) not found> Call log: - expect.toBeEnabled with timeout 5000ms - waiting for frameLocator('.simple-find-part-wrapper + iframe.webview').last().frameLocator('iframe').getByRole('combobox', { name: 'Select a model' }).last() 16 | 17 | // First model in the server list should be selected as default > 18 | await expect(modelSelect).toBeEnabled() | ^ 19 | await expect(modelSelect).toHaveText(/^Opus/) 20 | 21 | // Change selection to Titan and assert it was updated at /home/runner/work/cody/cody/vscode/test/e2e/enterprise-server-sent-models.test.ts:18:31
enterprise-server-sent-models.test.ts:6:5 › allows multiple enterprise models when server-sent models is enabled: vscode/test/e2e/enterprise-server-sent-models.test.ts#L18
1) enterprise-server-sent-models.test.ts:6:5 › allows multiple enterprise models when server-sent models is enabled Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── Error: Timed out 5000ms waiting for expect(locator).toBeEnabled() Locator: frameLocator('.simple-find-part-wrapper + iframe.webview').last().frameLocator('iframe').getByRole('combobox', { name: 'Select a model' }).last() Expected: enabled Received: <element(s) not found> Call log: - expect.toBeEnabled with timeout 5000ms - waiting for frameLocator('.simple-find-part-wrapper + iframe.webview').last().frameLocator('iframe').getByRole('combobox', { name: 'Select a model' }).last() 16 | 17 | // First model in the server list should be selected as default > 18 | await expect(modelSelect).toBeEnabled() | ^ 19 | await expect(modelSelect).toHaveText(/^Opus/) 20 | 21 | // Change selection to Titan and assert it was updated at /home/runner/work/cody/cody/vscode/test/e2e/enterprise-server-sent-models.test.ts:18:31
test-e2e (ubuntu, 5/5)
Process completed with exit code 1.
test-e2e (ubuntu, 5/5)
Failed to CreateArtifact: Received non-retryable error: Failed request: (409) Conflict: an artifact with this name already exists on the workflow run
chat-input.test.ts:197:3 › chat model selector: vscode/test/e2e/chat-input.test.ts#L219
1) chat-input.test.ts:197:3 › chat model selector ──────────────────────────────────────────────── Error: Timed out 5000ms waiting for expect(locator).toBeFocused() Locator: frameLocator('iframe.webview:first-child:last-child').frameLocator('iframe').getByRole('textbox', { name: 'Chat message' }).last() Expected: focused Received: inactive Call log: - expect.toBeFocused with timeout 5000ms - waiting for frameLocator('iframe.webview:first-child:last-child').frameLocator('iframe').getByRole('textbox', { name: 'Chat message' }).last() - locator resolved to <div role="textbox" spellcheck="true" contenteditable="true" aria-label="Chat message" data-lexical-editor="true" class="_content-editable_s4gjm_6 _editor-content-editable_1eiqs_30">…</div> - unexpected value "not focused" - locator resolved to <div role="textbox" spellcheck="true" contenteditable="true" aria-label="Chat message" data-lexical-editor="true" class="_content-editable_s4gjm_6 _editor-content-editable_1eiqs_30">…</div> - unexpected value "not focused" - locator resolved to <div role="textbox" spellcheck="true" contenteditable="true" aria-label="Chat message" data-lexical-editor="true" class="_content-editable_s4gjm_6 _editor-content-editable_1eiqs_30">…</div> - unexpected value "not focused" - locator resolved to <div role="textbox" spellcheck="true" contenteditable="true" aria-label="Chat message" data-lexical-editor="true" class="_content-editable_s4gjm_6 _editor-content-editable_1eiqs_30">…</div> - unexpected value "not focused" - locator resolved to <div role="textbox" spellcheck="true" contenteditable="true" aria-label="Chat message" data-lexical-editor="true" class="_content-editable_s4gjm_6 _editor-content-editable_1eiqs_30">…</div> - unexpected value "not focused" - locator resolved to <div role="textbox" spellcheck="true" contenteditable="true" aria-label="Chat message" data-lexical-editor="true" class="_content-editable_s4gjm_6 _editor-content-editable_1eiqs_30">…</div> - unexpected value "not focused" - locator resolved to <div role="textbox" spellcheck="true" contenteditable="true" aria-label="Chat message" data-lexical-editor="true" class="_content-editable_s4gjm_6 _editor-content-editable_1eiqs_30">…</div> - unexpected value "not focused" - locator resolved to <div role="textbox" spellcheck="true" contenteditable="true" aria-label="Chat message" data-lexical-editor="true" class="_content-editable_s4gjm_6 _editor-content-editable_1eiqs_30">…</div> - unexpected value "not focused" - locator resolved to <div role="textbox" spellcheck="true" contenteditable="true" aria-label="Chat message" data-lexical-editor="true" class="_content-editable_s4gjm_6 _editor-content-editable_1eiqs_30">…</div> - unexpected value "not focused" 217 | await modelChoices.getByRole('option', { name: 'Claude 3 Haiku' }).click() 218 | const lastChatInput = getChatInputs(chatFrame).last() > 219 | await expect(lastChatInput).toBeFocused() | ^ 220 | await expect(modelSelect).toHaveText(/^Claude 3 Haiku/) 221 | await lastChatInput.fill('to model2') 222 | await lastChatInput.press('Enter') at /home/runner/work/cody/cody/vscode/test/e2e/chat-input.test.ts:219:33
chat-input.test.ts:197:3 › chat model selector: vscode/test/e2e/chat-input.test.ts#L219
1) chat-input.test.ts:197:3 › chat model selector ──────────────────────────────────────────────── Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── Error: Timed out 5000ms waiting for expect(locator).toBeFocused() Locator: frameLocator('iframe.webview:first-child:last-child').frameLocator('iframe').getByRole('textbox', { name: 'Chat message' }).last() Expected: focused Received: inactive Call log: - expect.toBeFocused with timeout 5000ms - waiting for frameLocator('iframe.webview:first-child:last-child').frameLocator('iframe').getByRole('textbox', { name: 'Chat message' }).last() - locator resolved to <div role="textbox" spellcheck="true" contenteditable="true" aria-label="Chat message" data-lexical-editor="true" class="_content-editable_s4gjm_6 _editor-content-editable_1eiqs_30">…</div> - unexpected value "not focused" - locator resolved to <div role="textbox" spellcheck="true" contenteditable="true" aria-label="Chat message" data-lexical-editor="true" class="_content-editable_s4gjm_6 _editor-content-editable_1eiqs_30">…</div> - unexpected value "not focused" - locator resolved to <div role="textbox" spellcheck="true" contenteditable="true" aria-label="Chat message" data-lexical-editor="true" class="_content-editable_s4gjm_6 _editor-content-editable_1eiqs_30">…</div> - unexpected value "not focused" - locator resolved to <div role="textbox" spellcheck="true" contenteditable="true" aria-label="Chat message" data-lexical-editor="true" class="_content-editable_s4gjm_6 _editor-content-editable_1eiqs_30">…</div> - unexpected value "not focused" - locator resolved to <div role="textbox" spellcheck="true" contenteditable="true" aria-label="Chat message" data-lexical-editor="true" class="_content-editable_s4gjm_6 _editor-content-editable_1eiqs_30">…</div> - unexpected value "not focused" - locator resolved to <div role="textbox" spellcheck="true" contenteditable="true" aria-label="Chat message" data-lexical-editor="true" class="_content-editable_s4gjm_6 _editor-content-editable_1eiqs_30">…</div> - unexpected value "not focused" - locator resolved to <div role="textbox" spellcheck="true" contenteditable="true" aria-label="Chat message" data-lexical-editor="true" class="_content-editable_s4gjm_6 _editor-content-editable_1eiqs_30">…</div> - unexpected value "not focused" - locator resolved to <div role="textbox" spellcheck="true" contenteditable="true" aria-label="Chat message" data-lexical-editor="true" class="_content-editable_s4gjm_6 _editor-content-editable_1eiqs_30">…</div> - unexpected value "not focused" - locator resolved to <div role="textbox" spellcheck="true" contenteditable="true" aria-label="Chat message" data-lexical-editor="true" class="_content-editable_s4gjm_6 _editor-content-editable_1eiqs_30">…</div> - unexpected value "not focused" 217 | await modelChoices.getByRole('option', { name: 'Claude 3 Haiku' }).click() 218 | const lastChatInput = getChatInputs(chatFrame).last() > 219 | await expect(lastChatInput).toBeFocused() | ^ 220 | await expect(modelSelect).toHaveText(/^Claude 3 Haiku/) 221 | await lastChatInput.fill('to model2') 222 | await lastChatInput.press('Enter') at /home/runner/work/cody/cody/vscode/test/e2e/chat-input.test.ts:219:33
test-e2e (ubuntu, 2/5)
Process completed with exit code 1.
test-e2e (ubuntu, 2/5)
Failed to CreateArtifact: Received non-retryable error: Failed request: (409) Conflict: an artifact with this name already exists on the workflow run
test-unit (windows, 20)
The job running on runner GitHub Actions 35 has exceeded the maximum execution time of 10 minutes.
test-unit (windows, 20)
The operation was canceled.
Slow Test: vscode/attribution.test.ts#L1
vscode/attribution.test.ts took 25.8s
Slow Test: vscode/initial-context.test.ts#L1
vscode/initial-context.test.ts took 39.9s
Slow Test: vscode/support-menu-items.test.ts#L1
vscode/support-menu-items.test.ts took 22.3s
Slow Test: vscode/command-core.test.ts#L1
vscode/command-core.test.ts took 45.3s
Slow Test: vscode/code-actions.test.ts#L1
vscode/code-actions.test.ts took 36.9s
Slow Test: vscode/chat-rateLimit.test.ts#L1
vscode/chat-rateLimit.test.ts took 34.6s
Slow Test: vscode/chat-messages.test.ts#L1
vscode/chat-messages.test.ts took 22.8s
Slow Test: vscode/command-commit.test.ts#L1
vscode/command-commit.test.ts took 15.1s
Slow Test: vscode/command-custom.test.ts#L1
vscode/command-custom.test.ts took 1.2m
Slow Test: vscode/command-edit.test.ts#L1
vscode/command-edit.test.ts took 47.9s
Slow Test: vscode/enterprise-cody-ignore.test.ts#L1
vscode/enterprise-cody-ignore.test.ts took 19.6s
Slow Test: vscode/chat-atFile.test.ts#L1
vscode/chat-atFile.test.ts took 1.4m
Slow Test: vscode/chat-history.test.ts#L1
vscode/chat-history.test.ts took 23.7s
🎭 Playwright Run Summary
1 failed auth.test.ts:27:3 › requires a valid auth token and allows logouts ───────────────────────────── 9 skipped 4 passed (1.3m)
🎭 Playwright Run Summary
1 failed enterprise-server-sent-models.test.ts:6:5 › allows multiple enterprise models when server-sent models is enabled 4 skipped 6 passed (1.8m)
🎭 Playwright Run Summary
2 skipped 10 passed (2.6m)
🎭 Playwright Run Summary
9 passed (2.7m)
🎭 Playwright Run Summary
1 failed chat-input.test.ts:197:3 › chat model selector ───────────────────────────────────────────────── 1 skipped 10 passed (3.2m)

Artifacts

Produced during runtime
Name Size
playwright-recordings ubuntu
942 KB