Garry's Opinionated OpenClaw/Hermes Agent Brain
TypeScript
test: run the scoped-role suite in the unit-lane PostgreSQL arms instead of an e2e wrapper, so the stress gate runs it on Postgres (GBRA-218)
garrytan0cf7adbff2d6
diff --git a/scripts/postgres-arm-weights.json b/scripts/postgres-arm-weights.jsonindex 3dd65bcd01..7f9af58e84 100644--- a/scripts/postgres-arm-weights.json+++ b/scripts/postgres-arm-weights.json@@ -4,6 +4,7 @@"test/access-folder-lock-order.test.ts": 1420,"test/access-folder-multiconn.test.ts": 4110,"test/access-folder-rules.test.ts": 18830,+ "test/access-folder-scoped-role.test.ts": 1280,"test/access-members.test.ts": 3930,"test/access-on-behalf-of.test.ts": 13100,"test/access-page-indexes-online.test.ts": 1940,diff --git a/test/access-folder-scoped-role.test.ts b/test/access-folder-scoped-role.test.tsindex 1f84e5f8ba..b07599d505 100644--- a/test/access-folder-scoped-role.test.ts+++ b/test/access-folder-scoped-role.test.ts@@ -5,7 +5,7 @@* stayed visible. Contract: an access table that row-level security hides from the role is never read as "no rule".* The stamp refuses the write (writer_coordinator_required, unreadable_state) and every pending-coverage read covers* everything. A role holding the docs/ENGINES.md access recipe (applied verbatim) gets the correct stamp and the- * normal read. Postgres only (PGLite has no roles): test/e2e/access-folder-scoped-role-postgres.test.ts.+ * normal read. Postgres only (PGLite has no roles): it runs in the unit-lane PostgreSQL arms (test/postgres-unit-arms.txt).*/import { afterAll, beforeAll, describe, expect, test } from 'bun:test';import { randomUUID } from 'node:crypto';diff --git a/test/e2e/access-folder-scoped-role-postgres.test.ts b/test/e2e/access-folder-scoped-role-postgres.test.tsdeleted file mode 100644index 05eed40e42..0000000000--- a/test/e2e/access-folder-scoped-role-postgres.test.ts+++ /dev/null@@ -1,3 +0,0 @@-import { registerPostgresTests } from '../helpers/test-backends.ts';--await registerPostgresTests(() => import('../access-folder-scoped-role.test.ts'));diff --git a/test/postgres-unit-arms.txt b/test/postgres-unit-arms.txtindex 3a595444ee..779ba2c971 100644--- a/test/postgres-unit-arms.txt+++ b/test/postgres-unit-arms.txt@@ -16,6 +16,7 @@ test/access-binding.test.tstest/access-folder-lock-order.test.tstest/access-folder-multiconn.test.tstest/access-folder-rules.test.ts+test/access-folder-scoped-role.test.tstest/access-members.test.tstest/access-on-behalf-of.test.tstest/access-page-indexes-online.test.ts