Skip to content

feat: chain of thought #26

feat: chain of thought

feat: chain of thought #26

Triggered via pull request June 11, 2024 15:09
Status Failure
Total duration 43s
Artifacts

buildOnPR.yml

on: pull_request
Run Build
35s
Run Build
Fit to window
Zoom out
Zoom in

Annotations

2 errors and 2 warnings
src/tests/integration/cli.test.ts > cli > should run with mock LLM: src/tests/integration/cli.test.ts#L25
ExecaError: Command failed with exit code 1: 'USE_MOCK_LLM=true' 'MOCK_LLM_RECORD_FILE=test/fixtures/add.json' jiti ./src/cli.ts src/tests/integration/add.ts -f src/tests/integration/add.test.ts -t '"npm' run 'test:all' -- 'add"' ⎯⎯⎯⎯⎯⎯⎯ Failed Tests 6 ⎯⎯⎯⎯⎯⎯⎯ │ │ FAIL src/tests/integration/add.test.ts > should add two positive numbers │ TypeError: add is not a function │ ❯ src/tests/integration/add.test.ts:5:10 │ 3| │ 4| test('should add two positive numbers', () => { │ 5| expect(add(2, 3)).toBe(5); │ | ^ │ 6| }); │ 7| │ │ ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[1/6]⎯ │ │ FAIL src/tests/integration/add.test.ts > should add two negative numbers │ TypeError: add is not a function │ ❯ src/tests/integration/add.test.ts:9:10 │ 7| │ 8| test('should add two negative numbers', () => { │ 9| expect(add(-2, -3)).toBe(-5); │ | ^ │ 10| }); │ 11| │ │ ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[2/6]⎯ │ │ FAIL src/tests/integration/add.test.ts > should add a positive and a negative number │ TypeError: add is not a function │ ❯ src/tests/integration/add.test.ts:13:10 │ 11| │ 12| test('should add a positive and a negative number', () => { │ 13| expect(add(2, -3)).toBe(-1); │ | ^ │ 14| }); │ 15| │ │ ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[3/6]⎯ │ │ FAIL src/tests/integration/add.test.ts > should add zero to a number │ TypeError: add is not a function │ ❯ src/tests/integration/add.test.ts:17:10 │ 15| │ 16| test('should add zero to a number', () => { │ 17| expect(add(0, 5)).toBe(5); │ | ^ │ 18| expect(add(5, 0)).toBe(5); │ 19| }); │ │ ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[4/6]⎯ │ │ FAIL src/tests/integration/add.test.ts > should add decimal numbers │ TypeError: add is not a function │ ❯ src/tests/integration/add.test.ts:22:10 │ 20| │ 21| test('should add decimal numbers', () => { │ 22| expect(add(2.5, 3.2)).toBeCloseTo(5.7, 5); │ | ^ │ 23| expect(add(-2.5, -3.2)).toBeCloseTo(-5.7, 5); │ 24| }); │ │ ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[5/6]⎯ │ │ FAIL src/tests/integration/add.test.ts > should handle large numbers │ TypeError: add is not a function │ ❯ src/tests/integration/add.test.ts:27:10 │ 25| │ 26| test('should handle large numbers', () => { │ 27| expect(add(1e12, 1e12)).toBe(2e12); │ | ^ │ 28| }); │ │ ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[6/6]⎯ │ │ ✖ No completion found for the given system input in the MOCK_LLM_RECORD_FILE: {"role":"system","content":"You take a prompt and unit tests and generate a function accordingly.\n\n1. Think step by step about the algorithm, reasoning about the problem and the solution, similar algorithm, the state, data structures and strategy you will use. Explain all that without emitting any code in this step.\n\n2. Emit a markdown code block with production-ready generated code (function that satisfies all the tests and the prompt).\n - Be sure your code exports function that can be called by an external test file.\n - Make sure your code is reusable and not overly hardcoded to match the promt.\n - Use two spaces for indents. Add logs if helpful for debugging, you will get the log output on your next try to help you debug.\n - Always return a complete code snippet that can execute, nothing partial and never say \"rest of your code\" or similar, I will copy and paste your code into my file without modification, so it cannot have gaps or parts where you say to put the \"rest of the code\" back in.\n - Only emit the function, not the tests.\n\nStop emitting after the code block"} ┌ 🦾 Micro Agent │ ◇ Running tests... │ > @builder.io/[email protected] test:all │ > vitest run add │ │ │ RUN v1.6.0 /home/runner/work/micro-agent/micro-agent │ │ ❯ src/tests/integration/add.test.ts (6 tests | 6 failed) 7ms │ ❯ src/tests/integra
Run Build
Process completed with exit code 1.
Run Build
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v2, actions/setup-node@v1. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
Run Build
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, actions/setup-node@v1. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/