Skip to content

Fixing and simplifying New Chat keybindings logic #25030

Fixing and simplifying New Chat keybindings logic

Fixing and simplifying New Chat keybindings logic #25030

Triggered via pull request January 5, 2025 11:01
Status Failure
Total duration 7m 37s
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

7 errors, 26 warnings, and 5 notices
build
Process completed with exit code 1.
command-edit.test.ts:143:1 › edit (fixup) input - model selection: vscode/test/e2e/command-edit.test.ts#L159
1) command-edit.test.ts:143:1 › edit (fixup) input - model selection ───────────────────────────── Error: expect(locator).toBeVisible() Locator: getByLabel('$(anthropic-logo) Claude 3.5 Sonnet').locator('a') Expected: visible Received: hidden Call log: - expect.toBeVisible with timeout 5000ms - waiting for getByLabel('$(anthropic-logo) Claude 3.5 Sonnet').locator('a') - locator resolved to <a class="label-name">…</a> - unexpected value "hidden" - locator resolved to <a class="label-name">…</a> - unexpected value "hidden" - locator resolved to <a class="label-name">…</a> - unexpected value "hidden" - locator resolved to <a class="label-name">…</a> - unexpected value "hidden" 157 | const modelItem = page.getByLabel('$(anthropic-logo) Claude 3.5 Sonnet').locator('a') 158 | await nap() > 159 | expect(modelItem).toBeVisible() | ^ 160 | 161 | // Open the model input and check it has the correct item selected 162 | await modelItem.click() at /home/runner/work/cody/cody/vscode/test/e2e/command-edit.test.ts:159:23
chat-keyboard-shortcuts.test.ts:35:5 › re-opening chat adds selection: vscode/test/e2e/chat-keyboard-shortcuts.test.ts#L47
1) chat-keyboard-shortcuts.test.ts:35:5 › re-opening chat adds selection ───────────────────────── Error: Timed out 5000ms waiting for expect(locator).toHaveText(expected) Locator: frameLocator('.simple-find-part-wrapper + iframe.webview').last().frameLocator('iframe').getByRole('textbox', { name: 'Chat message' }).last().locator('.context-item-mention-node') Expected pattern: /^buzz.ts:2-4$/ Received: <element(s) not found> Call log: - expect.toHaveText with timeout 5000ms - waiting for frameLocator('.simple-find-part-wrapper + iframe.webview').last().frameLocator('iframe').getByRole('textbox', { name: 'Chat message' }).last().locator('.context-item-mention-node') 45 | await selectLineRangeInEditorTab(page, 2, 4) 46 | await page.keyboard.press('Shift+Alt+l') > 47 | await expect(chatInputMentions(lastChatInput)).toHaveText(/^buzz.ts:2-4$/) | ^ 48 | 49 | // Re-opening chat does not add duplicate selection 50 | await openFileInEditorTab(page, 'buzz.ts') at /home/runner/work/cody/cody/vscode/test/e2e/chat-keyboard-shortcuts.test.ts:47:52
chat-keyboard-shortcuts.test.ts:35:5 › re-opening chat adds selection: vscode/test/e2e/chat-keyboard-shortcuts.test.ts#L47
1) chat-keyboard-shortcuts.test.ts:35:5 › re-opening chat adds selection ───────────────────────── Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── Error: Timed out 5000ms waiting for expect(locator).toHaveText(expected) Locator: frameLocator('.simple-find-part-wrapper + iframe.webview').last().frameLocator('iframe').getByRole('textbox', { name: 'Chat message' }).last().locator('.context-item-mention-node') Expected pattern: /^buzz.ts:2-4$/ Received: <element(s) not found> Call log: - expect.toHaveText with timeout 5000ms - waiting for frameLocator('.simple-find-part-wrapper + iframe.webview').last().frameLocator('iframe').getByRole('textbox', { name: 'Chat message' }).last().locator('.context-item-mention-node') 45 | await selectLineRangeInEditorTab(page, 2, 4) 46 | await page.keyboard.press('Shift+Alt+l') > 47 | await expect(chatInputMentions(lastChatInput)).toHaveText(/^buzz.ts:2-4$/) | ^ 48 | 49 | // Re-opening chat does not add duplicate selection 50 | await openFileInEditorTab(page, 'buzz.ts') at /home/runner/work/cody/cody/vscode/test/e2e/chat-keyboard-shortcuts.test.ts:47:52
test-e2e (ubuntu, 2/5)
Process completed with exit code 1.
src/autocomplete.test.ts > Autocomplete: agent/src/TestClient.ts#L890
Error: PollyError: [Polly] [adapter:node-http] Recording for the following request is not found and `recordIfMissing` is `false`.. To fix this problem, run the following commands to update the HTTP recordings: source agent/scripts/export-cody-http-recording-tokens.sh pnpm update-agent-recordings ❯ TestClient.shutdownAndExit src/TestClient.ts:890:23 ❯ TestClient.afterAll src/TestClient.ts:877:9 ❯ src/autocomplete.test.ts:23:9
test-unit (windows, 20)
Process completed with exit code 1.
slow_tests_matrix_prep
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
fast_tests_matrix_prep
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
build
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
test-integration (ubuntu)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
test-unit (ubuntu, 20)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
test-unit (ubuntu, 18)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
test-e2e (ubuntu, 4/5)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
Slow Test: vscode/enterprise-cody-ignore.test.ts#L1
vscode/enterprise-cody-ignore.test.ts took 19.0s
test-e2e (ubuntu, 5/5)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
Slow Test: vscode/initial-context.test.ts#L1
vscode/initial-context.test.ts took 55.1s
Slow Test: vscode/uninstall.test.ts#L1
vscode/uninstall.test.ts took 30.4s
Slow Test: vscode/support-menu-items.test.ts#L1
vscode/support-menu-items.test.ts took 22.6s
test-e2e (ubuntu, 1/5)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
Slow Test: vscode/chat-atFile.test.ts#L1
vscode/chat-atFile.test.ts took 1.4m
Slow Test: vscode/auth.test.ts#L1
vscode/auth.test.ts took 33.9s
Slow Test: vscode/attribution.test.ts#L1
vscode/attribution.test.ts took 24.0s
test-e2e (ubuntu, 2/5)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
Slow Test: vscode/chat-input.test.ts#L1
vscode/chat-input.test.ts took 58.8s
Slow Test: vscode/chat-history.test.ts#L1
vscode/chat-history.test.ts took 22.8s
Slow Test: vscode/chat-messages.test.ts#L1
vscode/chat-messages.test.ts took 21.1s
test-e2e (ubuntu, 3/5)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
Slow Test: vscode/command-custom.test.ts#L1
vscode/command-custom.test.ts took 1.2m
Slow Test: vscode/command-core.test.ts#L1
vscode/command-core.test.ts took 44.5s
Slow Test: vscode/code-actions.test.ts#L1
vscode/code-actions.test.ts took 35.5s
Slow Test: vscode/chat-rateLimit.test.ts#L1
vscode/chat-rateLimit.test.ts took 34.6s
Slow Test: vscode/command-commit.test.ts#L1
vscode/command-commit.test.ts took 15.0s
🎭 Playwright Run Summary
1 flaky command-edit.test.ts:143:1 › edit (fixup) input - model selection ────────────────────────────── 1 skipped 5 passed (1.8m)
🎭 Playwright Run Summary
2 skipped 8 passed (2.1m)
🎭 Playwright Run Summary
2 skipped 10 passed (2.4m)
🎭 Playwright Run Summary
1 failed chat-keyboard-shortcuts.test.ts:35:5 › re-opening chat adds selection ────────────────────────── 9 passed (2.9m)
🎭 Playwright Run Summary
13 passed (3.4m)

Artifacts

Produced during runtime
Name Size
playwright-recordings ubuntu
2.51 MB