Garry's Opinionated OpenClaw/Hermes Agent Brain
TypeScript
chore(pregate): VM setup scripts take a usage-line lane instead of no lane; bench/eval empty lanes go to master separately
garrytane40e7abbf13c
diff --git a/.gstack/pregate.json b/.gstack/pregate.jsonindex 54be00803c..4e0b3706a6 100644--- a/.gstack/pregate.json+++ b/.gstack/pregate.json@@ -69,9 +69,15 @@"scripts/*-weights.metadata.json": ["test/scripts/mine-shard-weights.test.ts"],- "scripts/bench/**": [],- "docs/eval/system-one/runners/**": [],- "docs/eval/system-one/generators/**": []+ "docs/eval/system-one/runners/ubicloud-setup.sh": [+ "test/scripts/vm-setup-usage.test.ts"+ ],+ "scripts/bench/production-soak/vm-setup.sh": [+ "test/scripts/vm-setup-usage.test.ts"+ ],+ "scripts/bench/stall-repro-vm-setup.sh": [+ "test/scripts/vm-setup-usage.test.ts"+ ]},"guards": [{diff --git a/test/scripts/vm-setup-usage.test.ts b/test/scripts/vm-setup-usage.test.tsnew file mode 100644index 0000000000..3dc5a458da--- /dev/null+++ b/test/scripts/vm-setup-usage.test.ts@@ -0,0 +1,27 @@+/**+ * VM setup scripts document the ubi-runner command that boots them. A VM's name carries a 3-hour default TTL and the+ * reaper destroys it after that, so a documented `ubi-runner.sh run` without `--ttl-hours` ends a longer soak or+ * eval arm mid-run (#8096, #8103). Each script must also parse.+ */+import { describe, expect, it } from 'bun:test';+import { spawnSync } from 'node:child_process';+import { readFileSync } from 'node:fs';+import { join, resolve } from 'node:path';++const ROOT = resolve(import.meta.dir, '..', '..');+const SCRIPTS = [+ 'docs/eval/system-one/runners/ubicloud-setup.sh',+ 'scripts/bench/production-soak/vm-setup.sh',+ 'scripts/bench/stall-repro-vm-setup.sh',+];++describe('VM setup script usage lines', () => {+ it.each(SCRIPTS)('%s parses and its documented ubi-runner run passes --ttl-hours', (path) => {+ const file = join(ROOT, path);+ const parse = spawnSync('bash', ['-n', file], { encoding: 'utf8' });+ expect(parse.status, parse.stderr).toBe(0);+ const usage = readFileSync(file, 'utf8').split('\n').filter(line => line.startsWith('#') && line.includes('ubi-runner.sh run'));+ expect(usage.length).toBeGreaterThan(0);+ for (const line of usage) expect(line).toContain('--ttl-hours');+ });+});