- downloads.ts observe: re-read download_task FOR UPDATE inside the tx and merge from the locked row; qB sync could overwrite imported back to importing when verifyAndImport committed between the sync read and write (E8 flake). - agent finalize: accept summaryPrefix so the recovery verdict is written with the terminal status in one update (E6 read a budget_exceeded run before the "未恢复:…" annotation landed); recover-summary step kept, now idempotent no-op. - organize.ts: drop local slotComplete and the once-subscription completion write; completion/history are decided only by applySlotEvent(verify_passed) (W5-C follow-up, removes double write). Manual slot organize uses the shared subscriptions.slotComplete. - vitest: server split into unit (parallel) and pg (file-serial, groupOrder 1) projects; packages/tasks file-serial; explicit worker concurrency in e2e. - docs: W6 stabilization record in 04-v0.1-acceptance.md. Test expectations unchanged. Full `deno task ci` x3 green: 369s / 341s / 337s. Co-Authored-By: Claude Opus 5.5 <[email protected]>
10 lines
299 B
TypeScript
10 lines
299 B
TypeScript
import { defineConfig } from "vitest/config";
|
|
|
|
// 引擎测试连真实 PG(每文件独立 schema)并起真实 worker 轮询/租约:文件级串行,避免并发抢占拉长租约与心跳时序。
|
|
export default defineConfig({
|
|
test: {
|
|
fileParallelism: false,
|
|
hookTimeout: 60_000,
|
|
},
|
|
});
|