Fas 1a punkt 3+4: worker-härdning (DLQ, larm, multi-instance), AAMOS training export

This commit is contained in:
Sven (AAMOS AI)
2026-08-05 23:32:18 +07:00
parent d1455fb581
commit b2b6601f54
15 changed files with 9355 additions and 32 deletions
+2 -2
View File
@@ -1,5 +1,5 @@
import { describe, expect, it, beforeEach, afterAll } from "vitest";
import { eq } from "drizzle-orm";
import { eq, sql } from "drizzle-orm";
import { createDatabase, closeDatabase } from "../src/client.js";
import { schema, seedReleaseGates, evaluateReleaseGates, summarizeReleaseGates } from "../src/index.js";
import { BUILT_IN_RELEASE_GATES } from "@app/shared-types";
@@ -11,7 +11,7 @@ async function reset() {
await db.delete(schema.releaseGates);
await db
.delete(schema.users)
.where(eq(schema.users.email, "release-gates-test@example.invalid"));
.where(sql`${schema.users.email} LIKE 'release-gates-test-%@example.invalid'`);
}
async function createTestUser(id: string) {