feat(services): enhance vcs for git ignore support #2
Annotations
10 errors
|
tests/cli-integration.test.ts > CLI integration > git commit rejects invalid trailer syntax before creating any commit:
tests/cli-integration.test.ts#L367
AssertionError: expected 'jj root exited with code 1\nNotFound:…' to contain 'invalid --trailer format "badformat"'
- Expected
+ Received
- invalid --trailer format "badformat"
+ jj root exited with code 1
+ NotFound: ChildProcess.spawn (jj root)
+
❯ tests/cli-integration.test.ts:367:31
❯ next node_modules/effect/src/internal/effect.ts:1268:25
❯ Object.~effect/Effect/evaluate node_modules/effect/src/internal/core.ts:531:30
❯ FiberImpl.runLoop node_modules/effect/src/internal/effect.ts:629:39
❯ runLoop node_modules/effect/src/internal/effect.ts:589:22
❯ evaluate node_modules/effect/src/internal/effect.ts:1022:14
❯ effect node_modules/effect/src/Deferred.ts:1150:22
❯ doneUnsafe node_modules/@effect/platform-node-shared/src/NodeChildProcessSpawner.ts:312:17
|
|
tests/cli-integration.test.ts > CLI integration > git commit fails safely when there are no changes:
tests/cli-integration.test.ts#L337
AssertionError: expected 'jj root exited with code 1\nNotFound:…' to contain 'no changes'
- Expected
+ Received
- no changes
+ jj root exited with code 1
+ NotFound: ChildProcess.spawn (jj root)
+
❯ tests/cli-integration.test.ts:337:31
❯ next node_modules/effect/src/internal/effect.ts:1268:25
❯ Object.~effect/Effect/evaluate node_modules/effect/src/internal/core.ts:531:30
❯ FiberImpl.runLoop node_modules/effect/src/internal/effect.ts:629:39
❯ runLoop node_modules/effect/src/internal/effect.ts:589:22
❯ evaluate node_modules/effect/src/internal/effect.ts:1022:14
❯ effect node_modules/effect/src/Deferred.ts:1150:22
❯ doneUnsafe node_modules/@effect/platform-node-shared/src/NodeChildProcessSpawner.ts:312:17
|
|
tests/cli-integration.test.ts > CLI integration > git commit fails without an API key before mutating the repository:
tests/cli-integration.test.ts#L311
AssertionError: expected 'jj root exited with code 1\nNotFound:…' to contain 'API key'
- Expected
+ Received
- API key
+ jj root exited with code 1
+ NotFound: ChildProcess.spawn (jj root)
+
❯ tests/cli-integration.test.ts:311:31
❯ next node_modules/effect/src/internal/effect.ts:1268:25
❯ Object.~effect/Effect/evaluate node_modules/effect/src/internal/core.ts:531:30
❯ FiberImpl.runLoop node_modules/effect/src/internal/effect.ts:629:39
❯ runLoop node_modules/effect/src/internal/effect.ts:589:22
❯ evaluate node_modules/effect/src/internal/effect.ts:1022:14
❯ effect node_modules/effect/src/Deferred.ts:1150:22
❯ doneUnsafe node_modules/@effect/platform-node-shared/src/NodeChildProcessSpawner.ts:312:17
|
|
tests/cli-integration.test.ts > CLI integration > jj init full wizard writes scopes, gitignore, and default conventional hook:
src/shared/process.ts#L26
{
command: 'jj git init .',
exitCode: 1,
stdout: '',
stderr: 'NotFound: ChildProcess.spawn (jj git init .)',
_tag: 'ProcessExecutionError',
message: '',
stack: 'ProcessExecutionError: \n' +
' at toProcessExecutionError (/home/runner/work/ai-commit/ai-commit/src/shared/process.ts:26:3)\n' +
' at /home/runner/work/ai-commit/ai-commit/src/shared/process.ts:74:35\n' +
' at ~effect/Utils/internal (file:///home/runner/work/ai-commit/ai-commit/node_modules/effect/dist/Utils.js:69:12)\n' +
' at Object.~effect/Effect/args (file:///home/runner/work/ai-commit/ai-commit/node_modules/effect/dist/internal/effect.js:662:53)\n' +
' at Object.~effect/Effect/evaluate (file:///home/runner/work/ai-commit/ai-commit/node_modules/effect/dist/internal/effect.js:626:22)\n' +
' at FiberImpl.runLoop (file:///home/runner/work/ai-commit/ai-commit/node_modules/effect/dist/internal/effect.js:440:107)\n' +
' at FiberImpl.evaluate (file:///home/runner/work/ai-commit/ai-commit/node_modules/effect/dist/internal/effect.js:408:23)\n' +
' at file:///home/runner/work/ai-commit/ai-commit/node_modules/effect/dist/internal/effect.js:711:15\n' +
' at ChildProcess.<anonymous> (file:///home/runner/work/ai-commit/ai-commit/node_modules/@effect/platform-node-shared/dist/NodeChildProcessSpawner.js:230:7)\n' +
' at ChildProcess.emit (node:events:508:28)',
name: 'ProcessExecutionError',
stacks: [
{
method: 'toProcessExecutionError',
file: '/home/runner/work/ai-commit/ai-commit/src/shared/process.ts',
line: 26,
column: 3
},
{
method: '',
file: '/home/runner/work/ai-commit/ai-commit/src/shared/process.ts',
line: 74,
column: 35
},
{
line: 242,
column: 11,
file: '/home/runner/work/ai-commit/ai-commit/node_modules/effect/src/Utils.ts',
method: 'body'
},
{
line: 936,
column: 94,
file: '/home/runner/work/ai-commit/ai-commit/node_modules/effect/src/internal/effect.ts',
method: 'internalCall'
},
{
line: 882,
column: 21,
file: '/home/runner/work/ai-commit/ai-commit/node_modules/effect/src/internal/effect.ts',
method: 'Object.~effect/Effect/evaluate'
},
{
line: 629,
column: 39,
file: '/home/runner/work/ai-commit/ai-commit/node_modules/effect/src/internal/effect.ts',
method: 'FiberImpl.runLoop'
},
{
line: 589,
column: 22,
file: '/home/runner/work/ai-commit/ai-commit/node_modules/effect/src/internal/effect.ts',
method: 'runLoop'
},
{
line: 1022,
column: 14,
file: '/home/runner/work/ai-commit/ai-commit/node_modules/effect/src/internal/effect.ts',
method: 'evaluate'
},
{
line: 309,
column: 8,
file: '/home/runner/work/ai-commit/ai-commit/node_modules/@effect/platform-node-shared/src/NodeChildProcessSpawner.ts',
method: 'resume'
}
]
}
❯ toProcessExecutionError src/shared/process.ts:26:3
❯ src/shared/process.ts:74:35
❯ body node_modules/effect/src/Utils.ts:242:11
❯ internalCall node_modules/effect/src/internal/effect.ts:936:94
❯ Object.~effect/Effect/evaluate node_modules/effect/src/internal/effect.ts:882:21
❯ FiberImpl.runLoop node_modules/effect/src/internal/effect.ts:629:39
❯ runLoop node_modules/effect/src/internal/effect.ts:589:22
❯ evaluate node_modules/effect/src/internal/effect.ts:1022:14
❯ resume node_modules/@effect/platform-node-shared/src/NodeChildProcessSpawner.ts:309:8
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { command: 'jj git init .', exitCode: 1, stdout: '', stderr: 'NotFound: ChildProcess.spawn (jj git init .)', _tag: 'ProcessExecutionError' }
|
|
tests/cli-integration.test.ts > CLI integration > git init --gitignore merges generated rules and preserves custom entries:
tests/cli-integration.test.ts#L240
AssertionError: expected 1 to be +0 // Object.is equality
- Expected
+ Received
- 0
+ 1
❯ tests/cli-integration.test.ts:240:33
❯ next node_modules/effect/src/internal/effect.ts:1268:25
❯ Object.~effect/Effect/evaluate node_modules/effect/src/internal/core.ts:531:30
❯ FiberImpl.runLoop node_modules/effect/src/internal/effect.ts:629:39
❯ runLoop node_modules/effect/src/internal/effect.ts:589:22
❯ evaluate node_modules/effect/src/internal/effect.ts:1022:14
❯ effect node_modules/effect/src/Deferred.ts:1150:22
❯ doneUnsafe node_modules/@effect/platform-node-shared/src/NodeChildProcessSpawner.ts:312:17
|
|
tests/cli-integration.test.ts > CLI integration > git init --scope writes generated scopes into project config:
tests/cli-integration.test.ts#L193
AssertionError: expected 1 to be +0 // Object.is equality
- Expected
+ Received
- 0
+ 1
❯ tests/cli-integration.test.ts:193:33
❯ next node_modules/effect/src/internal/effect.ts:1268:25
❯ Object.~effect/Effect/evaluate node_modules/effect/src/internal/core.ts:531:30
❯ FiberImpl.runLoop node_modules/effect/src/internal/effect.ts:629:39
❯ runLoop node_modules/effect/src/internal/effect.ts:589:22
❯ evaluate node_modules/effect/src/internal/effect.ts:1022:14
❯ effect node_modules/effect/src/Deferred.ts:1150:22
❯ doneUnsafe node_modules/@effect/platform-node-shared/src/NodeChildProcessSpawner.ts:312:17
|
|
tests/cli-integration.test.ts > CLI integration > init --local rejects runs that do not request any action:
tests/cli-integration.test.ts#L160
AssertionError: expected 'jj root exited with code 1\nNotFound:…' to contain '--local requires at least one action …'
- Expected
+ Received
- --local requires at least one action flag
+ jj root exited with code 1
+ NotFound: ChildProcess.spawn (jj root)
+
❯ tests/cli-integration.test.ts:160:31
❯ next node_modules/effect/src/internal/effect.ts:1268:25
❯ Object.~effect/Effect/evaluate node_modules/effect/src/internal/core.ts:531:30
❯ FiberImpl.runLoop node_modules/effect/src/internal/effect.ts:629:39
❯ runLoop node_modules/effect/src/internal/effect.ts:589:22
❯ evaluate node_modules/effect/src/internal/effect.ts:1022:14
❯ effect node_modules/effect/src/Deferred.ts:1150:22
❯ doneUnsafe node_modules/@effect/platform-node-shared/src/NodeChildProcessSpawner.ts:312:17
|
|
tests/cli-integration.test.ts > CLI integration > config show resolves provider settings from user scope:
tests/cli-integration.test.ts#L116
AssertionError: expected 1 to be +0 // Object.is equality
- Expected
+ Received
- 0
+ 1
❯ tests/cli-integration.test.ts:116:33
❯ next node_modules/effect/src/internal/effect.ts:1268:25
❯ Object.~effect/Effect/evaluate node_modules/effect/src/internal/core.ts:531:30
❯ FiberImpl.runLoop node_modules/effect/src/internal/effect.ts:629:39
❯ runLoop node_modules/effect/src/internal/effect.ts:589:22
❯ evaluate node_modules/effect/src/internal/effect.ts:1022:14
❯ effect node_modules/effect/src/Deferred.ts:1150:22
❯ doneUnsafe node_modules/@effect/platform-node-shared/src/NodeChildProcessSpawner.ts:312:17
|
|
tests/cli-integration.test.ts > CLI integration > config set hook installs the script into .git-agent/hooks:
tests/cli-integration.test.ts#L96
AssertionError: expected 1 to be +0 // Object.is equality
- Expected
+ Received
- 0
+ 1
❯ tests/cli-integration.test.ts:96:33
❯ next node_modules/effect/src/internal/effect.ts:1268:25
❯ Object.~effect/Effect/evaluate node_modules/effect/src/internal/core.ts:531:30
❯ FiberImpl.runLoop node_modules/effect/src/internal/effect.ts:629:39
❯ runLoop node_modules/effect/src/internal/effect.ts:589:22
❯ evaluate node_modules/effect/src/internal/effect.ts:1022:14
❯ effect node_modules/effect/src/Deferred.ts:1150:22
❯ doneUnsafe node_modules/@effect/platform-node-shared/src/NodeChildProcessSpawner.ts:312:17
|
|
tests/cli-integration.test.ts > CLI integration > get prefers local hook over project hook:
tests/cli-integration.test.ts#L79
AssertionError: expected 1 to be +0 // Object.is equality
- Expected
+ Received
- 0
+ 1
❯ tests/cli-integration.test.ts:79:33
❯ next node_modules/effect/src/internal/effect.ts:1268:25
❯ Object.~effect/Effect/evaluate node_modules/effect/src/internal/core.ts:531:30
❯ FiberImpl.runLoop node_modules/effect/src/internal/effect.ts:629:39
❯ runLoop node_modules/effect/src/internal/effect.ts:589:22
❯ evaluate node_modules/effect/src/internal/effect.ts:1022:14
❯ effect node_modules/effect/src/Deferred.ts:1150:22
❯ doneUnsafe node_modules/@effect/platform-node-shared/src/NodeChildProcessSpawner.ts:312:17
|