Skip to content

change up the profile/provider logic to use a list of profiles #150

change up the profile/provider logic to use a list of profiles

change up the profile/provider logic to use a list of profiles #150

Triggered via pull request April 7, 2025 20:25
Status Failure
Total duration 1m 23s
Artifacts

test.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

10 errors
node/magenta.spec.ts > node/magenta.spec.ts > context-files end-to-end: node/magenta.spec.ts#L164
Error: Expected a message to be pending. ❯ node/magenta.spec.ts:164:17 ❯ Module.pollUntil node/utils/async.ts:60:19 ❯ node/magenta.spec.ts:162:7 ❯ node/test/preamble.ts:149:9 ❯ Module.withMockClient node/providers/mock.ts:272:5 ❯ node/test/preamble.ts:131:5 ❯ withNvimProcess node/test/preamble.ts:60:5 ❯ Module.withDriver node/test/preamble.ts:124:10 ❯ node/magenta.spec.ts:150:5
node/magenta.spec.ts > node/magenta.spec.ts > can set provider: node/magenta.spec.ts#L84
AssertionError: expected { name: 'claude-3-7', …(3) } to deeply equal { provider: 'anthropic', …(1) } - Expected + Received Object { + "apiKeyEnvVar": "ANTHROPIC_API_KEY", "model": "claude-3-7-sonnet-latest", + "name": "claude-3-7", "provider": "anthropic", } ❯ node/magenta.spec.ts:84:37 ❯ node/test/preamble.ts:149:15 ❯ Module.withMockClient node/providers/mock.ts:272:5 ❯ node/test/preamble.ts:131:5 ❯ withNvimProcess node/test/preamble.ts:60:5 ❯ Module.withDriver node/test/preamble.ts:124:10 ❯ node/magenta.spec.ts:77:5
node/magenta.spec.ts > node/magenta.spec.ts > abort command should work: node/test/driver.ts#L208
AssertionError: expected 'Error Anthropic API key ANTHROPIC_API…' to deeply equal '# user:\nhello\n\nAwaiting response ⠁' - Expected + Received - # user: - hello - - Awaiting response ⠁ + Error Anthropic API key ANTHROPIC_API_KEY not found in environment + Error: Anthropic API key ANTHROPIC_API_KEY not found in environment + at new AnthropicProvider (/home/runner/work/magenta.nvim/magenta.nvim/node/providers/anthropic.ts:56:13) + at Module.getProvider (/home/runner/work/magenta.nvim/magenta.nvim/node/providers/provider.ts:21:30) + at /home/runner/work/magenta.nvim/magenta.nvim/node/chat/chat.ts:503:21 + at processTicksAndRejections (node:internal/process/task_queues:95:5) ❯ NvimDriver.assertDisplayBufferContent node/test/driver.ts:208:23 ❯ node/magenta.spec.ts:56:7 ❯ node/test/preamble.ts:149:9 ❯ Module.withMockClient node/providers/mock.ts:272:5 ❯ node/test/preamble.ts:131:5 ❯ withNvimProcess node/test/preamble.ts:60:5 ❯ Module.withDriver node/test/preamble.ts:124:10 ❯ node/magenta.spec.ts:52:5
node/magenta.spec.ts > node/magenta.spec.ts > clear command should work: node/providers/mock.ts#L165
Error: no pending requests ❯ node/providers/mock.ts:165:13 ❯ Module.pollUntil node/utils/async.ts:60:19 ❯ MockProvider.respond node/providers/mock.ts:198:25 ❯ node/magenta.spec.ts:13:7 ❯ node/test/preamble.ts:149:9 ❯ Module.withMockClient node/providers/mock.ts:272:5 ❯ node/test/preamble.ts:131:5 ❯ withNvimProcess node/test/preamble.ts:60:5 ❯ Module.withDriver node/test/preamble.ts:124:10 ❯ node/magenta.spec.ts:9:5
Unhandled error: node/providers/anthropic.ts#L56
Error: Anthropic API key ANTHROPIC_API_KEY not found in environment ❯ new AnthropicProvider node/providers/anthropic.ts:56:13 ❯ Module.getProvider node/providers/provider.ts:21:30 ❯ Magenta.command node/magenta.ts:263:26 ❯ NvimDriver.submitInlineEdit node/test/driver.ts:72:25 ❯ node/inline-edit/inline-edit-manager.spec.ts:284:14 ❯ processTicksAndRejections node:internal/process/task_queues:95:5 ❯ node/test/preamble.ts:149:9 ❯ Module.withMockClient node/providers/mock.ts:272:5 ❯ node/test/preamble.ts:131:5 ❯ withNvimProcess node/test/preamble.ts:60:5 This error originated in "node/inline-edit/inline-edit-manager.spec.ts" test file. It doesn't mean the error was thrown inside the file itself, but while it was running. The latest test that might've caused the error is "abort command should work". It might mean one of the following: - The error was thrown, while Vitest was running this test. - If the error occurred after the test had been completed, this was the last documented test before it was thrown.
Unhandled error: node/providers/anthropic.ts#L56
Error: Anthropic API key ANTHROPIC_API_KEY not found in environment ❯ new AnthropicProvider node/providers/anthropic.ts:56:13 ❯ Module.getProvider node/providers/provider.ts:21:30 ❯ Magenta.command node/magenta.ts:263:26 ❯ NvimDriver.submitInlineEdit node/test/driver.ts:72:25 ❯ node/inline-edit/inline-edit-manager.spec.ts:221:14 ❯ processTicksAndRejections node:internal/process/task_queues:95:5 ❯ node/test/preamble.ts:149:9 ❯ Module.withMockClient node/providers/mock.ts:272:5 ❯ node/test/preamble.ts:131:5 ❯ withNvimProcess node/test/preamble.ts:60:5 This error originated in "node/inline-edit/inline-edit-manager.spec.ts" test file. It doesn't mean the error was thrown inside the file itself, but while it was running. The latest test that might've caused the error is "inline edit mid-line selected". It might mean one of the following: - The error was thrown, while Vitest was running this test. - If the error occurred after the test had been completed, this was the last documented test before it was thrown.
Unhandled error: node/providers/anthropic.ts#L56
Error: Anthropic API key ANTHROPIC_API_KEY not found in environment ❯ new AnthropicProvider node/providers/anthropic.ts:56:13 ❯ Module.getProvider node/providers/provider.ts:21:30 ❯ Magenta.command node/magenta.ts:263:26 ❯ NvimDriver.submitInlineEdit node/test/driver.ts:72:25 ❯ node/inline-edit/inline-edit-manager.spec.ts:157:14 ❯ processTicksAndRejections node:internal/process/task_queues:95:5 ❯ node/test/preamble.ts:149:9 ❯ Module.withMockClient node/providers/mock.ts:272:5 ❯ node/test/preamble.ts:131:5 ❯ withNvimProcess node/test/preamble.ts:60:5 This error originated in "node/inline-edit/inline-edit-manager.spec.ts" test file. It doesn't mean the error was thrown inside the file itself, but while it was running. The latest test that might've caused the error is "inline edit end of line selected". It might mean one of the following: - The error was thrown, while Vitest was running this test. - If the error occurred after the test had been completed, this was the last documented test before it was thrown.
Unhandled error: node/providers/anthropic.ts#L56
Error: Anthropic API key ANTHROPIC_API_KEY not found in environment ❯ new AnthropicProvider node/providers/anthropic.ts:56:13 ❯ Module.getProvider node/providers/provider.ts:21:30 ❯ Magenta.command node/magenta.ts:263:26 ❯ NvimDriver.submitInlineEdit node/test/driver.ts:72:25 ❯ node/inline-edit/inline-edit-manager.spec.ts:129:14 ❯ processTicksAndRejections node:internal/process/task_queues:95:5 ❯ node/test/preamble.ts:149:9 ❯ Module.withMockClient node/providers/mock.ts:272:5 ❯ node/test/preamble.ts:131:5 ❯ withNvimProcess node/test/preamble.ts:60:5 This error originated in "node/inline-edit/inline-edit-manager.spec.ts" test file. It doesn't mean the error was thrown inside the file itself, but while it was running. The latest test that might've caused the error is "performs inline edit with selection". It might mean one of the following: - The error was thrown, while Vitest was running this test. - If the error occurred after the test had been completed, this was the last documented test before it was thrown.
Unhandled error: node/providers/anthropic.ts#L56
Error: Anthropic API key ANTHROPIC_API_KEY not found in environment ❯ new AnthropicProvider node/providers/anthropic.ts:56:13 ❯ Module.getProvider node/providers/provider.ts:21:30 ❯ Magenta.command node/magenta.ts:263:26 ❯ NvimDriver.submitInlineEdit node/test/driver.ts:72:25 ❯ node/inline-edit/inline-edit-manager.spec.ts:99:14 ❯ processTicksAndRejections node:internal/process/task_queues:95:5 ❯ node/test/preamble.ts:149:9 ❯ Module.withMockClient node/providers/mock.ts:272:5 ❯ node/test/preamble.ts:131:5 ❯ withNvimProcess node/test/preamble.ts:60:5 This error originated in "node/inline-edit/inline-edit-manager.spec.ts" test file. It doesn't mean the error was thrown inside the file itself, but while it was running. The latest test that might've caused the error is "can do multiple inline edits on same file". It might mean one of the following: - The error was thrown, while Vitest was running this test. - If the error occurred after the test had been completed, this was the last documented test before it was thrown.
Unhandled error: node/providers/anthropic.ts#L56
Error: Anthropic API key ANTHROPIC_API_KEY not found in environment ❯ new AnthropicProvider node/providers/anthropic.ts:56:13 ❯ Module.getProvider node/providers/provider.ts:21:30 ❯ Magenta.command node/magenta.ts:263:26 ❯ NvimDriver.submitInlineEdit node/test/driver.ts:72:25 ❯ node/inline-edit/inline-edit-manager.spec.ts:32:14 ❯ processTicksAndRejections node:internal/process/task_queues:95:5 ❯ node/test/preamble.ts:149:9 ❯ Module.withMockClient node/providers/mock.ts:272:5 ❯ node/test/preamble.ts:131:5 ❯ withNvimProcess node/test/preamble.ts:60:5 This error originated in "node/inline-edit/inline-edit-manager.spec.ts" test file. It doesn't mean the error was thrown inside the file itself, but while it was running. The latest test that might've caused the error is "performs inline edit on file". It might mean one of the following: - The error was thrown, while Vitest was running this test. - If the error occurred after the test had been completed, this was the last documented test before it was thrown.