Skip to content

Commit 5b2ee49

Browse files
committed
fix(ci): allow benchmark test homes in layout gate
1 parent 1db3302 commit 5b2ee49

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

scripts/check-layout.mjs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ const allowedTestHomes = [
4949
/^software\/[^/]+\/test\/.+\.test\.ts$/,
5050
/^toolchain\/conformance\/.+\.test\.ts$/,
5151
/^packages\/[^/]+\/tests\/.+\.test\.ts$/,
52+
/^benchmarks\/[^/]+\/src\/.+\.test\.ts$/,
5253
/^experiments\/[^/]+\/.+\.test\.ts$/,
5354
/^scripts\/.+\.test\.ts$/,
5455
];

scripts/check-layout.test.mjs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import test from "node:test";
88

99
const script = join(dirname(fileURLToPath(import.meta.url)), "check-layout.mjs");
1010

11-
test("allows experiment tests and ignores nested Claude worktrees", () => {
11+
test("allows benchmark and experiment tests and ignores nested Claude worktrees", () => {
1212
const root = mkdtempSync(join(tmpdir(), "agentos-layout-"));
1313
try {
1414
const nestedTest = join(
@@ -20,6 +20,9 @@ test("allows experiment tests and ignores nested Claude worktrees", () => {
2020
const experimentTest = join(root, "experiments/gigacode/gate.test.ts");
2121
mkdirSync(dirname(experimentTest), { recursive: true });
2222
writeFileSync(experimentTest, "export {};\n");
23+
const benchmarkTest = join(root, "benchmarks/apps/src/load.test.ts");
24+
mkdirSync(dirname(benchmarkTest), { recursive: true });
25+
writeFileSync(benchmarkTest, "export {};\n");
2326

2427
const bin = join(root, "bin");
2528
mkdirSync(bin);

0 commit comments

Comments
 (0)