feat(research): cut over canonical runtime and enforce agent budgets
This commit is contained in:
parent
ab08db82fd
commit
bbf0dd4453
103 changed files with 6138 additions and 3112 deletions
|
|
@ -16,6 +16,7 @@ import {
|
|||
} from '../../apps/stock/web-api/src/services/backtest-v2.service';
|
||||
import { BacktestService } from '../../apps/stock/web-api/src/services/backtest.service';
|
||||
import { StrategyCatalogService } from '../../apps/stock/web-api/src/services/strategy-catalog.service';
|
||||
import { seedHistoricalRun } from '../fixtures/historical-run';
|
||||
|
||||
setLoggerConfig({ logLevel: 'fatal', logConsole: false });
|
||||
const logger = getLogger('catalog-draft-test');
|
||||
|
|
@ -329,7 +330,10 @@ describe.skipIf(!url)('saved catalog backtest drafts on PostgreSQL', () => {
|
|||
{ autoStart: false }
|
||||
);
|
||||
const receipt = { principal: 'operator' as const, key: 'legacy' };
|
||||
const run = await f.api.createRun({ backtestId: legacy.id }, receipt);
|
||||
await expect(f.api.createRun({ backtestId: legacy.id }, receipt)).rejects.toThrow(
|
||||
'Legacy backtest execution is retired'
|
||||
);
|
||||
const run = await seedHistoricalRun(f.pool, f.api, { backtestId: legacy.id }, receipt);
|
||||
const before = (await f.pool.query('SELECT request_snapshot FROM runs WHERE id=$1', [run.id]))
|
||||
.rows[0].request_snapshot;
|
||||
await f.api.updateBacktest(legacy.id, { name: 'Later edit' });
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue