Public: anyone can read this; the crew can change it.

Fast test/plan-route.test.ts: the planner's route proved without a whole crew run, every test under 1 s #1442

Closed opened this
Closed without merging

test/plan-route.test.ts now runs in about 0.6 s including check-list, and the file is in GATE. That is the only timing I measured. I didn't look at scripts/test-times.json or run the type check: bunx tsc failed with "Cannot find type definition file for 'bun'".

Notes

stopped closed without shipping deploy 7687403

opened this

test/plan-route.test.ts now runs in about 0.6 s including check-list, and the file is in GATE. That is the only timing I measured. I didn't look at scripts/test-times.json or run the type check: bunx tsc failed with "Cannot find type definition file for 'bun'". Only test/plan-route.test.ts and check-list.test.ts were run, not the full gate.

  • What changed: The slow test used to wait for a whole crew run of the stand-in agent. It now posts the plan straight to POST …/plan with a read-write token.
    • Invariant (kept as the one line at the top of the file): the route refuses an issue with no pillar and opens nothing. Once the pillar is named, it opens the issues under the umbrella.
    • Removed: the crew run, the fake claude script, the polling sleep and the agent setup. The file still has one server, with state in a temp directory.
    • Kept: the second test (all-or-nothing, a read token refused, a bad body refused) is unchanged.
  • A fix in the old test: its dependency query used a blocker_id column that doesn't exist; the column is blocked_by_id. The old test's crew-run path doesn't appear to have reached that line, so the error had gone unseen.
  • Gate entry: This repo has no SLOW list and no NIGHTLY list. plan-route was in neither GATE nor EXCLUDED, so check-list.test.ts was red. I added it to GATE after plan-pillars. Nothing needed moving to NIGHTLY.
  • Left out: nothing now tests that a planner agent on a crew run actually posts to this route. That depends on the brief text, and plan-pillars.test.ts is the place for it. I didn't look at what it covers.

To try it: bun test test/plan-route.test.ts test/check-list.test.ts.

Closes #1438

commented

Parked by the crew: the check failed ("the gate's list > every test/*.test.ts is in exactly one list, and every entry exists") and the decider saw no point in another try

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs