Skip to content

Fix problem with race between auth and config causing issues with models loading #26202

Fix problem with race between auth and config causing issues with models loading

Fix problem with race between auth and config causing issues with models loading #26202

Triggered via pull request January 30, 2025 15:35
Status Failure
Total duration 6m 50s
Artifacts

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

9 errors, 12 warnings, and 5 notices
src/unauthed.test.ts > Initializing the agent without credentials: agent/src/TestClient.ts#L817
SyntaxError: Unexpected end of JSON input ❯ TestClient.printDiffAgainstClosestMatchingRecording src/TestClient.ts:817:27 ❯ TestClient.shutdownAndExit src/TestClient.ts:887:32 ❯ TestClient.afterAll src/TestClient.ts:877:9 ❯ src/unauthed.test.ts:27:13
test-unit (ubuntu, 20)
Process completed with exit code 1.
src/unauthed.test.ts > Initializing the agent without credentials: agent/src/TestClient.ts#L817
SyntaxError: Unexpected end of JSON input ❯ TestClient.printDiffAgainstClosestMatchingRecording src/TestClient.ts:817:27 ❯ TestClient.shutdownAndExit src/TestClient.ts:887:32 ❯ TestClient.afterAll src/TestClient.ts:877:9 ❯ src/unauthed.test.ts:27:13
test-unit (ubuntu, 18)
Process completed with exit code 1.
src/unauthed.test.ts > Initializing the agent without credentials: agent/src/TestClient.ts#L817
SyntaxError: Unexpected end of JSON input ❯ TestClient.printDiffAgainstClosestMatchingRecording src/TestClient.ts:817:27 ❯ TestClient.shutdownAndExit src/TestClient.ts:887:32 ❯ TestClient.afterAll src/TestClient.ts:877:9 ❯ src/unauthed.test.ts:27:13
test-unit (windows, 20)
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
enterprise-cody-ignore.test.ts:43:7 › using actively invoked commands and autocomplete shows a error: vscode/test/e2e/enterprise-cody-ignore.test.ts#L1
2) enterprise-cody-ignore.test.ts:43:7 › using actively invoked commands and autocomplete shows a error Test timeout of 30000ms exceeded.
enterprise-cody-ignore.test.ts:43:7 › using actively invoked commands and autocomplete shows a error: vscode/test/e2e/enterprise-cody-ignore.test.ts#L73
2) enterprise-cody-ignore.test.ts:43:7 › using actively invoked commands and autocomplete shows a error Error: locator.hover: Target page, context or browser has been closed Call log: - waiting for getByRole('button', { name: 'ignored' }) 71 | name: 'ignored', //TODO(rnauta): migrate this test to e2ev2 and use StatusBar tags 72 | }) > 73 | await statusBarButton.hover() | ^ 74 | await expect(statusBarButton).toBeVisible() 75 | 76 | // Clicking on the Cody icon shows a message at /home/runner/work/cody/cody/vscode/test/e2e/enterprise-cody-ignore.test.ts:73:31
Slow Test: vscode/auth.test.ts#L1
vscode/auth.test.ts took 34.9s
Slow Test: vscode/attribution.test.ts#L1
vscode/attribution.test.ts took 26.5s
Slow Test: vscode/initial-context.test.ts#L1
vscode/initial-context.test.ts took 56.3s
Slow Test: vscode/support-menu-items.test.ts#L1
vscode/support-menu-items.test.ts took 21.8s
Slow Test: vscode/chat-atFile.test.ts#L1
vscode/chat-atFile.test.ts took 1.5m
Slow Test: vscode/chat-input.test.ts#L1
vscode/chat-input.test.ts took 32.2s
Slow Test: vscode/chat-history.test.ts#L1
vscode/chat-history.test.ts took 24.4s
Slow Test: vscode/command-core.test.ts#L1
vscode/command-core.test.ts took 46.5s
Slow Test: vscode/code-actions.test.ts#L1
vscode/code-actions.test.ts took 36.7s
Slow Test: vscode/chat-rateLimit.test.ts#L1
vscode/chat-rateLimit.test.ts took 35.7s
Slow Test: vscode/chat-messages.test.ts#L1
vscode/chat-messages.test.ts took 21.7s
Slow Test: vscode/command-custom.test.ts#L1
vscode/command-custom.test.ts took 1.3m
🎭 Playwright Run Summary
8 skipped 5 passed (1.1m)
🎭 Playwright Run Summary
4 skipped 7 passed (1.6m)
🎭 Playwright Run Summary
3 skipped 9 passed (2.5m)
🎭 Playwright Run Summary
2 skipped 10 passed (2.7m)
🎭 Playwright Run Summary
2 flaky command-edit.test.ts:143:1 › edit (fixup) input - model selection ────────────────────────────── enterprise-cody-ignore.test.ts:43:7 › using actively invoked commands and autocomplete shows a error 8 passed (3.7m)