Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

test(ci): update module boundary checks

Steven Enamakel1db4532624f7
diff --git a/scripts/__tests__/check-module-boundaries.test.mjs b/scripts/__tests__/check-module-boundaries.test.mjs
index 1d73153867..34fab7e8e8 100644
--- a/scripts/__tests__/check-module-boundaries.test.mjs
+++ b/scripts/__tests__/check-module-boundaries.test.mjs
@@ -221,7 +221,12 @@ test('Cargo tree parsing preserves package versions, path identity, and dedup ed
...strict,
contractManifests: { 'tinyjuice-bus': `${localBus}/Cargo.toml` },
};
- assert.deepEqual(auditGraph(m, ['openhuman'], pinned).violations, []);
+ assert.equal(auditGraph(m, ['openhuman'], strict).violations.length, 2);
+ const pinnedTree = treeGraph([
+ '0openhuman v0.64.18',
+ `1tinyjuice-bus v0.1.0 (${localBus})`,
+ ].join('\n'));
+ assert.deepEqual(auditGraph(pinnedTree, ['openhuman'], pinned).violations, []);
const unpinned = treeGraph([
'0openhuman v0.64.18',
'1tinyjuice-bus v0.1.0',
diff --git a/scripts/ci/check-module-boundaries.mjs b/scripts/ci/check-module-boundaries.mjs
index 3f4793cd0d..7c215b4eb3 100644
--- a/scripts/ci/check-module-boundaries.mjs
+++ b/scripts/ci/check-module-boundaries.mjs
@@ -288,14 +288,19 @@ export function run(root, strict = false, execute = execFileSync) {
['Cargo.toml', 'openhuman-tui'],
['crates/openhuman-app/Cargo.toml', 'openhuman-app'],
]) {
- results.push(auditGraph(hostTree(root, manifest, packageName, true, execute), [packageName], policy));
+ const tree = hostTree(root, manifest, packageName, true, execute);
+ results.push(auditGraph(tree, [packageName], policy));
}
// With default features, neither core nor the TUI nor the CLI reaches the
// optional linked-modules bridge. The all-feature host audits above allow
// that bridge only as a direct CLI edge, never through a wrapper.
for (const packageName of ['openhuman-cli', 'openhuman-tui', 'openhuman']) {
results.push({
- violations: bridgeReach(hostTree(root, 'Cargo.toml', packageName, false, execute), [packageName], policy),
+ violations: bridgeReach(
+ hostTree(root, 'Cargo.toml', packageName, false, execute),
+ [packageName],
+ policy,
+ ),
exceptions: [],
});
}