fix(logging): Add interactionId to header of Cody Client requests for autoCompletes and autoEdits #25926
ci.yml
on: pull_request
fast_tests_matrix_prep
0s
slow_tests_matrix_prep
0s
build
2m 24s
Matrix: test-integration
Matrix: test-unit
Matrix: test-e2e
Annotations
10 errors, 26 warnings, and 5 notices
src/autoedits/adapters/cody-gateway.test.ts > CodyGatewayAdapter > sends correct request parameters for chat model:
vscode/src/autoedits/adapters/cody-gateway.test.ts#L60
AssertionError: expected "spy" to be called with arguments: [ …(2) ]
Received:
1st spy call:
Array [
"https://test-gateway.sourcegraph.com/v1/completions",
Object {
- "body": StringContaining "\"model\":\"anthropic/claude-2\"",
+ "body": "{\"stream\":false,\"model\":\"anthropic/claude-2\",\"temperature\":0,\"max_tokens\":515,\"response_format\":{\"type\":\"text\"},\"prediction\":{\"type\":\"content\",\"content\":\"const x = 1\"},\"rewrite_speculation\":true,\"user\":\"test-user\",\"messages\":[{\"role\":\"system\",\"content\":\"system message\"},{\"role\":\"user\",\"content\":\"user message\"}]}",
"headers": Object {
- "Authorization": StringContaining "sgd_",
+ "Authorization": "***",
"Content-Type": "application/json",
"X-Sourcegraph-Feature": "code_completions",
+ "X-Sourcegraph-Interaction-ID": "test-request-id",
},
"method": "POST",
},
]
Number of calls: 1
❯ src/autoedits/adapters/cody-gateway.test.ts:60:27
|
src/autoedits/adapters/fireworks.test.ts > FireworksAdapter > sends correct request parameters for chat model:
vscode/src/autoedits/adapters/fireworks.test.ts#L54
AssertionError: expected "spy" to be called with arguments: [ …(2) ]
Received:
1st spy call:
Array [
"https://api.fireworks.ai/v1/completions",
Object {
- "body": StringContaining "\"model\":\"accounts/fireworks/models/llama-v2-7b\"",
+ "body": "{\"stream\":false,\"model\":\"accounts/fireworks/models/llama-v2-7b\",\"temperature\":0,\"max_tokens\":515,\"response_format\":{\"type\":\"text\"},\"prediction\":{\"type\":\"content\",\"content\":\"const x = 1\"},\"user\":\"test-user\",\"messages\":[{\"role\":\"system\",\"content\":\"system message\"},{\"role\":\"user\",\"content\":\"user message\"}]}",
"headers": Object {
"Authorization": "***",
"Content-Type": "application/json",
+ "X-Sourcegraph-Interaction-ID": "test-request-id",
},
"method": "POST",
},
]
Number of calls: 1
❯ src/autoedits/adapters/fireworks.test.ts:54:27
|
test-unit (ubuntu, 20)
Process completed with exit code 1.
|
src/autoedits/adapters/cody-gateway.test.ts > CodyGatewayAdapter > sends correct request parameters for chat model:
vscode/src/autoedits/adapters/cody-gateway.test.ts#L60
AssertionError: expected "spy" to be called with arguments: [ …(2) ]
Received:
1st spy call:
Array [
"https://test-gateway.sourcegraph.com/v1/completions",
Object {
- "body": StringContaining "\"model\":\"anthropic/claude-2\"",
+ "body": "{\"stream\":false,\"model\":\"anthropic/claude-2\",\"temperature\":0,\"max_tokens\":515,\"response_format\":{\"type\":\"text\"},\"prediction\":{\"type\":\"content\",\"content\":\"const x = 1\"},\"rewrite_speculation\":true,\"user\":\"test-user\",\"messages\":[{\"role\":\"system\",\"content\":\"system message\"},{\"role\":\"user\",\"content\":\"user message\"}]}",
"headers": Object {
- "Authorization": StringContaining "sgd_",
+ "Authorization": "***",
"Content-Type": "application/json",
"X-Sourcegraph-Feature": "code_completions",
+ "X-Sourcegraph-Interaction-ID": "test-request-id",
},
"method": "POST",
},
]
Number of calls: 1
❯ src/autoedits/adapters/cody-gateway.test.ts:60:27
|
src/autoedits/adapters/fireworks.test.ts > FireworksAdapter > sends correct request parameters for chat model:
vscode/src/autoedits/adapters/fireworks.test.ts#L54
AssertionError: expected "spy" to be called with arguments: [ …(2) ]
Received:
1st spy call:
Array [
"https://api.fireworks.ai/v1/completions",
Object {
- "body": StringContaining "\"model\":\"accounts/fireworks/models/llama-v2-7b\"",
+ "body": "{\"stream\":false,\"model\":\"accounts/fireworks/models/llama-v2-7b\",\"temperature\":0,\"max_tokens\":515,\"response_format\":{\"type\":\"text\"},\"prediction\":{\"type\":\"content\",\"content\":\"const x = 1\"},\"user\":\"test-user\",\"messages\":[{\"role\":\"system\",\"content\":\"system message\"},{\"role\":\"user\",\"content\":\"user message\"}]}",
"headers": Object {
"Authorization": "***",
"Content-Type": "application/json",
+ "X-Sourcegraph-Interaction-ID": "test-request-id",
},
"method": "POST",
},
]
Number of calls: 1
❯ src/autoedits/adapters/fireworks.test.ts:54:27
|
test-unit (ubuntu, 18)
Process completed with exit code 1.
|
uninstall.test.ts:7:5 › uninstall extension:
vscode/test/e2e/common.ts#L62
1) uninstall.test.ts:7:5 › uninstall extension ───────────────────────────────────────────────────
TimeoutError: page.click: Timeout 30000ms exceeded.
Call log:
- waiting for locator('[aria-label="Cody"]')
at common.ts:62
60 | // In case the cody sidebar isn't focused, select it.
61 | while (!(await isSidebarVisible(page))) {
> 62 | await page.click('[aria-label="Cody"]')
| ^
63 | }
64 | }
65 |
at focusSidebar (/home/runner/work/cody/cody/vscode/test/e2e/common.ts:62:20)
at signin (/home/runner/work/cody/cody/vscode/test/e2e/uninstall.test.ts:65:5)
at /home/runner/work/cody/cody/vscode/test/e2e/uninstall.test.ts:50:5
|
src/autoedits/adapters/cody-gateway.test.ts > CodyGatewayAdapter > sends correct request parameters for chat model:
vscode/src/autoedits/adapters/cody-gateway.test.ts#L60
AssertionError: expected "spy" to be called with arguments: [ …(2) ]
Received:
1st spy call:
Array [
"https://test-gateway.sourcegraph.com/v1/completions",
Object {
- "body": StringContaining "\"model\":\"anthropic/claude-2\"",
+ "body": "{\"stream\":false,\"model\":\"anthropic/claude-2\",\"temperature\":0,\"max_tokens\":515,\"response_format\":{\"type\":\"text\"},\"prediction\":{\"type\":\"content\",\"content\":\"const x = 1\"},\"rewrite_speculation\":true,\"user\":\"test-user\",\"messages\":[{\"role\":\"system\",\"content\":\"system message\"},{\"role\":\"user\",\"content\":\"user message\"}]}",
"headers": Object {
- "Authorization": StringContaining "sgd_",
+ "Authorization": "***",
"Content-Type": "application/json",
"X-Sourcegraph-Feature": "code_completions",
+ "X-Sourcegraph-Interaction-ID": "test-request-id",
},
"method": "POST",
},
]
Number of calls: 1
❯ src/autoedits/adapters/cody-gateway.test.ts:60:27
|
src/autoedits/adapters/fireworks.test.ts > FireworksAdapter > sends correct request parameters for chat model:
vscode/src/autoedits/adapters/fireworks.test.ts#L54
AssertionError: expected "spy" to be called with arguments: [ …(2) ]
Received:
1st spy call:
Array [
"https://api.fireworks.ai/v1/completions",
Object {
- "body": StringContaining "\"model\":\"accounts/fireworks/models/llama-v2-7b\"",
+ "body": "{\"stream\":false,\"model\":\"accounts/fireworks/models/llama-v2-7b\",\"temperature\":0,\"max_tokens\":515,\"response_format\":{\"type\":\"text\"},\"prediction\":{\"type\":\"content\",\"content\":\"const x = 1\"},\"user\":\"test-user\",\"messages\":[{\"role\":\"system\",\"content\":\"system message\"},{\"role\":\"user\",\"content\":\"user message\"}]}",
"headers": Object {
"Authorization": "***",
"Content-Type": "application/json",
+ "X-Sourcegraph-Interaction-ID": "test-request-id",
},
"method": "POST",
},
]
Number of calls: 1
❯ src/autoedits/adapters/fireworks.test.ts:54:27
|
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
|
test-integration (ubuntu)
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-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-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/auth.test.ts#L1
vscode/auth.test.ts took 33.8s
|
Slow Test:
vscode/attribution.test.ts#L1
vscode/attribution.test.ts took 24.0s
|
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, 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-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 31.6s
|
Slow Test:
vscode/chat-history.test.ts#L1
vscode/chat-history.test.ts took 24.3s
|
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-core.test.ts#L1
vscode/command-core.test.ts took 47.6s
|
Slow Test:
vscode/code-actions.test.ts#L1
vscode/code-actions.test.ts took 37.1s
|
Slow Test:
vscode/chat-rateLimit.test.ts#L1
vscode/chat-rateLimit.test.ts took 35.8s
|
Slow Test:
vscode/chat-messages.test.ts#L1
vscode/chat-messages.test.ts took 24.1s
|
Slow Test:
vscode/command-commit.test.ts#L1
vscode/command-commit.test.ts took 15.1s
|
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.6s
|
Slow Test:
vscode/support-menu-items.test.ts#L1
vscode/support-menu-items.test.ts took 21.7s
|
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/command-custom.test.ts#L1
vscode/command-custom.test.ts took 1.3m
|
Slow Test:
vscode/command-edit.test.ts#L1
vscode/command-edit.test.ts took 46.9s
|
Slow Test:
vscode/enterprise-cody-ignore.test.ts#L1
vscode/enterprise-cody-ignore.test.ts took 19.3s
|
🎭 Playwright Run Summary
8 skipped
5 passed (1.0m)
|
🎭 Playwright Run Summary
3 skipped
9 passed (2.5m)
|
🎭 Playwright Run Summary
2 skipped
10 passed (2.7m)
|
🎭 Playwright Run Summary
1 flaky
uninstall.test.ts:7:5 › uninstall extension ────────────────────────────────────────────────────
3 skipped
7 passed (2.8m)
|
🎭 Playwright Run Summary
10 passed (2.9m)
|