supertag-cli icon indicating copy to clipboard operation
supertag-cli copied to clipboard

test:full release gate fails on slow tests that depend on the live index and machine load

Open jcfischer opened this issue 1 month ago • 0 comments

release.sh runs bun run test:full (RUN_INTEGRATION=1 bun test --bail) as its release gate. On a machine with a large live index (about 1.26M nodes) and high load, it fails on slow tests that read the real workspace DB or spawn the CLI with tight timeouts:

  • MCP Transcript Tools > tana_transcript_show > should return transcript lines for valid meeting takes 30–43 s against the live DB.
  • --select parameter support > tags list --select > ... hits its 5 s timeout under load, but passes on its own.
  • nodes recent --select hits its 15 s timeout, but passes on its own in 8 s.
  • A search test clashes with a DB reindex run concurrently by the sync test.

Pre-fix v2.5.11 fails the same way. v2.5.12 and v2.5.13 were released on green CI without this gate. CI (RUN_INTEGRATION=1 bun run test) never runs tests/slow/, so nothing covers these tests in CI.

Proposed fix:

  • Move these suites onto seeded fixtures (tests/helpers/seeded-db.ts, tests/helpers/transcript-fixture.ts) so they no longer read ~/.local/share/supertag.
  • Stop any test from reindexing the live DB.
  • Give CLI-spawning tests a load-tolerant timeout.

jcfischer avatar Oct 21 '26 17:10 jcfischer