The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.
Rust agent-orchestrationai-agentsai-assistantdesktopllmlocal-firstmcppersonal-aiprivacyrustsecond-braintauri
test(ci): cover fixture generator scripts in storage bypass check
Steven Enamakelf90fd93e4bef
diff --git a/scripts/__tests__/storage-bypass.test.mjs b/scripts/__tests__/storage-bypass.test.mjsindex 371efd5587..7ee4bc79e8 100644--- a/scripts/__tests__/storage-bypass.test.mjs+++ b/scripts/__tests__/storage-bypass.test.mjs@@ -13,6 +13,7 @@ import {ALLOW,allowed,compare,+ isTestFile,scan,withoutAllowed,} from "../ci/check-storage-bypass.mjs";@@ -91,6 +92,19 @@ test("ignores comments and doc lines", () => {assert.deepEqual(found, []);});+test("fixture generator scripts are test data writers, not runtime stores", () => {+ for (const file of [+ "vendor/tinyagents/crates/tinyagents-tasks/src/storage/fixtures/generate-31cc.rs",+ "vendor/tinyagents/crates/tinyagents-session/src/run_ledger/drivers/fixtures/generate-31cc.rs",+ ]) {+ assert.equal(isTestFile(file), true, file);+ }+ assert.equal(+ isTestFile("vendor/tinyagents/crates/tinyagents-tasks/src/storage/store.rs"),+ false,+ );+});+test("compare reports added and stale sites", () => {const finding = {rule: "sqlite-open",diff --git a/scripts/ci/check-storage-bypass.mjs b/scripts/ci/check-storage-bypass.mjsindex 32a0db692a..7890f8219e 100755--- a/scripts/ci/check-storage-bypass.mjs+++ b/scripts/ci/check-storage-bypass.mjs@@ -159,6 +159,7 @@ export function withoutAllowed(rel, found) {export function isTestFile(rel) {return (rel.startsWith("crates/openhuman-core/src/storage/") ||+ rel.includes("/fixtures/generate-") ||rel.includes("/tests/") ||rel.endsWith("_tests.rs") ||rel.includes(`${sep}test_support${sep}`) ||