Wire explicitly enabled worker startup and exact legacy rehearsal comparison

This commit is contained in:
devops committed 2026-10-23 14:41:48 +00:00
1 parent be2ff0719a
commit cc9ec25388
2 files changed
+4

No files matched your search

+2
View File
@@ -1,3 +1,4 @@
import { registerPrepareWorker } from './orchestration-worker/worker-registration';
import { RouterUsageModule } from './router-usage/router-usage.module';
import { runtimeReadRegistration } from './hermes-management/runtime-read.registration';
import { TasksModule } from './common/services/tasks.module';
@@ -45,6 +46,7 @@ import { Request, Response, NextFunction } from "express";
@Module({
imports: [
...registerPrepareWorker(),
RouterUsageModule,
// Deny-all registration: no request identity or runtime credentials are accepted yet.
runtimeReadRegistration(),
+2
View File
@@ -27,6 +27,8 @@ with tempfile.TemporaryDirectory(prefix='canina-rollout-') as d:
query = "const {PrismaClient}=require('@prisma/client');const p=new PrismaClient();(async()=>{await p.product.findMany({take:1,include:{ingredientList:true,symptoms:true}});await p.supportConversation.findMany({take:1});await p.orchestrationTask.findMany({take:1,include:{runs:true,events:true,budgetLedger:true}});console.log('PASS: actual Prisma legacy catalog/support and v4 relation queries');})().catch(()=>{console.error('Prisma compatibility failed');process.exitCode=1}).finally(()=>p.$disconnect());"
run(cmd[:-3]+['node','-e',query])
after=sql("SELECT table_name,column_name,data_type,is_nullable,column_default FROM information_schema.columns WHERE table_schema='public' AND table_name <> '_prisma_migrations' AND table_name NOT LIKE 'orchestration_%' ORDER BY 1,2;")
# Compare only the exact pre-existing table set; new additive tables are not legacy.
after='\n'.join(line for line in after.splitlines() if line.split('|',1)[0] in tables)+'\n'
assert before==after,'Legacy column definitions changed'
for table in tables: sql(f'SELECT * FROM "{table}" LIMIT 0;')
v4=sql("SELECT tablename FROM pg_tables WHERE schemaname='public' AND tablename LIKE 'orchestration_%' ORDER BY 1;").splitlines()