feat(execution): preserve durable recovery on canonical Rust core

This commit is contained in:
Boki 2026-10-23 15:58:44 -04:00
parent 5e9655de0b
commit c01e96e4dd
27 changed files with 3644 additions and 182 deletions

View file

@ -3,7 +3,6 @@ import { readFileSync } from 'node:fs';
import { afterEach, describe, expect, test } from 'bun:test';
import type { PoolClient } from 'pg';
import { Pool } from 'pg';
import type { IServiceContainer } from '@stock-bot/handlers';
import { getLogger, setLoggerConfig } from '@stock-bot/logger';
import { PostgreSQLClient } from '@stock-bot/postgres';
import { runMigrations } from '../../apps/stock/web-api/src/migrations/migration-runner';
@ -18,6 +17,7 @@ const migrations = [
'12-historical-datasets.sql',
'13-strategy-recovery.sql',
'14-backtest-submission.sql',
'15-canonical-paper-intents.sql',
];
const cleanup: (() => Promise<void>)[] = [];
afterEach(async () => {
@ -114,7 +114,7 @@ async function fixture() {
});
return {
queries,
run: () => runMigrations({ postgres } as IServiceContainer),
run: () => runMigrations({ postgres, logger }),
};
};
const recorded = async () =>