321 lines
13 KiB
Plaintext
321 lines
13 KiB
Plaintext
TAP version 13
|
|
# Subtest: claiming the same runtime owner twice preserves its original metadata and every database row
|
|
not ok 1 - claiming the same runtime owner twice preserves its original metadata and every database row
|
|
---
|
|
duration_ms: 838.6823
|
|
type: 'test'
|
|
location: 'D:\\Ai-project\\REA逆向\\Agent-Workbench\\tests\\upgrade-controlled-engines.test.mjs:34:1'
|
|
failureType: 'testCodeFailure'
|
|
error: |-
|
|
Expected values to be strictly deep-equal:
|
|
+ actual - expected
|
|
|
|
{
|
|
id: '9b86da44-aa96-4623-b56a-6856399b8e8b',
|
|
pid: 40452,
|
|
+ startedAt: '2026-10-30T22:19:33.412Z'
|
|
- startedAt: '2026-01-01T00:00:00.000Z'
|
|
}
|
|
|
|
code: 'ERR_ASSERTION'
|
|
name: 'AssertionError'
|
|
expected:
|
|
pid: 40452
|
|
id: '9b86da44-aa96-4623-b56a-6856399b8e8b'
|
|
startedAt: '2026-01-01T00:00:00.000Z'
|
|
actual:
|
|
pid: 40452
|
|
id: '9b86da44-aa96-4623-b56a-6856399b8e8b'
|
|
startedAt: '2026-10-30T22:19:33.412Z'
|
|
operator: 'deepStrictEqual'
|
|
stack: |-
|
|
TestContext.<anonymous> (file:///D:/Ai-project/REA%E9%80%86%E5%90%91/Agent-Workbench/tests/upgrade-controlled-engines.test.mjs:40:10)
|
|
Test.runInAsyncScope (node:async_hooks:227:14)
|
|
Test.run (node:internal/test_runner/test:1402:25)
|
|
Test.start (node:internal/test_runner/test:1262:17)
|
|
startSubtestAfterBootstrap (node:internal/test_runner/harness:387:17)
|
|
...
|
|
# Subtest: sessions without controlled-engine history retain their prior export shape and never expose another session record
|
|
not ok 2 - sessions without controlled-engine history retain their prior export shape and never expose another session record
|
|
---
|
|
duration_ms: 629.0196
|
|
type: 'test'
|
|
location: 'D:\\Ai-project\\REA逆向\\Agent-Workbench\\tests\\upgrade-controlled-engines.test.mjs:43:1'
|
|
failureType: 'testCodeFailure'
|
|
error: |-
|
|
Expected values to be strictly equal:
|
|
|
|
true !== false
|
|
|
|
code: 'ERR_ASSERTION'
|
|
name: 'AssertionError'
|
|
expected: false
|
|
actual: true
|
|
operator: 'strictEqual'
|
|
stack: |-
|
|
TestContext.<anonymous> (file:///D:/Ai-project/REA%E9%80%86%E5%90%91/Agent-Workbench/tests/upgrade-controlled-engines.test.mjs:45:10)
|
|
Test.runInAsyncScope (node:async_hooks:227:14)
|
|
Test.run (node:internal/test_runner/test:1402:25)
|
|
Test.processPendingSubtests (node:internal/test_runner/test:974:18)
|
|
Test.postRun (node:internal/test_runner/test:1542:19)
|
|
Test.run (node:internal/test_runner/test:1467:12)
|
|
async startSubtestAfterBootstrap (node:internal/test_runner/harness:387:3)
|
|
...
|
|
# Subtest: live workers, controlled drivers, or MCP operations refuse an upgrade before changing handlers, managers or database rows
|
|
not ok 3 - live workers, controlled drivers, or MCP operations refuse an upgrade before changing handlers, managers or database rows
|
|
---
|
|
duration_ms: 703.0919
|
|
type: 'test'
|
|
location: 'D:\\Ai-project\\REA逆向\\Agent-Workbench\\tests\\upgrade-controlled-engines.test.mjs:51:1'
|
|
failureType: 'testCodeFailure'
|
|
error: 'Missing expected exception.'
|
|
code: 'ERR_ASSERTION'
|
|
name: 'AssertionError'
|
|
expected:
|
|
operator: 'throws'
|
|
stack: |-
|
|
TestContext.<anonymous> (file:///D:/Ai-project/REA%E9%80%86%E5%90%91/Agent-Workbench/tests/upgrade-controlled-engines.test.mjs:57:12)
|
|
process.processTicksAndRejections (node:internal/process/task_queues:104:5)
|
|
async Test.run (node:internal/test_runner/test:1409:7)
|
|
async Test.processPendingSubtests (node:internal/test_runner/test:974:7)
|
|
...
|
|
# Subtest: an idle upgrade loads the newly introduced engine record map, resets obsolete managers and preserves original rows, sessions and provider objects
|
|
not ok 4 - an idle upgrade loads the newly introduced engine record map, resets obsolete managers and preserves original rows, sessions and provider objects
|
|
---
|
|
duration_ms: 803.5062
|
|
type: 'test'
|
|
location: 'D:\\Ai-project\\REA逆向\\Agent-Workbench\\tests\\upgrade-controlled-engines.test.mjs:63:1'
|
|
failureType: 'testCodeFailure'
|
|
error: |-
|
|
Expected values to be strictly equal:
|
|
+ actual - expected
|
|
|
|
+ {
|
|
+ active: Map(0) {}
|
|
+ }
|
|
- null
|
|
|
|
code: 'ERR_ASSERTION'
|
|
name: 'AssertionError'
|
|
expected: ~
|
|
actual:
|
|
active:
|
|
operator: 'strictEqual'
|
|
stack: |-
|
|
TestContext.<anonymous> (file:///D:/Ai-project/REA%E9%80%86%E5%90%91/Agent-Workbench/tests/upgrade-controlled-engines.test.mjs:71:10)
|
|
process.processTicksAndRejections (node:internal/process/task_queues:104:5)
|
|
async Test.run (node:internal/test_runner/test:1409:7)
|
|
async Test.processPendingSubtests (node:internal/test_runner/test:974:7)
|
|
...
|
|
# Subtest: an installation failure restores old managers, original record maps, handlers and all existing database rows
|
|
not ok 5 - an installation failure restores old managers, original record maps, handlers and all existing database rows
|
|
---
|
|
duration_ms: 698.5559
|
|
type: 'test'
|
|
location: 'D:\\Ai-project\\REA逆向\\Agent-Workbench\\tests\\upgrade-controlled-engines.test.mjs:79:1'
|
|
failureType: 'testCodeFailure'
|
|
error: |-
|
|
Expected values to be strictly deep-equal:
|
|
+ actual - expected
|
|
... Skipped lines
|
|
|
|
{
|
|
events: [
|
|
[Object: null prototype] {
|
|
created_at: '2026-10-30T22:19:36.169Z',
|
|
id: '3b63c4ab-ebbb-49d8-a5d7-52dfac909de1',
|
|
...
|
|
key: 'runtimeOwner',
|
|
+ value: '{"pid":40452,"id":"3987f2ef-758c-4d36-be49-ee02299ce4ad","startedAt":"2026-10-30T22:19:36.224Z"}'
|
|
- value: '{"pid":40452,"id":"3987f2ef-758c-4d36-be49-ee02299ce4ad","startedAt":"2026-10-30T22:19:36.194Z"}'
|
|
}
|
|
],
|
|
outbox: [
|
|
[Object: null prototype] {
|
|
published_at: null,
|
|
|
|
code: 'ERR_ASSERTION'
|
|
name: 'AssertionError'
|
|
expected:
|
|
events:
|
|
0:
|
|
seq: 1
|
|
id: '3b63c4ab-ebbb-49d8-a5d7-52dfac909de1'
|
|
session_id: '4e58ca4d-32d7-435c-a967-bdd03273aef6'
|
|
project_id: '8684b7bf-63a0-4af3-afc5-bdfc1530e6b1'
|
|
task_id: ~
|
|
run_id: ~
|
|
type: 'session.updated'
|
|
revision: 1
|
|
created_at: '2026-10-30T22:19:36.169Z'
|
|
payload: '{"status":"idle"}'
|
|
metadata:
|
|
0:
|
|
key: 'config'
|
|
value: '{"mode":"demo","baseUrl":"http://127.0.0.1:11434/v1","model":"","contextLimit":16000,"maxSteps":12,"maxOutputTokens":2048,"maxRunDurationMs":600000,"maxRunTokens":200000,"maxTaskTokens":1000000,"configRevision":1}'
|
|
1:
|
|
key: 'migration'
|
|
value: 'null'
|
|
2:
|
|
key: 'initialized'
|
|
value: 'true'
|
|
3:
|
|
key: 'runtimeOwner'
|
|
value: '{"pid":40452,"id":"3987f2ef-758c-4d36-be49-ee02299ce4ad","startedAt":"2026-10-30T22:19:36.194Z"}'
|
|
outbox:
|
|
0:
|
|
seq: 1
|
|
published_at: ~
|
|
projects:
|
|
0:
|
|
id: '8684b7bf-63a0-4af3-afc5-bdfc1530e6b1'
|
|
position: 0
|
|
payload: '{"id":"8684b7bf-63a0-4af3-afc5-bdfc1530e6b1","root":"D:\\\\Ai-project\\\\REA逆向\\\\Agent-Workbench\\\\.qa\\\\test-R5Bf5u\\\\project","name":"project","addedAt":"2026-10-30T22:19:36.145Z"}'
|
|
records:
|
|
sessions:
|
|
0:
|
|
id: '4e58ca4d-32d7-435c-a967-bdd03273aef6'
|
|
project_id: '8684b7bf-63a0-4af3-afc5-bdfc1530e6b1'
|
|
revision: 1
|
|
payload: '{"id":"4e58ca4d-32d7-435c-a967-bdd03273aef6","projectId":"8684b7bf-63a0-4af3-afc5-bdfc1530e6b1","title":"新任务","status":"idle","createdAt":"2026-10-30T22:19:36.169Z","updatedAt":"2026-10-30T22:19:36.169Z","messages":[],"providerMessages":[],"events":[],"changes":[],"approvals":[],"failure":null,"lastFailure":null,"compactions":0,"estimatedTokens":0,"usage":null,"archived":false,"revision":1,"eventSeq":1}'
|
|
sqlite_sequence:
|
|
0:
|
|
name: 'events'
|
|
seq: 1
|
|
actual:
|
|
events:
|
|
0:
|
|
seq: 1
|
|
id: '3b63c4ab-ebbb-49d8-a5d7-52dfac909de1'
|
|
session_id: '4e58ca4d-32d7-435c-a967-bdd03273aef6'
|
|
project_id: '8684b7bf-63a0-4af3-afc5-bdfc1530e6b1'
|
|
task_id: ~
|
|
run_id: ~
|
|
type: 'session.updated'
|
|
revision: 1
|
|
created_at: '2026-10-30T22:19:36.169Z'
|
|
payload: '{"status":"idle"}'
|
|
metadata:
|
|
0:
|
|
key: 'config'
|
|
value: '{"mode":"demo","baseUrl":"http://127.0.0.1:11434/v1","model":"","contextLimit":16000,"maxSteps":12,"maxOutputTokens":2048,"maxRunDurationMs":600000,"maxRunTokens":200000,"maxTaskTokens":1000000,"configRevision":1}'
|
|
1:
|
|
key: 'migration'
|
|
value: 'null'
|
|
2:
|
|
key: 'initialized'
|
|
value: 'true'
|
|
3:
|
|
key: 'runtimeOwner'
|
|
value: '{"pid":40452,"id":"3987f2ef-758c-4d36-be49-ee02299ce4ad","startedAt":"2026-10-30T22:19:36.224Z"}'
|
|
outbox:
|
|
0:
|
|
seq: 1
|
|
published_at: ~
|
|
projects:
|
|
0:
|
|
id: '8684b7bf-63a0-4af3-afc5-bdfc1530e6b1'
|
|
position: 0
|
|
payload: '{"id":"8684b7bf-63a0-4af3-afc5-bdfc1530e6b1","root":"D:\\\\Ai-project\\\\REA逆向\\\\Agent-Workbench\\\\.qa\\\\test-R5Bf5u\\\\project","name":"project","addedAt":"2026-10-30T22:19:36.145Z"}'
|
|
records:
|
|
sessions:
|
|
0:
|
|
id: '4e58ca4d-32d7-435c-a967-bdd03273aef6'
|
|
project_id: '8684b7bf-63a0-4af3-afc5-bdfc1530e6b1'
|
|
revision: 1
|
|
payload: '{"id":"4e58ca4d-32d7-435c-a967-bdd03273aef6","projectId":"8684b7bf-63a0-4af3-afc5-bdfc1530e6b1","title":"新任务","status":"idle","createdAt":"2026-10-30T22:19:36.169Z","updatedAt":"2026-10-30T22:19:36.169Z","messages":[],"providerMessages":[],"events":[],"changes":[],"approvals":[],"failure":null,"lastFailure":null,"compactions":0,"estimatedTokens":0,"usage":null,"archived":false,"revision":1,"eventSeq":1}'
|
|
sqlite_sequence:
|
|
0:
|
|
name: 'events'
|
|
seq: 1
|
|
operator: 'deepStrictEqual'
|
|
stack: |-
|
|
TestContext.<anonymous> (file:///D:/Ai-project/REA%E9%80%86%E5%90%91/Agent-Workbench/tests/upgrade-controlled-engines.test.mjs:88:69)
|
|
process.processTicksAndRejections (node:internal/process/task_queues:104:5)
|
|
async Test.run (node:internal/test_runner/test:1409:7)
|
|
async Test.processPendingSubtests (node:internal/test_runner/test:974:7)
|
|
...
|
|
# Subtest: the owned controlled driver remains an active session and project even after outer task activity has ended
|
|
not ok 6 - the owned controlled driver remains an active session and project even after outer task activity has ended
|
|
---
|
|
duration_ms: 552.6337
|
|
type: 'test'
|
|
location: 'D:\\Ai-project\\REA逆向\\Agent-Workbench\\tests\\upgrade-controlled-engines.test.mjs:91:1'
|
|
failureType: 'testCodeFailure'
|
|
error: |-
|
|
Expected values to be strictly equal:
|
|
|
|
false !== true
|
|
|
|
code: 'ERR_ASSERTION'
|
|
name: 'AssertionError'
|
|
expected: true
|
|
actual: false
|
|
operator: 'strictEqual'
|
|
stack: |-
|
|
TestContext.<anonymous> (file:///D:/Ai-project/REA%E9%80%86%E5%90%91/Agent-Workbench/tests/upgrade-controlled-engines.test.mjs:94:48)
|
|
Test.runInAsyncScope (node:async_hooks:227:14)
|
|
Test.run (node:internal/test_runner/test:1402:25)
|
|
Test.processPendingSubtests (node:internal/test_runner/test:974:18)
|
|
Test.postRun (node:internal/test_runner/test:1542:19)
|
|
Test.run (node:internal/test_runner/test:1467:12)
|
|
async Test.processPendingSubtests (node:internal/test_runner/test:974:7)
|
|
...
|
|
# Subtest: release and upgrade help or invalid arguments have no file or network setup side effects in an independent directory
|
|
not ok 7 - release and upgrade help or invalid arguments have no file or network setup side effects in an independent directory
|
|
---
|
|
duration_ms: 756.1136
|
|
type: 'test'
|
|
location: 'D:\\Ai-project\\REA逆向\\Agent-Workbench\\tests\\upgrade-controlled-engines.test.mjs:99:1'
|
|
failureType: 'testCodeFailure'
|
|
error: |-
|
|
node:fs:483
|
|
return binding.readFileUtf8(path, stringToFlags(options.flag));
|
|
^
|
|
|
|
Error: ENOENT: no such file or directory, open 'D:\Ai-project\REA逆向\Agent-Workbench\.qa\test-y5A0Ly\package.json'
|
|
at Object.readFileSync (node:fs:483:20)
|
|
at file:///D:/Ai-project/REA%E9%80%86%E5%90%91/Agent-Workbench/scripts/package.mjs:9:28
|
|
at ModuleJob.run (node:internal/modules/esm/module_job:561:25)
|
|
at async node:internal/modules/esm/loader:647:26
|
|
at async asyncRunEntryPointWithESMLoader (node:internal/modules/run_main:101:5) {
|
|
errno: -4058,
|
|
code: 'ENOENT',
|
|
syscall: 'open',
|
|
path: 'D:\\Ai-project\\REA逆向\\Agent-Workbench\\.qa\\test-y5A0Ly\\package.json'
|
|
}
|
|
|
|
Node.js v24.22.1
|
|
|
|
|
|
1 !== 0
|
|
|
|
code: 'ERR_ASSERTION'
|
|
name: 'AssertionError'
|
|
expected: 0
|
|
actual: 1
|
|
operator: 'strictEqual'
|
|
stack: |-
|
|
Object.readFileSync (node:fs:483:20)
|
|
file:///D:/Ai-project/REA%E9%80%86%E5%90%91/Agent-Workbench/scripts/package.mjs:9:28
|
|
ModuleJob.run (node:internal/modules/esm/module_job:561:25)
|
|
async node:internal/modules/esm/loader:647:26
|
|
async asyncRunEntryPointWithESMLoader (node:internal/modules/run_main:101:5) {
|
|
TestContext.<anonymous> (file:///D:/Ai-project/REA%E9%80%86%E5%90%91/Agent-Workbench/tests/upgrade-controlled-engines.test.mjs:103:12)
|
|
Test.runInAsyncScope (node:async_hooks:227:14)
|
|
Test.run (node:internal/test_runner/test:1402:25)
|
|
Test.processPendingSubtests (node:internal/test_runner/test:974:18)
|
|
Test.postRun (node:internal/test_runner/test:1542:19)
|
|
Test.run (node:internal/test_runner/test:1467:12)
|
|
async Test.processPendingSubtests (node:internal/test_runner/test:974:7)
|
|
...
|
|
1..7
|
|
# tests 7
|
|
# suites 0
|
|
# pass 0
|
|
# fail 7
|
|
# cancelled 0
|
|
# skipped 0
|
|
# todo 0
|
|
# duration_ms 5109.7403
|