Speed up generator tests
generator-tests.lisp:
- Split
generator-suiteintogenerator-pure-suite(7 tests, no DB) andgenerator-integration-suite(9 tests) - Removed
with-modelwrappers from all integration test bodies - Made
th-gen-make-useridempotent (checks if user exists before creating) - Made
th-gen-seed-llm-configidempotent (deletes existing rows first) - Added
th-gen-delete-llm-config(used byread-llm-config-missingandbe-action-passes-rolesto ensure the secret is absent when needed) - Made
th-gen-make-model-rowgenerate unique names via a counter (avoids unique-constraint collisions when rows aren't deleted) - Async tests (
generate-hook-async-with-stub,generate-hook-async-fails-on-invalid-llm-output) no longer delete their model rows — this was the root cause of the Swank condition (worker thread callingset-statuson a deleted UUID) be-action-passes-rolesnow callsth-gen-delete-llm-configbefore running, so the hook returns synchronously instead of spawning a worker that outlives the test
helpers.lisp:
run-generator-testsruns the pure suite with no model, then wraps the integration suite in a singlewith-model "modelbank-test"
- Slot
- 24400
- Status
- 60 Done
- Tags
- mvp, maintenance, testing
- Contributors
- Donnie